Skip to content

Commit 8e11545

Browse files
tom-fletcherJamieMason
authored andcommitted
fix(globs): ignore node_modules
Closes #68 Closes #70
1 parent dea1675 commit 8e11545

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"Jamie Mason (https://github.com/JamieMason)",
2121
"Luis Vieira (https://github.com/luisvieiragmr)",
2222
"Marais Rossouw (https://github.com/maraisr)",
23-
"Matt Sprague (https://github.com/uforic)"
23+
"Matt Sprague (https://github.com/uforic)",
24+
"Tom Fletcher (https://github.com/tom-fletcher)"
2425
],
2526
"dependencies": {
2627
"chalk": "4.1.2",

src/lib/disk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export type Disk = typeof disk;
1010

1111
export const disk = {
1212
globSync(pattern: string): string[] {
13-
return globSync(pattern, { absolute: true, cwd: CWD });
13+
return globSync(pattern, { ignore: '**/node_modules/**', absolute: true, cwd: CWD });
1414
},
1515
readConfigFileSync(): Partial<SyncpackConfig> {
1616
const rcSearch = cosmiconfigSync('syncpack').search();

0 commit comments

Comments
 (0)