index.d.ts 448 B

12345678910111213141516
  1. declare const hasYarn: {
  2. /**
  3. * Check if a project is using [Yarn](https://yarnpkg.com).
  4. *
  5. * @param cwd - Current working directory. Default: `process.cwd()`.
  6. * @returns Whether the project uses Yarn.
  7. */
  8. (cwd?: string): boolean;
  9. // TODO: Remove this for the next major release, refactor the whole definition to:
  10. // declare function hasYarn(cwd?: string): boolean;
  11. // export = hasYarn;
  12. default: typeof hasYarn;
  13. };
  14. export = hasYarn;