Skip to content

Commit ecb1a23

Browse files
committed
fix: add output folder to eslintIgnore in package.json
1 parent 703355d commit ecb1a23

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cli.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,12 @@ yargs
252252
}
253253
}
254254

255+
pkg.eslintIgnore = pkg.eslintIgnore || ['node_modules/'];
256+
257+
if (!pkg.eslintIgnore.includes(`${output}/`)) {
258+
pkg.eslintIgnore.push(`${output}/`);
259+
}
260+
255261
await fs.writeFile(pak, JSON.stringify(pkg, null, 2));
256262

257263
const ignorefiles = [

0 commit comments

Comments
 (0)