-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[New] add
--entrypoints-legacy
CLI command
- Loading branch information
Showing
9 changed files
with
160 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@arethetypeswrong/cli": minor | ||
"@arethetypeswrong/core": minor | ||
--- | ||
|
||
add `--entrypoints-legacy` option |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
...utils@2.8.1.tgz --entrypoints-legacy --ignore-rules=cjs-only-exports-default.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# eslint-module-utils@2.8.1.tgz --entrypoints-legacy --ignore-rules=cjs-only-exports-default | ||
|
||
``` | ||
$ attw eslint-module-utils@2.8.1.tgz --entrypoints-legacy --ignore-rules=cjs-only-exports-default | ||
eslint-module-utils v2.8.1 | ||
Build tools: | ||
- typescript@next | ||
(ignoring rules: 'cjs-only-exports-default') | ||
No problems found 🌟 | ||
┌─────────────────────────────────────────┬────────┬───────────────────┬───────────────────┬─────────┐ | ||
│ │ node10 │ node16 (from CJS) │ node16 (from ESM) │ bundler │ | ||
├─────────────────────────────────────────┼────────┼───────────────────┼───────────────────┼─────────┤ | ||
│ "eslint-module-utils/declaredScope.js" │ 🟢 │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 │ | ||
├─────────────────────────────────────────┼────────┼───────────────────┼───────────────────┼─────────┤ | ||
│ "eslint-module-utils/hash.js" │ 🟢 │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 │ | ||
├─────────────────────────────────────────┼────────┼───────────────────┼───────────────────┼─────────┤ | ||
│ "eslint-module-utils/ignore.js" │ 🟢 │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 │ | ||
├─────────────────────────────────────────┼────────┼───────────────────┼───────────────────┼─────────┤ | ||
│ "eslint-module-utils/module-require.js" │ 🟢 │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 │ | ||
├─────────────────────────────────────────┼────────┼───────────────────┼───────────────────┼─────────┤ | ||
│ "eslint-module-utils/ModuleCache.js" │ 🟢 │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 │ | ||
├─────────────────────────────────────────┼────────┼───────────────────┼───────────────────┼─────────┤ | ||
│ "eslint-module-utils/moduleVisitor.js" │ 🟢 │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 │ | ||
├─────────────────────────────────────────┼────────┼───────────────────┼───────────────────┼─────────┤ | ||
│ "eslint-module-utils/parse.js" │ 🟢 │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 │ | ||
├─────────────────────────────────────────┼────────┼───────────────────┼───────────────────┼─────────┤ | ||
│ "eslint-module-utils/pkgDir.js" │ 🟢 │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 │ | ||
├─────────────────────────────────────────┼────────┼───────────────────┼───────────────────┼─────────┤ | ||
│ "eslint-module-utils/pkgUp.js" │ 🟢 │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 │ | ||
├─────────────────────────────────────────┼────────┼───────────────────┼───────────────────┼─────────┤ | ||
│ "eslint-module-utils/readPkgUp.js" │ 🟢 │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 │ | ||
├─────────────────────────────────────────┼────────┼───────────────────┼───────────────────┼─────────┤ | ||
│ "eslint-module-utils/resolve.js" │ 🟢 │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 │ | ||
├─────────────────────────────────────────┼────────┼───────────────────┼───────────────────┼─────────┤ | ||
│ "eslint-module-utils/unambiguous.js" │ 🟢 │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 │ | ||
├─────────────────────────────────────────┼────────┼───────────────────┼───────────────────┼─────────┤ | ||
│ "eslint-module-utils/visit.js" │ 🟢 │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 │ | ||
└─────────────────────────────────────────┴────────┴───────────────────┴───────────────────┴─────────┘ | ||
``` | ||
|
||
Exit code: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
76 changes: 76 additions & 0 deletions
76
packages/core/test/snapshots/eslint-module-utils@2.8.1.tgz.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"packageName": "eslint-module-utils", | ||
"packageVersion": "2.8.1", | ||
"types": { | ||
"kind": "included" | ||
}, | ||
"buildTools": { | ||
"typescript": "next" | ||
}, | ||
"entrypoints": { | ||
".": { | ||
"subpath": ".", | ||
"resolutions": { | ||
"node10": { | ||
"name": ".", | ||
"resolutionKind": "node10", | ||
"visibleProblems": [ | ||
0 | ||
] | ||
}, | ||
"node16-cjs": { | ||
"name": ".", | ||
"resolutionKind": "node16-cjs", | ||
"visibleProblems": [ | ||
1 | ||
] | ||
}, | ||
"node16-esm": { | ||
"name": ".", | ||
"resolutionKind": "node16-esm", | ||
"visibleProblems": [ | ||
2 | ||
] | ||
}, | ||
"bundler": { | ||
"name": ".", | ||
"resolutionKind": "bundler", | ||
"visibleProblems": [ | ||
3 | ||
] | ||
} | ||
}, | ||
"hasTypes": false, | ||
"isWildcard": false | ||
} | ||
}, | ||
"programInfo": { | ||
"node10": {}, | ||
"node16": { | ||
"moduleKinds": {} | ||
}, | ||
"bundler": {} | ||
}, | ||
"problems": [ | ||
{ | ||
"kind": "NoResolution", | ||
"entrypoint": ".", | ||
"resolutionKind": "node10" | ||
}, | ||
{ | ||
"kind": "NoResolution", | ||
"entrypoint": ".", | ||
"resolutionKind": "node16-cjs" | ||
}, | ||
{ | ||
"kind": "NoResolution", | ||
"entrypoint": ".", | ||
"resolutionKind": "node16-esm" | ||
}, | ||
{ | ||
"kind": "NoResolution", | ||
"entrypoint": ".", | ||
"resolutionKind": "bundler" | ||
} | ||
] | ||
} |