You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
448B

  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;