Skip to content

Commit 09b82e8

Browse files
committed
fix excludePaths: exclude only the top-level package.json file
1 parent 3d3a351 commit 09b82e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ if (argv.version) {
6868
const excludePaths = makeRegExp(
6969
argv.exclude,
7070
"exclude",
71-
/package\.json$/,
71+
// exclude the top-level package.json file
72+
/^package\.json$/,
7273
argv.case_sensitive_path_filtering,
7374
)
7475
const packageManager = detectPackageManager(

0 commit comments

Comments
 (0)