Comparing version 2.0.0 to 2.1.0
@@ -1,7 +0,16 @@ | ||
/** | ||
* Check if a project is using [Yarn](https://yarnpkg.com). | ||
* | ||
* @param cwd - Current working directory. Default: `process.cwd()`. | ||
* @returns Whether the project uses Yarn. | ||
*/ | ||
export default function hasYarn(cwd?: string): boolean; | ||
declare const hasYarn: { | ||
/** | ||
* Check if a project is using [Yarn](https://yarnpkg.com). | ||
* | ||
* @param cwd - Current working directory. Default: `process.cwd()`. | ||
* @returns Whether the project uses Yarn. | ||
*/ | ||
(cwd?: string): boolean; | ||
// TODO: Remove this for the next major release, refactor the whole definition to: | ||
// declare function hasYarn(cwd?: string): boolean; | ||
// export = hasYarn; | ||
default: typeof hasYarn; | ||
}; | ||
export = hasYarn; |
@@ -8,2 +8,3 @@ 'use strict'; | ||
module.exports = hasYarn; | ||
// TODO: Remove this for the next major release | ||
module.exports.default = hasYarn; |
{ | ||
"name": "has-yarn", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Check if a project is using Yarn", | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
"scripts": { | ||
"test": "xo && ava && tsd-check" | ||
"test": "xo && ava && tsd" | ||
}, | ||
@@ -36,6 +36,6 @@ "files": [ | ||
"devDependencies": { | ||
"ava": "^1.2.1", | ||
"tsd-check": "^0.3.0", | ||
"ava": "^1.4.1", | ||
"tsd": "^0.7.1", | ||
"xo": "^0.24.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3392
21