Skip to content

Commit

Permalink
Remove unused isMonoRepoPackageDir function in pkglint/rules.ts.
Browse files Browse the repository at this point in the history
  • Loading branch information
skinny85 committed Mar 25, 2021
1 parent 15169de commit 4ec9383
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tools/pkglint/lib/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1670,14 +1670,3 @@ function cdkMajorVersion() {
const releaseJson = require(`${__dirname}/../../../release.json`);
return releaseJson.majorVersion as number;
}

/**
* Whether this is a package in the monorepo or not
*
* We're going to be cheeky and not do too much analysis, and say that
* a package that has `/node_modules/` in the directory name is NOT in the
* monorepo, otherwise it is.
*/
function isMonoRepoPackageDir(packageDir: string) {
return path.resolve(packageDir).indexOf(`${path.sep}node_modules${path.sep}`) === -1;
}

0 comments on commit 4ec9383

Please sign in to comment.