Skip to content

Commit 55f4f7e

Browse files
committed
fix: ignore files
1 parent 1cce74e commit 55f4f7e

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pri",
3-
"version": "0.10.7",
3+
"version": "0.10.8",
44
"types": "src/node/index.ts",
55
"main": "built/node/index.js",
66
"scripts": {

src/utils/walk-project-files.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ export function walkProjectFiles(): Promise<ICustomParsedPath[]> {
3030
return;
3131
}
3232

33+
if (gitIgnores.concat(scanIgnores).some(ignorePath => ignorePath === path.join(root, dirStats.name))) {
34+
next();
35+
return;
36+
}
37+
3338
files.push({ isDir: true, ...path.parse(dirPath) });
3439
next();
3540
});

0 commit comments

Comments
 (0)