knip 5.0.0 → 5.0.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.
|
@@ -7,6 +7,7 @@ const CONFIG_FILE_PATTERNS = ['cypress.config.{js,ts,mjs,cjs}'];
|
|
|
7
7
|
const TEST_FILE_PATTERNS = ['cypress/e2e/**/*.cy.{js,jsx,ts,tsx}'];
|
|
8
8
|
const SUPPORT_FILE_PATTERNS = [
|
|
9
9
|
'cypress/support/e2e.{js,jsx,ts,tsx}',
|
|
10
|
+
'cypress/support/commands.{js,ts}',
|
|
10
11
|
'cypress/plugins/index.js',
|
|
11
12
|
];
|
|
12
13
|
const ENTRY_FILE_PATTERNS = [...TEST_FILE_PATTERNS, ...SUPPORT_FILE_PATTERNS];
|
|
@@ -8,7 +8,8 @@ const productionEntryFilePatternsWithoutSrc = [
|
|
|
8
8
|
'{instrumentation,middleware}.{js,ts}',
|
|
9
9
|
'app/global-error.{js,jsx,ts,tsx}',
|
|
10
10
|
'app/**/{error,layout,loading,not-found,page,template}.{js,jsx,ts,tsx}',
|
|
11
|
-
'app/**/
|
|
11
|
+
'app/**/route.{js,ts}',
|
|
12
|
+
'app/**/default.{js,jsx,ts,tsx}',
|
|
12
13
|
'app/{manifest,sitemap,robots}.{js,ts}',
|
|
13
14
|
'app/**/{icon,apple-icon}.{js,jsx,ts,tsx}',
|
|
14
15
|
'app/**/{opengraph,twitter}-image.{js,jsx,ts,tsx}',
|
package/dist/plugins/nx/index.js
CHANGED
|
@@ -16,7 +16,10 @@ const findNxDependenciesInNxJson = async (configFilePath) => {
|
|
|
16
16
|
.map(it => it.split(':')[0])
|
|
17
17
|
: [];
|
|
18
18
|
const plugins = localConfig.plugins && Array.isArray(localConfig.plugins)
|
|
19
|
-
? localConfig.plugins
|
|
19
|
+
? localConfig.plugins
|
|
20
|
+
.map(item => (typeof item === 'string' ? item : item.plugin))
|
|
21
|
+
.map(it => getPackageNameFromModuleSpecifier(it))
|
|
22
|
+
.filter(value => value !== undefined)
|
|
20
23
|
: [];
|
|
21
24
|
const generators = localConfig.generators
|
|
22
25
|
? Object.keys(localConfig.generators)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "knip",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "Find unused files, dependencies and exports in your TypeScript and JavaScript projects",
|
|
5
5
|
"homepage": "https://knip.dev",
|
|
6
6
|
"repository": {
|
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
"@types/micromatch": "^4.0.6",
|
|
92
92
|
"@types/minimist": "^1.2.5",
|
|
93
93
|
"@types/npmcli__map-workspaces": "^3.0.4",
|
|
94
|
-
"@types/npmcli__package-json": "^4.0.
|
|
95
|
-
"@types/semver": "7.5.
|
|
94
|
+
"@types/npmcli__package-json": "^4.0.4",
|
|
95
|
+
"@types/semver": "7.5.7",
|
|
96
96
|
"@types/webpack": "^5.28.5",
|
|
97
97
|
"c8": "9.1.0",
|
|
98
98
|
"eslint": "^8.56.0",
|