Skip to content

Commit 0585586

Browse files
committed
chore(compat-eslint): scope files to production paths only
Before: - `**/*.js` and `**/*.d.ts` matched `test/**/*` too — every compiled test file (compat-pipeline, lazy-estree, upstream- runner, bench/run.js, scope-compat, selector-analysis, ts-ast-scan, predicate-coverage, _debug-seq) shipped to npm, pulling in references to devDependencies (eslint, @typescript-eslint/scope-manager) that consumers don't have. - `bin` referenced a directory that doesn't exist; the package has no `bin` field either, so the entry was dead config. After: `index.{js,d.ts}` + `lib/**/*.{js,d.ts}` — covers every runtime path including the vendored `lib/code-path-analysis/`, nothing else. Verified via `npm pack --dry-run`: 32 files / 143 KB tarball, no test artefacts.
1 parent 43e4a73 commit 0585586

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

packages/compat-eslint/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
"version": "3.0.4",
44
"license": "MIT",
55
"files": [
6-
"**/*.js",
7-
"**/*.d.ts",
8-
"bin"
6+
"index.js",
7+
"index.d.ts",
8+
"lib/**/*.js",
9+
"lib/**/*.d.ts"
910
],
1011
"repository": {
1112
"type": "git",

0 commit comments

Comments
 (0)