knip 5.73.3 → 5.74.0
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/dist/ConfigurationChief.d.ts +6 -0
- package/dist/ProjectPrincipal.d.ts +0 -1
- package/dist/ProjectPrincipal.js +18 -13
- package/dist/binaries/package-manager/bun.js +10 -0
- package/dist/compilers/index.d.ts +10 -0
- package/dist/compilers/scss.js +1 -1
- package/dist/constants.d.ts +6 -1
- package/dist/constants.js +6 -1
- package/dist/graph/build.js +18 -9
- package/dist/graph-explorer/visitors.js +3 -3
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/index.js +2 -0
- package/dist/plugins/swc/index.d.ts +3 -0
- package/dist/plugins/swc/index.js +18 -0
- package/dist/plugins/swc/types.d.ts +7 -0
- package/dist/plugins/swc/types.js +1 -0
- package/dist/schema/configuration.d.ts +10 -0
- package/dist/schema/plugins.d.ts +5 -0
- package/dist/schema/plugins.js +1 -0
- package/dist/types/PluginNames.d.ts +2 -2
- package/dist/types/PluginNames.js +1 -0
- package/dist/types/exports.d.ts +14 -13
- package/dist/types/imports.d.ts +7 -7
- package/dist/types/module-graph.d.ts +27 -26
- package/dist/typescript/ast-helpers.d.ts +5 -3
- package/dist/typescript/ast-helpers.js +5 -2
- package/dist/typescript/create-hosts.d.ts +1 -2
- package/dist/typescript/create-hosts.js +2 -2
- package/dist/typescript/get-imports-and-exports.js +18 -15
- package/dist/typescript/pragmas/custom.js +11 -3
- package/dist/typescript/pragmas/typescript.js +20 -4
- package/dist/typescript/resolve-module-names.d.ts +1 -1
- package/dist/typescript/resolve-module-names.js +5 -9
- package/dist/typescript/visitors/dynamic-imports/importCall.js +100 -14
- package/dist/typescript/visitors/dynamic-imports/importType.js +5 -2
- package/dist/typescript/visitors/dynamic-imports/jsDocType.js +13 -4
- package/dist/typescript/visitors/dynamic-imports/requireCall.js +52 -8
- package/dist/typescript/visitors/dynamic-imports/resolveCall.js +5 -2
- package/dist/typescript/visitors/dynamic-imports/urlConstructor.js +5 -2
- package/dist/typescript/visitors/exports/exportAssignment.js +7 -9
- package/dist/typescript/visitors/exports/exportDeclaration.js +2 -2
- package/dist/typescript/visitors/exports/exportKeyword.js +49 -10
- package/dist/typescript/visitors/exports/exportsAccessExpression.js +4 -1
- package/dist/typescript/visitors/exports/moduleExportsAccessExpression.js +27 -3
- package/dist/typescript/visitors/imports/importDeclaration.js +19 -3
- package/dist/typescript/visitors/imports/importEqualsDeclaration.js +3 -2
- package/dist/typescript/visitors/imports/reExportDeclaration.js +15 -5
- package/dist/util/create-options.d.ts +10 -0
- package/dist/util/errors.js +2 -0
- package/dist/util/get-referenced-inputs.js +3 -3
- package/dist/util/module-graph.d.ts +0 -1
- package/dist/util/module-graph.js +3 -2
- package/dist/util/modules.js +7 -1
- package/dist/util/resolve.js +3 -3
- package/dist/util/to-source-path.d.ts +2 -2
- package/dist/util/to-source-path.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/schema.json +4 -0
|
@@ -12,7 +12,7 @@ export const augmentWorkspace = (workspace, dir, compilerOptions) => {
|
|
|
12
12
|
workspace.srcDir = compilerOptions.rootDir ?? (isDirectory(srcDir) ? srcDir : dir);
|
|
13
13
|
workspace.outDir = compilerOptions.outDir || workspace.srcDir;
|
|
14
14
|
};
|
|
15
|
-
export const
|
|
15
|
+
export const getModuleSourcePathHandler = (chief) => {
|
|
16
16
|
const toSourceMapCache = new Map();
|
|
17
17
|
return (filePath) => {
|
|
18
18
|
if (!isInternal(filePath) || hasTSExt.test(filePath))
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "5.
|
|
1
|
+
export declare const version = "5.74.0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '5.
|
|
1
|
+
export const version = '5.74.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "knip",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.74.0",
|
|
4
4
|
"description": "Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects",
|
|
5
5
|
"homepage": "https://knip.dev",
|
|
6
6
|
"repository": {
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@wdio/types": "^9.20.0",
|
|
86
86
|
"codeclimate-types": "^0.3.1",
|
|
87
87
|
"glob-bin": "^1.0.0",
|
|
88
|
-
"release-it": "^19.0
|
|
88
|
+
"release-it": "^19.1.0",
|
|
89
89
|
"tsx": "^4.20.3",
|
|
90
90
|
"typescript": "^5.5.2"
|
|
91
91
|
},
|
package/schema.json
CHANGED
|
@@ -729,6 +729,10 @@
|
|
|
729
729
|
"title": "svgr plugin configuration (https://knip.dev/reference/plugins/svgr)",
|
|
730
730
|
"$ref": "#/definitions/plugin"
|
|
731
731
|
},
|
|
732
|
+
"swc": {
|
|
733
|
+
"title": "swc plugin configuration (https://knip.dev/reference/plugins/swc)",
|
|
734
|
+
"$ref": "#/definitions/plugin"
|
|
735
|
+
},
|
|
732
736
|
"syncpack": {
|
|
733
737
|
"title": "syncpack plugin configuration (https://knip.dev/reference/plugins/syncpack)",
|
|
734
738
|
"$ref": "#/definitions/plugin"
|