blob: 5e2af4c935b9255da3dbe7f24ddf612a23792840 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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;
|