@ljharb/unused-files 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/index.mjs +12 -7
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [v0.2.1](https://github.com/ljharb/unused-files/compare/v0.2.0...v0.2.1) - 2026-01-06
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [Fix] fix knip compatibility [`44f00fa`](https://github.com/ljharb/unused-files/commit/44f00fa23cd17f9f05a338adcf4d92850a9a96d0)
|
|
13
|
+
- [Fix] fix knip compatibility with v5.63.1 [`d89fd7c`](https://github.com/ljharb/unused-files/commit/d89fd7c0623d0e200ffaa8150a9eff1e6e899818)
|
|
14
|
+
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `c8`, `npmignore`, `playwright` [`5d95ceb`](https://github.com/ljharb/unused-files/commit/5d95cebc62f19fd370f00ad8b6a97ff52423e8f6)
|
|
15
|
+
- [Fix] fix knip compatibility with v5.69.0 [`abf7545`](https://github.com/ljharb/unused-files/commit/abf7545b69a8115bea5cc2ed3d6abfb7ab5169d1)
|
|
16
|
+
- [Fix] fix knip compatibility with v5.77.0 [`d581150`](https://github.com/ljharb/unused-files/commit/d581150b4c253d06d160911c8291463bf946f965)
|
|
17
|
+
- [Deps] update `pargs` [`a421e84`](https://github.com/ljharb/unused-files/commit/a421e84f827b88dbd19e5c49db90b1ff97b435c4)
|
|
18
|
+
- [readme] replace runkit CI badge with shields.io check-runs badge [`9688bb9`](https://github.com/ljharb/unused-files/commit/9688bb98927de695bc69aca58763604e9c2bd2b0)
|
|
19
|
+
|
|
8
20
|
## [v0.2.0](https://github.com/ljharb/unused-files/compare/v0.1.2...v0.2.0) - 2025-10-31
|
|
9
21
|
|
|
10
22
|
### Commits
|
package/README.md
CHANGED
|
@@ -55,5 +55,5 @@ MIT
|
|
|
55
55
|
[downloads-url]: https://npm-stat.com/charts.html?package=@ljharb/unused-files
|
|
56
56
|
[codecov-image]: https://codecov.io/gh/ljharb/unused-files/branch/main/graphs/badge.svg
|
|
57
57
|
[codecov-url]: https://app.codecov.io/gh/ljharb/unused-files/
|
|
58
|
-
[actions-image]: https://img.shields.io/
|
|
58
|
+
[actions-image]: https://img.shields.io/github/check-runs/ljharb/unused-files/main
|
|
59
59
|
[actions-url]: https://github.com/ljharb/unused-files/actions
|
package/index.mjs
CHANGED
|
@@ -15,18 +15,21 @@ export default async function unusedFiles(
|
|
|
15
15
|
let files;
|
|
16
16
|
try {
|
|
17
17
|
process.argv = origArgv.slice(0, 2);
|
|
18
|
-
// @ts-expect-error knip doesn't have
|
|
18
|
+
// @ts-expect-error knip doesn't have main in its types
|
|
19
19
|
const { main: knip } = await import('knip');
|
|
20
20
|
|
|
21
21
|
({ issues: { files } } = await knip({
|
|
22
22
|
cacheLocation: '',
|
|
23
|
+
catalog: {
|
|
24
|
+
filePath: '',
|
|
25
|
+
},
|
|
23
26
|
config: undefined,
|
|
24
27
|
configFilePath: undefined,
|
|
25
28
|
cwd,
|
|
26
29
|
dependencies: true,
|
|
27
30
|
experimentalTags: [[], []],
|
|
28
31
|
exports: true,
|
|
29
|
-
files:
|
|
32
|
+
files: true,
|
|
30
33
|
fixTypes: [],
|
|
31
34
|
gitignore: true,
|
|
32
35
|
includedIssueTypes: {
|
|
@@ -48,7 +51,7 @@ export default async function unusedFiles(
|
|
|
48
51
|
},
|
|
49
52
|
isCache: false,
|
|
50
53
|
isDebug: false,
|
|
51
|
-
isDisableConfigHints:
|
|
54
|
+
isDisableConfigHints: true,
|
|
52
55
|
isFix: false,
|
|
53
56
|
isFixDependencies: false,
|
|
54
57
|
isFixFiles: false,
|
|
@@ -58,10 +61,12 @@ export default async function unusedFiles(
|
|
|
58
61
|
isIncludeEntryExports: true,
|
|
59
62
|
isIsolateWorkspaces: false,
|
|
60
63
|
isProduction: true,
|
|
61
|
-
isReportClassMembers:
|
|
62
|
-
isReportDependencies:
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
isReportClassMembers: true,
|
|
65
|
+
isReportDependencies: true,
|
|
66
|
+
isReportExports: true,
|
|
67
|
+
isReportFiles: true,
|
|
68
|
+
isReportTypes: true,
|
|
69
|
+
isReportValues: true,
|
|
65
70
|
isShowProgress: false,
|
|
66
71
|
isSkipLibs: false,
|
|
67
72
|
isStrict: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ljharb/unused-files",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "List unused files in your package.",
|
|
5
5
|
"bin": "./bin.mjs",
|
|
6
6
|
"main": false,
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
},
|
|
38
38
|
"homepage": "https://github.com/ljharb/unused-files#readme",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"knip": "
|
|
40
|
+
"knip": "~5.78.0",
|
|
41
41
|
"micromatch": "^4.0.8",
|
|
42
42
|
"object.groupby": "^1.0.3",
|
|
43
|
-
"pargs": "^1.
|
|
43
|
+
"pargs": "^1.2.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
47
47
|
"@jest/types": "^29.6.3",
|
|
48
|
-
"@ljharb/eslint-config": "^21.
|
|
48
|
+
"@ljharb/eslint-config": "^21.4.0",
|
|
49
49
|
"@ljharb/tsconfig": "^0.3.2",
|
|
50
50
|
"@types/micromatch": "^4.0.10",
|
|
51
51
|
"@types/minimist": "^1.2.5",
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
"@types/tape": "^5.8.1",
|
|
54
54
|
"@types/webpack": "^5.28.5",
|
|
55
55
|
"auto-changelog": "^2.5.0",
|
|
56
|
-
"c8": "^
|
|
56
|
+
"c8": "^10.1.3",
|
|
57
57
|
"encoding": "^0.1.13",
|
|
58
|
-
"eslint": "
|
|
58
|
+
"eslint": "^8.57.1",
|
|
59
59
|
"in-publish": "^2.0.1",
|
|
60
|
-
"npmignore": "^0.3.
|
|
61
|
-
"playwright": "^1.
|
|
60
|
+
"npmignore": "^0.3.5",
|
|
61
|
+
"playwright": "^1.57.0",
|
|
62
62
|
"safe-publish-latest": "^2.0.0",
|
|
63
63
|
"tape": "^5.9.0",
|
|
64
64
|
"typescript": "next"
|