knip 5.56.0 → 5.57.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/README.md CHANGED
@@ -1,17 +1,15 @@
1
1
  <h1 align="center">
2
- <br>
2
+ <br />
3
3
  <a href="https://knip.dev">
4
4
  <img height="200" width="200" src="https://knip.dev/favicon.svg" alt="Knip" />
5
5
  </a>
6
- <br>
7
- <br>
6
+ <br />
7
+ <br />
8
8
  </h1>
9
9
 
10
10
  <div align="center">
11
11
 
12
- [![NPM Version](https://img.shields.io/npm/v/knip?color=f56e0f)][1]
13
- [![NPM Downloads](https://img.shields.io/npm/dm/knip?color=f56e0f)][1]
14
- [![GitHub Repo stars](https://img.shields.io/github/stars/webpro-nl/knip?style=flat-square&color=f56e0f)][2]
12
+ [![NPM Version][2]][1] [![NPM Downloads][3]][1] [![GitHub Repo stars][5]][4]
15
13
 
16
14
  </div>
17
15
 
@@ -19,26 +17,52 @@ Knip finds and fixes **unused dependencies, exports and files** in your
19
17
  JavaScript and TypeScript projects. Less code and dependencies lead to improved
20
18
  performance, less maintenance and easier refactorings.
21
19
 
22
- - Website: [knip.dev][3]
23
- - GitHub repo: [webpro-nl/knip][2]
20
+ - Website: [knip.dev][6]
21
+ - GitHub repo: [webpro-nl/knip][4]
24
22
  - npm package: [knip][1]
25
- - [Discord][4]
26
- - [Contributing Guide][5]
27
- - [Sponsor Knip!][6]
23
+ - [Discord][7]
24
+ - [Contributing Guide][8]
25
+ - [Sponsor Knip!][9]
28
26
 
29
27
  ## Contributors
30
28
 
31
- Special thanks to [the wonderful people who have contributed to Knip][8]!
29
+ Special thanks to [the wonderful people who have contributed to Knip][10]!
32
30
 
33
31
  ## Knip
34
32
 
35
- /'knɪp/ means "(to) cut" and is [pronounced with a hard "K"][7] 🇳🇱
33
+ /'knɪp/ means "(to) cut" and is [pronounced with a hard "K"][11] 🇳🇱
34
+
35
+ ## License
36
+
37
+ Knip is free and open-source software licensed under the [ISC License][12].
38
+
39
+ Parts of Knip have been inspired by and/or partially copy code from the
40
+ following projects:
41
+
42
+ - [@npmcli/package-json][17] ([ISC][18])
43
+ - [@pnpm/deps.graph-sequencer][15] ([MIT][16])
44
+ - [file-entry-cache][13] ([MIT][14])
45
+ - [json-parse-even-better-errors][19] ([MIT][20])
36
46
 
37
47
  [1]: https://www.npmjs.com/package/knip
38
- [2]: https://github.com/webpro-nl/knip
39
- [3]: https://knip.dev
40
- [4]: https://discord.gg/r5uXTtbTpc
41
- [5]: https://github.com/webpro-nl/knip/blob/main/.github/CONTRIBUTING.md
42
- [6]: https://knip.dev/sponsors
43
- [7]: https://www.youtube.com/watch?v=PE7h7KvQoUI&t=9s
44
- [8]: https://knip.dev/#created-by-awesome-contributors
48
+ [2]: https://img.shields.io/npm/v/knip?color=f56e0f
49
+ [3]: https://img.shields.io/npm/dm/knip?color=f56e0f
50
+ [4]: https://github.com/webpro-nl/knip
51
+ [5]:
52
+ https://img.shields.io/github/stars/webpro-nl/knip?style=flat-square&color=f56e0f
53
+ [6]: https://knip.dev
54
+ [7]: https://discord.gg/r5uXTtbTpc
55
+ [8]: https://github.com/webpro-nl/knip/blob/main/.github/CONTRIBUTING.md
56
+ [9]: https://knip.dev/sponsors
57
+ [10]: https://knip.dev/#created-by-awesome-contributors
58
+ [11]: https://www.youtube.com/watch?v=PE7h7KvQoUI&t=9s
59
+ [12]: ./license
60
+ [13]: https://github.com/jaredwray/cacheable/tree/main/packages/file-entry-cache
61
+ [14]:
62
+ https://github.com/jaredwray/cacheable/blob/main/packages/file-entry-cache/LICENSE
63
+ [15]: https://github.com/pnpm/pnpm/tree/main/deps/graph-sequencer
64
+ [16]: https://github.com/pnpm/pnpm/blob/main/LICENSE
65
+ [17]: https://github.com/npm/package-json
66
+ [18]: https://github.com/npm/package-json/blob/main/LICENSE
67
+ [19]: https://github.com/npm/json-parse-even-better-errors
68
+ [20]: https://github.com/npm/json-parse-even-better-errors/blob/main/LICENSE.md
@@ -80,9 +80,12 @@ export declare class ConfigurationChief {
80
80
  bun?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
81
81
  c8?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
82
82
  capacitor?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
83
+ changelogen?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
84
+ changelogithub?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
83
85
  changesets?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
84
86
  commitizen?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
85
87
  commitlint?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
88
+ convex?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
86
89
  "create-typescript-app"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
87
90
  cspell?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
88
91
  cucumber?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
@@ -99,6 +102,7 @@ export declare class ConfigurationChief {
99
102
  "github-actions"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
100
103
  glob?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
101
104
  "graphql-codegen"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
105
+ hardhat?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
102
106
  husky?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
103
107
  "i18next-parser"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
104
108
  jest?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
@@ -267,7 +267,8 @@ export class WorkspaceWorker {
267
267
  configFileName: basename(configFilePath),
268
268
  };
269
269
  const cache = {};
270
- if (plugin.resolveConfig && !seen.get(wsName)?.has(configFilePath)) {
270
+ const key = `${wsName}:${pluginName}`;
271
+ if (plugin.resolveConfig && !seen.get(key)?.has(configFilePath)) {
271
272
  const localConfig = await loadConfigForPlugin(configFilePath, plugin, resolveOpts, pluginName);
272
273
  if (localConfig) {
273
274
  const inputs = await plugin.resolveConfig(localConfig, resolveOpts);
@@ -293,9 +294,9 @@ export class WorkspaceWorker {
293
294
  if (basename(configFilePath) !== 'package.json') {
294
295
  addInput(toEntry(configFilePath));
295
296
  addInput(toConfig(pluginName, configFilePath));
296
- if (!seen.has(wsName))
297
- seen.set(wsName, new Set());
298
- seen.get(wsName)?.add(configFilePath);
297
+ if (!seen.has(key))
298
+ seen.set(key, new Set());
299
+ seen.get(key)?.add(configFilePath);
299
300
  }
300
301
  if (!isManifest && fd?.changed && fd.meta)
301
302
  fd.meta.data = cache;
package/dist/cli.js CHANGED
@@ -75,7 +75,7 @@ const run = async () => {
75
75
  await perfObserver.finalize();
76
76
  if (perfObserver.isTimerifyFunctions)
77
77
  console.log(`\n${perfObserver.getTimerifiedFunctionsTable()}`);
78
- if (perfObserver.isMemoryUsageEnabled)
78
+ if (perfObserver.isMemoryUsageEnabled && !memoryRealtime)
79
79
  console.log(`\n${perfObserver.getMemoryUsageTable()}`);
80
80
  if (perfObserver.isEnabled) {
81
81
  const duration = perfObserver.getCurrentDurationInMs();
@@ -49,6 +49,16 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
49
49
  entry?: string | string[] | undefined;
50
50
  project?: string | string[] | undefined;
51
51
  } | undefined;
52
+ changelogen?: string | boolean | string[] | {
53
+ config?: string | string[] | undefined;
54
+ entry?: string | string[] | undefined;
55
+ project?: string | string[] | undefined;
56
+ } | undefined;
57
+ changelogithub?: string | boolean | string[] | {
58
+ config?: string | string[] | undefined;
59
+ entry?: string | string[] | undefined;
60
+ project?: string | string[] | undefined;
61
+ } | undefined;
52
62
  changesets?: string | boolean | string[] | {
53
63
  config?: string | string[] | undefined;
54
64
  entry?: string | string[] | undefined;
@@ -64,6 +74,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
64
74
  entry?: string | string[] | undefined;
65
75
  project?: string | string[] | undefined;
66
76
  } | undefined;
77
+ convex?: string | boolean | string[] | {
78
+ config?: string | string[] | undefined;
79
+ entry?: string | string[] | undefined;
80
+ project?: string | string[] | undefined;
81
+ } | undefined;
67
82
  'create-typescript-app'?: string | boolean | string[] | {
68
83
  config?: string | string[] | undefined;
69
84
  entry?: string | string[] | undefined;
@@ -144,6 +159,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
144
159
  entry?: string | string[] | undefined;
145
160
  project?: string | string[] | undefined;
146
161
  } | undefined;
162
+ hardhat?: string | boolean | string[] | {
163
+ config?: string | string[] | undefined;
164
+ entry?: string | string[] | undefined;
165
+ project?: string | string[] | undefined;
166
+ } | undefined;
147
167
  husky?: string | boolean | string[] | {
148
168
  config?: string | string[] | undefined;
149
169
  entry?: string | string[] | undefined;
@@ -580,6 +600,16 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
580
600
  entry?: string | string[] | undefined;
581
601
  project?: string | string[] | undefined;
582
602
  } | undefined;
603
+ changelogen?: string | boolean | string[] | {
604
+ config?: string | string[] | undefined;
605
+ entry?: string | string[] | undefined;
606
+ project?: string | string[] | undefined;
607
+ } | undefined;
608
+ changelogithub?: string | boolean | string[] | {
609
+ config?: string | string[] | undefined;
610
+ entry?: string | string[] | undefined;
611
+ project?: string | string[] | undefined;
612
+ } | undefined;
583
613
  changesets?: string | boolean | string[] | {
584
614
  config?: string | string[] | undefined;
585
615
  entry?: string | string[] | undefined;
@@ -595,6 +625,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
595
625
  entry?: string | string[] | undefined;
596
626
  project?: string | string[] | undefined;
597
627
  } | undefined;
628
+ convex?: string | boolean | string[] | {
629
+ config?: string | string[] | undefined;
630
+ entry?: string | string[] | undefined;
631
+ project?: string | string[] | undefined;
632
+ } | undefined;
598
633
  'create-typescript-app'?: string | boolean | string[] | {
599
634
  config?: string | string[] | undefined;
600
635
  entry?: string | string[] | undefined;
@@ -675,6 +710,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
675
710
  entry?: string | string[] | undefined;
676
711
  project?: string | string[] | undefined;
677
712
  } | undefined;
713
+ hardhat?: string | boolean | string[] | {
714
+ config?: string | string[] | undefined;
715
+ entry?: string | string[] | undefined;
716
+ project?: string | string[] | undefined;
717
+ } | undefined;
678
718
  husky?: string | boolean | string[] | {
679
719
  config?: string | string[] | undefined;
680
720
  entry?: string | string[] | undefined;
@@ -10,7 +10,6 @@ import { isAlias, isConfig, isDeferResolveEntry, isDeferResolveProductionEntry,
10
10
  import { getOrCreateFileNode, updateImportMap } from '../util/module-graph.js';
11
11
  import { getEntryPathsFromManifest } from '../util/package-json.js';
12
12
  import { dirname, isAbsolute, join, relative, toRelative } from '../util/path.js';
13
- import {} from '../util/tag.js';
14
13
  import { augmentWorkspace, getToSourcePathHandler, getToSourcePathsHandler } from '../util/to-source-path.js';
15
14
  import { loadTSConfig } from '../util/tsconfig-loader.js';
16
15
  export async function build({ cacheLocation, chief, collector, cwd, deputy, factory, gitignore, isCache, isFixExports, isFixTypes, isGitIgnored, isIsolateWorkspaces, isProduction, isSkipLibs, isStrict, isWatch, report, streamer, tags, tsConfigFile, workspaces, }) {
@@ -0,0 +1,9 @@
1
+ import type { IsPluginEnabled } from '../../types/config.js';
2
+ declare const _default: {
3
+ title: string;
4
+ enablers: string[];
5
+ isEnabled: IsPluginEnabled;
6
+ isRootOnly: true;
7
+ entry: string[];
8
+ };
9
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { toC12config } from '../../util/plugin-config.js';
2
+ import { hasDependency } from '../../util/plugin.js';
3
+ const title = 'Changelogen';
4
+ const enablers = ['changelogen'];
5
+ const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
6
+ const entry = ['package.json', ...toC12config('changelog')];
7
+ const isRootOnly = true;
8
+ export default {
9
+ title,
10
+ enablers,
11
+ isEnabled,
12
+ isRootOnly,
13
+ entry,
14
+ };
@@ -0,0 +1,9 @@
1
+ import type { IsPluginEnabled } from '../../types/config.js';
2
+ declare const _default: {
3
+ title: string;
4
+ enablers: string[];
5
+ isEnabled: IsPluginEnabled;
6
+ isRootOnly: true;
7
+ entry: string[];
8
+ };
9
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { toC12config } from '../../util/plugin-config.js';
2
+ import { hasDependency } from '../../util/plugin.js';
3
+ const title = 'Changelogithub';
4
+ const enablers = ['changelogithub'];
5
+ const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
6
+ const entry = ['package.json', ...toC12config('changelogithub')];
7
+ const isRootOnly = true;
8
+ export default {
9
+ title,
10
+ enablers,
11
+ isEnabled,
12
+ isRootOnly,
13
+ entry,
14
+ };
@@ -0,0 +1,8 @@
1
+ import type { IsPluginEnabled } from '../../types/config.js';
2
+ declare const _default: {
3
+ title: string;
4
+ enablers: string[];
5
+ isEnabled: IsPluginEnabled;
6
+ entry: string[];
7
+ };
8
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { hasDependency } from '../../util/plugin.js';
2
+ const title = 'Convex';
3
+ const enablers = ['convex'];
4
+ const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
5
+ const entry = ['convex/*.config.@(js|ts)', 'convex/_generated/*.@(js|ts)'];
6
+ export default {
7
+ title,
8
+ enablers,
9
+ isEnabled,
10
+ entry,
11
+ };
@@ -0,0 +1,9 @@
1
+ import type { IsPluginEnabled, Resolve } from '../../types/config.js';
2
+ declare const _default: {
3
+ title: string;
4
+ enablers: string[];
5
+ isEnabled: IsPluginEnabled;
6
+ entry: string[];
7
+ resolve: Resolve;
8
+ };
9
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import { toDependency } from '../../util/input.js';
2
+ import { hasDependency } from '../../util/plugin.js';
3
+ const title = 'Hardhat';
4
+ const enablers = ['hardhat'];
5
+ const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
6
+ const entry = ['hardhat.config.{js,cjs,mjs,ts}'];
7
+ const resolve = async () => {
8
+ return [toDependency('hardhat')];
9
+ };
10
+ export default {
11
+ title,
12
+ enablers,
13
+ isEnabled,
14
+ entry,
15
+ resolve,
16
+ };
@@ -54,6 +54,20 @@ export declare const Plugins: {
54
54
  config: string[];
55
55
  resolveConfig: import("../types/config.js").ResolveConfig<import("./capacitor/types.js").CapacitorConfig>;
56
56
  };
57
+ changelogen: {
58
+ title: string;
59
+ enablers: string[];
60
+ isEnabled: import("../types/config.js").IsPluginEnabled;
61
+ isRootOnly: true;
62
+ entry: string[];
63
+ };
64
+ changelogithub: {
65
+ title: string;
66
+ enablers: string[];
67
+ isEnabled: import("../types/config.js").IsPluginEnabled;
68
+ isRootOnly: true;
69
+ entry: string[];
70
+ };
57
71
  changesets: {
58
72
  title: string;
59
73
  enablers: string[];
@@ -78,6 +92,12 @@ export declare const Plugins: {
78
92
  config: string[];
79
93
  resolveConfig: import("../types/config.js").ResolveConfig<import("./commitlint/types.js").CommitLintConfig>;
80
94
  };
95
+ convex: {
96
+ title: string;
97
+ enablers: string[];
98
+ isEnabled: import("../types/config.js").IsPluginEnabled;
99
+ entry: string[];
100
+ };
81
101
  'create-typescript-app': {
82
102
  enablers: string[];
83
103
  entry: string[];
@@ -206,6 +226,13 @@ export declare const Plugins: {
206
226
  config: string[];
207
227
  resolveConfig: import("../types/config.js").ResolveConfig<import("./graphql-codegen/types.js").GraphqlCodegenTypes | import("./graphql-codegen/types.js").GraphqlConfigTypes | import("./graphql-codegen/types.js").GraphqlProjectsConfigTypes>;
208
228
  };
229
+ hardhat: {
230
+ title: string;
231
+ enablers: string[];
232
+ isEnabled: import("../types/config.js").IsPluginEnabled;
233
+ entry: string[];
234
+ resolve: import("../types/config.js").Resolve;
235
+ };
209
236
  husky: {
210
237
  title: string;
211
238
  enablers: string[];
@@ -696,6 +723,10 @@ export declare const Plugins: {
696
723
  };
697
724
  tsx: {
698
725
  title: string;
726
+ isEnabled: import("../types/config.js").IsPluginEnabled;
727
+ packageJsonPath: (id: import("../types/package-json.js").PackageJson) => import("../types/package-json.js").PackageJson;
728
+ config: string[];
729
+ resolveConfig: import("../types/config.js").ResolveConfig<import("../types/package-json.js").PackageJson>;
699
730
  args: {
700
731
  positional: boolean;
701
732
  nodeImportArgs: boolean;
@@ -5,9 +5,12 @@ import { default as babel } from './babel/index.js';
5
5
  import { default as bun } from './bun/index.js';
6
6
  import { default as c8 } from './c8/index.js';
7
7
  import { default as capacitor } from './capacitor/index.js';
8
+ import { default as changelogen } from './changelogen/index.js';
9
+ import { default as changelogithub } from './changelogithub/index.js';
8
10
  import { default as changesets } from './changesets/index.js';
9
11
  import { default as commitizen } from './commitizen/index.js';
10
12
  import { default as commitlint } from './commitlint/index.js';
13
+ import { default as convex } from './convex/index.js';
11
14
  import { default as createTypescriptApp } from './create-typescript-app/index.js';
12
15
  import { default as cspell } from './cspell/index.js';
13
16
  import { default as cucumber } from './cucumber/index.js';
@@ -24,6 +27,7 @@ import { default as githubAction } from './github-action/index.js';
24
27
  import { default as githubActions } from './github-actions/index.js';
25
28
  import { default as glob } from './glob/index.js';
26
29
  import { default as graphqlCodegen } from './graphql-codegen/index.js';
30
+ import { default as hardhat } from './hardhat/index.js';
27
31
  import { default as husky } from './husky/index.js';
28
32
  import { default as i18nextParser } from './i18next-parser/index.js';
29
33
  import { default as jest } from './jest/index.js';
@@ -109,9 +113,12 @@ export const Plugins = {
109
113
  bun,
110
114
  c8,
111
115
  capacitor,
116
+ changelogen,
117
+ changelogithub,
112
118
  changesets,
113
119
  commitizen,
114
120
  commitlint,
121
+ convex,
115
122
  'create-typescript-app': createTypescriptApp,
116
123
  cspell,
117
124
  cucumber,
@@ -128,6 +135,7 @@ export const Plugins = {
128
135
  'github-actions': githubActions,
129
136
  glob,
130
137
  'graphql-codegen': graphqlCodegen,
138
+ hardhat,
131
139
  husky,
132
140
  'i18next-parser': i18nextParser,
133
141
  jest,
@@ -1,4 +1,4 @@
1
- import { toEntry } from '../../util/input.js';
1
+ import { toDeferResolve, toEntry } from '../../util/input.js';
2
2
  import { hasDependency } from '../../util/plugin.js';
3
3
  const title = 'Mocha';
4
4
  const enablers = ['mocha'];
@@ -8,7 +8,10 @@ const entry = ['**/test/*.{js,cjs,mjs}'];
8
8
  const resolveConfig = localConfig => {
9
9
  const entryPatterns = localConfig.spec ? [localConfig.spec].flat() : entry;
10
10
  const require = localConfig.require ? [localConfig.require].flat() : [];
11
- return [...entryPatterns, ...require].map(id => toEntry(id));
11
+ const inputs = [];
12
+ inputs.push(...entryPatterns.map(id => toEntry(id)));
13
+ inputs.push(...require.map(id => toDeferResolve(id)));
14
+ return inputs;
12
15
  };
13
16
  const args = {
14
17
  nodeImportArgs: true,
@@ -42,7 +42,7 @@ const resolveConfig = async (localConfig, options) => {
42
42
  if (target.options?.command)
43
43
  return [target.options.command];
44
44
  if (target.options?.commands)
45
- return target.options.commands;
45
+ return target.options.commands.map(commandConfig => typeof commandConfig === 'string' ? commandConfig : commandConfig.command);
46
46
  return [];
47
47
  });
48
48
  const inputs = options.getInputsFromScripts(scripts);
@@ -5,7 +5,9 @@ export interface NxProjectConfiguration {
5
5
  executor?: string;
6
6
  options?: {
7
7
  command?: string;
8
- commands?: string[];
8
+ commands?: Array<string | {
9
+ command: string;
10
+ }>;
9
11
  };
10
12
  };
11
13
  };
@@ -1,5 +1,11 @@
1
+ import type { IsPluginEnabled, ResolveConfig } from '../../types/config.js';
2
+ import type { PackageJson } from '../../types/package-json.js';
1
3
  declare const _default: {
2
4
  title: string;
5
+ isEnabled: IsPluginEnabled;
6
+ packageJsonPath: (id: PackageJson) => PackageJson;
7
+ config: string[];
8
+ resolveConfig: ResolveConfig<PackageJson>;
3
9
  args: {
4
10
  positional: boolean;
5
11
  nodeImportArgs: boolean;
@@ -1,4 +1,24 @@
1
+ import { toEntry } from '../../util/input.js';
2
+ import { hasDependency } from '../../util/plugin.js';
1
3
  const title = 'tsx';
4
+ const enablers = ['tsx'];
5
+ const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
6
+ const config = ['package.json'];
7
+ const packageJsonPath = (id) => id;
8
+ const resolveConfig = localConfig => {
9
+ const scripts = localConfig.scripts;
10
+ const entries = [];
11
+ if (scripts && Object.keys(scripts).some(script => /(?<=^|\s)tsx\s(.*)--test/.test(scripts[script]))) {
12
+ const patterns = [
13
+ '**/*{.,-,_}test.?(c|m)(j|t)s',
14
+ '**/test-*.?(c|m)(j|t)s',
15
+ '**/test.?(c|m)(j|t)s',
16
+ '**/test/**/*.?(c|m)(j|t)s',
17
+ ];
18
+ entries.push(...patterns.map(id => toEntry(id)));
19
+ }
20
+ return entries;
21
+ };
2
22
  const args = {
3
23
  positional: true,
4
24
  nodeImportArgs: true,
@@ -6,5 +26,9 @@ const args = {
6
26
  };
7
27
  export default {
8
28
  title,
29
+ isEnabled,
30
+ packageJsonPath,
31
+ config,
32
+ resolveConfig,
9
33
  args,
10
34
  };
@@ -124,6 +124,32 @@ export declare const knipConfigurationSchema: z.ZodObject<{
124
124
  entry?: string | string[] | undefined;
125
125
  project?: string | string[] | undefined;
126
126
  }>]>>;
127
+ changelogen: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
128
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
129
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
130
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ config?: string | string[] | undefined;
133
+ entry?: string | string[] | undefined;
134
+ project?: string | string[] | undefined;
135
+ }, {
136
+ config?: string | string[] | undefined;
137
+ entry?: string | string[] | undefined;
138
+ project?: string | string[] | undefined;
139
+ }>]>>;
140
+ changelogithub: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
141
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
142
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
143
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
144
+ }, "strip", z.ZodTypeAny, {
145
+ config?: string | string[] | undefined;
146
+ entry?: string | string[] | undefined;
147
+ project?: string | string[] | undefined;
148
+ }, {
149
+ config?: string | string[] | undefined;
150
+ entry?: string | string[] | undefined;
151
+ project?: string | string[] | undefined;
152
+ }>]>>;
127
153
  changesets: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
128
154
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
129
155
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -163,6 +189,19 @@ export declare const knipConfigurationSchema: z.ZodObject<{
163
189
  entry?: string | string[] | undefined;
164
190
  project?: string | string[] | undefined;
165
191
  }>]>>;
192
+ convex: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
193
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
194
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
195
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
196
+ }, "strip", z.ZodTypeAny, {
197
+ config?: string | string[] | undefined;
198
+ entry?: string | string[] | undefined;
199
+ project?: string | string[] | undefined;
200
+ }, {
201
+ config?: string | string[] | undefined;
202
+ entry?: string | string[] | undefined;
203
+ project?: string | string[] | undefined;
204
+ }>]>>;
166
205
  'create-typescript-app': z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
167
206
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
168
207
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -371,6 +410,19 @@ export declare const knipConfigurationSchema: z.ZodObject<{
371
410
  entry?: string | string[] | undefined;
372
411
  project?: string | string[] | undefined;
373
412
  }>]>>;
413
+ hardhat: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
414
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
415
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
416
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
417
+ }, "strip", z.ZodTypeAny, {
418
+ config?: string | string[] | undefined;
419
+ entry?: string | string[] | undefined;
420
+ project?: string | string[] | undefined;
421
+ }, {
422
+ config?: string | string[] | undefined;
423
+ entry?: string | string[] | undefined;
424
+ project?: string | string[] | undefined;
425
+ }>]>>;
374
426
  husky: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
375
427
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
376
428
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -1415,6 +1467,16 @@ export declare const knipConfigurationSchema: z.ZodObject<{
1415
1467
  entry?: string | string[] | undefined;
1416
1468
  project?: string | string[] | undefined;
1417
1469
  } | undefined;
1470
+ changelogen?: string | boolean | string[] | {
1471
+ config?: string | string[] | undefined;
1472
+ entry?: string | string[] | undefined;
1473
+ project?: string | string[] | undefined;
1474
+ } | undefined;
1475
+ changelogithub?: string | boolean | string[] | {
1476
+ config?: string | string[] | undefined;
1477
+ entry?: string | string[] | undefined;
1478
+ project?: string | string[] | undefined;
1479
+ } | undefined;
1418
1480
  changesets?: string | boolean | string[] | {
1419
1481
  config?: string | string[] | undefined;
1420
1482
  entry?: string | string[] | undefined;
@@ -1430,6 +1492,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
1430
1492
  entry?: string | string[] | undefined;
1431
1493
  project?: string | string[] | undefined;
1432
1494
  } | undefined;
1495
+ convex?: string | boolean | string[] | {
1496
+ config?: string | string[] | undefined;
1497
+ entry?: string | string[] | undefined;
1498
+ project?: string | string[] | undefined;
1499
+ } | undefined;
1433
1500
  'create-typescript-app'?: string | boolean | string[] | {
1434
1501
  config?: string | string[] | undefined;
1435
1502
  entry?: string | string[] | undefined;
@@ -1510,6 +1577,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
1510
1577
  entry?: string | string[] | undefined;
1511
1578
  project?: string | string[] | undefined;
1512
1579
  } | undefined;
1580
+ hardhat?: string | boolean | string[] | {
1581
+ config?: string | string[] | undefined;
1582
+ entry?: string | string[] | undefined;
1583
+ project?: string | string[] | undefined;
1584
+ } | undefined;
1513
1585
  husky?: string | boolean | string[] | {
1514
1586
  config?: string | string[] | undefined;
1515
1587
  entry?: string | string[] | undefined;
@@ -1940,6 +2012,16 @@ export declare const knipConfigurationSchema: z.ZodObject<{
1940
2012
  entry?: string | string[] | undefined;
1941
2013
  project?: string | string[] | undefined;
1942
2014
  } | undefined;
2015
+ changelogen?: string | boolean | string[] | {
2016
+ config?: string | string[] | undefined;
2017
+ entry?: string | string[] | undefined;
2018
+ project?: string | string[] | undefined;
2019
+ } | undefined;
2020
+ changelogithub?: string | boolean | string[] | {
2021
+ config?: string | string[] | undefined;
2022
+ entry?: string | string[] | undefined;
2023
+ project?: string | string[] | undefined;
2024
+ } | undefined;
1943
2025
  changesets?: string | boolean | string[] | {
1944
2026
  config?: string | string[] | undefined;
1945
2027
  entry?: string | string[] | undefined;
@@ -1955,6 +2037,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
1955
2037
  entry?: string | string[] | undefined;
1956
2038
  project?: string | string[] | undefined;
1957
2039
  } | undefined;
2040
+ convex?: string | boolean | string[] | {
2041
+ config?: string | string[] | undefined;
2042
+ entry?: string | string[] | undefined;
2043
+ project?: string | string[] | undefined;
2044
+ } | undefined;
1958
2045
  'create-typescript-app'?: string | boolean | string[] | {
1959
2046
  config?: string | string[] | undefined;
1960
2047
  entry?: string | string[] | undefined;
@@ -2035,6 +2122,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
2035
2122
  entry?: string | string[] | undefined;
2036
2123
  project?: string | string[] | undefined;
2037
2124
  } | undefined;
2125
+ hardhat?: string | boolean | string[] | {
2126
+ config?: string | string[] | undefined;
2127
+ entry?: string | string[] | undefined;
2128
+ project?: string | string[] | undefined;
2129
+ } | undefined;
2038
2130
  husky?: string | boolean | string[] | {
2039
2131
  config?: string | string[] | undefined;
2040
2132
  entry?: string | string[] | undefined;
@@ -2515,6 +2607,32 @@ export declare const knipConfigurationSchema: z.ZodObject<{
2515
2607
  entry?: string | string[] | undefined;
2516
2608
  project?: string | string[] | undefined;
2517
2609
  }>]>>;
2610
+ changelogen: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
2611
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2612
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2613
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2614
+ }, "strip", z.ZodTypeAny, {
2615
+ config?: string | string[] | undefined;
2616
+ entry?: string | string[] | undefined;
2617
+ project?: string | string[] | undefined;
2618
+ }, {
2619
+ config?: string | string[] | undefined;
2620
+ entry?: string | string[] | undefined;
2621
+ project?: string | string[] | undefined;
2622
+ }>]>>;
2623
+ changelogithub: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
2624
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2625
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2626
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2627
+ }, "strip", z.ZodTypeAny, {
2628
+ config?: string | string[] | undefined;
2629
+ entry?: string | string[] | undefined;
2630
+ project?: string | string[] | undefined;
2631
+ }, {
2632
+ config?: string | string[] | undefined;
2633
+ entry?: string | string[] | undefined;
2634
+ project?: string | string[] | undefined;
2635
+ }>]>>;
2518
2636
  changesets: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
2519
2637
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2520
2638
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -2554,6 +2672,19 @@ export declare const knipConfigurationSchema: z.ZodObject<{
2554
2672
  entry?: string | string[] | undefined;
2555
2673
  project?: string | string[] | undefined;
2556
2674
  }>]>>;
2675
+ convex: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
2676
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2677
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2678
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2679
+ }, "strip", z.ZodTypeAny, {
2680
+ config?: string | string[] | undefined;
2681
+ entry?: string | string[] | undefined;
2682
+ project?: string | string[] | undefined;
2683
+ }, {
2684
+ config?: string | string[] | undefined;
2685
+ entry?: string | string[] | undefined;
2686
+ project?: string | string[] | undefined;
2687
+ }>]>>;
2557
2688
  'create-typescript-app': z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
2558
2689
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2559
2690
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -2762,6 +2893,19 @@ export declare const knipConfigurationSchema: z.ZodObject<{
2762
2893
  entry?: string | string[] | undefined;
2763
2894
  project?: string | string[] | undefined;
2764
2895
  }>]>>;
2896
+ hardhat: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
2897
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2898
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2899
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2900
+ }, "strip", z.ZodTypeAny, {
2901
+ config?: string | string[] | undefined;
2902
+ entry?: string | string[] | undefined;
2903
+ project?: string | string[] | undefined;
2904
+ }, {
2905
+ config?: string | string[] | undefined;
2906
+ entry?: string | string[] | undefined;
2907
+ project?: string | string[] | undefined;
2908
+ }>]>>;
2765
2909
  husky: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
2766
2910
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2767
2911
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -3809,6 +3953,16 @@ export declare const knipConfigurationSchema: z.ZodObject<{
3809
3953
  entry?: string | string[] | undefined;
3810
3954
  project?: string | string[] | undefined;
3811
3955
  } | undefined;
3956
+ changelogen?: string | boolean | string[] | {
3957
+ config?: string | string[] | undefined;
3958
+ entry?: string | string[] | undefined;
3959
+ project?: string | string[] | undefined;
3960
+ } | undefined;
3961
+ changelogithub?: string | boolean | string[] | {
3962
+ config?: string | string[] | undefined;
3963
+ entry?: string | string[] | undefined;
3964
+ project?: string | string[] | undefined;
3965
+ } | undefined;
3812
3966
  changesets?: string | boolean | string[] | {
3813
3967
  config?: string | string[] | undefined;
3814
3968
  entry?: string | string[] | undefined;
@@ -3824,6 +3978,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
3824
3978
  entry?: string | string[] | undefined;
3825
3979
  project?: string | string[] | undefined;
3826
3980
  } | undefined;
3981
+ convex?: string | boolean | string[] | {
3982
+ config?: string | string[] | undefined;
3983
+ entry?: string | string[] | undefined;
3984
+ project?: string | string[] | undefined;
3985
+ } | undefined;
3827
3986
  'create-typescript-app'?: string | boolean | string[] | {
3828
3987
  config?: string | string[] | undefined;
3829
3988
  entry?: string | string[] | undefined;
@@ -3904,6 +4063,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
3904
4063
  entry?: string | string[] | undefined;
3905
4064
  project?: string | string[] | undefined;
3906
4065
  } | undefined;
4066
+ hardhat?: string | boolean | string[] | {
4067
+ config?: string | string[] | undefined;
4068
+ entry?: string | string[] | undefined;
4069
+ project?: string | string[] | undefined;
4070
+ } | undefined;
3907
4071
  husky?: string | boolean | string[] | {
3908
4072
  config?: string | string[] | undefined;
3909
4073
  entry?: string | string[] | undefined;
@@ -4342,6 +4506,16 @@ export declare const knipConfigurationSchema: z.ZodObject<{
4342
4506
  entry?: string | string[] | undefined;
4343
4507
  project?: string | string[] | undefined;
4344
4508
  } | undefined;
4509
+ changelogen?: string | boolean | string[] | {
4510
+ config?: string | string[] | undefined;
4511
+ entry?: string | string[] | undefined;
4512
+ project?: string | string[] | undefined;
4513
+ } | undefined;
4514
+ changelogithub?: string | boolean | string[] | {
4515
+ config?: string | string[] | undefined;
4516
+ entry?: string | string[] | undefined;
4517
+ project?: string | string[] | undefined;
4518
+ } | undefined;
4345
4519
  changesets?: string | boolean | string[] | {
4346
4520
  config?: string | string[] | undefined;
4347
4521
  entry?: string | string[] | undefined;
@@ -4357,6 +4531,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
4357
4531
  entry?: string | string[] | undefined;
4358
4532
  project?: string | string[] | undefined;
4359
4533
  } | undefined;
4534
+ convex?: string | boolean | string[] | {
4535
+ config?: string | string[] | undefined;
4536
+ entry?: string | string[] | undefined;
4537
+ project?: string | string[] | undefined;
4538
+ } | undefined;
4360
4539
  'create-typescript-app'?: string | boolean | string[] | {
4361
4540
  config?: string | string[] | undefined;
4362
4541
  entry?: string | string[] | undefined;
@@ -4437,6 +4616,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
4437
4616
  entry?: string | string[] | undefined;
4438
4617
  project?: string | string[] | undefined;
4439
4618
  } | undefined;
4619
+ hardhat?: string | boolean | string[] | {
4620
+ config?: string | string[] | undefined;
4621
+ entry?: string | string[] | undefined;
4622
+ project?: string | string[] | undefined;
4623
+ } | undefined;
4440
4624
  husky?: string | boolean | string[] | {
4441
4625
  config?: string | string[] | undefined;
4442
4626
  entry?: string | string[] | undefined;
@@ -4871,6 +5055,16 @@ export declare const knipConfigurationSchema: z.ZodObject<{
4871
5055
  entry?: string | string[] | undefined;
4872
5056
  project?: string | string[] | undefined;
4873
5057
  } | undefined;
5058
+ changelogen?: string | boolean | string[] | {
5059
+ config?: string | string[] | undefined;
5060
+ entry?: string | string[] | undefined;
5061
+ project?: string | string[] | undefined;
5062
+ } | undefined;
5063
+ changelogithub?: string | boolean | string[] | {
5064
+ config?: string | string[] | undefined;
5065
+ entry?: string | string[] | undefined;
5066
+ project?: string | string[] | undefined;
5067
+ } | undefined;
4874
5068
  changesets?: string | boolean | string[] | {
4875
5069
  config?: string | string[] | undefined;
4876
5070
  entry?: string | string[] | undefined;
@@ -4886,6 +5080,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
4886
5080
  entry?: string | string[] | undefined;
4887
5081
  project?: string | string[] | undefined;
4888
5082
  } | undefined;
5083
+ convex?: string | boolean | string[] | {
5084
+ config?: string | string[] | undefined;
5085
+ entry?: string | string[] | undefined;
5086
+ project?: string | string[] | undefined;
5087
+ } | undefined;
4889
5088
  'create-typescript-app'?: string | boolean | string[] | {
4890
5089
  config?: string | string[] | undefined;
4891
5090
  entry?: string | string[] | undefined;
@@ -4966,6 +5165,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
4966
5165
  entry?: string | string[] | undefined;
4967
5166
  project?: string | string[] | undefined;
4968
5167
  } | undefined;
5168
+ hardhat?: string | boolean | string[] | {
5169
+ config?: string | string[] | undefined;
5170
+ entry?: string | string[] | undefined;
5171
+ project?: string | string[] | undefined;
5172
+ } | undefined;
4969
5173
  husky?: string | boolean | string[] | {
4970
5174
  config?: string | string[] | undefined;
4971
5175
  entry?: string | string[] | undefined;
@@ -5404,6 +5608,16 @@ export declare const knipConfigurationSchema: z.ZodObject<{
5404
5608
  entry?: string | string[] | undefined;
5405
5609
  project?: string | string[] | undefined;
5406
5610
  } | undefined;
5611
+ changelogen?: string | boolean | string[] | {
5612
+ config?: string | string[] | undefined;
5613
+ entry?: string | string[] | undefined;
5614
+ project?: string | string[] | undefined;
5615
+ } | undefined;
5616
+ changelogithub?: string | boolean | string[] | {
5617
+ config?: string | string[] | undefined;
5618
+ entry?: string | string[] | undefined;
5619
+ project?: string | string[] | undefined;
5620
+ } | undefined;
5407
5621
  changesets?: string | boolean | string[] | {
5408
5622
  config?: string | string[] | undefined;
5409
5623
  entry?: string | string[] | undefined;
@@ -5419,6 +5633,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
5419
5633
  entry?: string | string[] | undefined;
5420
5634
  project?: string | string[] | undefined;
5421
5635
  } | undefined;
5636
+ convex?: string | boolean | string[] | {
5637
+ config?: string | string[] | undefined;
5638
+ entry?: string | string[] | undefined;
5639
+ project?: string | string[] | undefined;
5640
+ } | undefined;
5422
5641
  'create-typescript-app'?: string | boolean | string[] | {
5423
5642
  config?: string | string[] | undefined;
5424
5643
  entry?: string | string[] | undefined;
@@ -5499,6 +5718,11 @@ export declare const knipConfigurationSchema: z.ZodObject<{
5499
5718
  entry?: string | string[] | undefined;
5500
5719
  project?: string | string[] | undefined;
5501
5720
  } | undefined;
5721
+ hardhat?: string | boolean | string[] | {
5722
+ config?: string | string[] | undefined;
5723
+ entry?: string | string[] | undefined;
5724
+ project?: string | string[] | undefined;
5725
+ } | undefined;
5502
5726
  husky?: string | boolean | string[] | {
5503
5727
  config?: string | string[] | undefined;
5504
5728
  entry?: string | string[] | undefined;
@@ -105,6 +105,32 @@ export declare const pluginsSchema: z.ZodObject<{
105
105
  entry?: string | string[] | undefined;
106
106
  project?: string | string[] | undefined;
107
107
  }>]>;
108
+ changelogen: z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
109
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
110
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
111
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ config?: string | string[] | undefined;
114
+ entry?: string | string[] | undefined;
115
+ project?: string | string[] | undefined;
116
+ }, {
117
+ config?: string | string[] | undefined;
118
+ entry?: string | string[] | undefined;
119
+ project?: string | string[] | undefined;
120
+ }>]>;
121
+ changelogithub: z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
122
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
123
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
124
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ config?: string | string[] | undefined;
127
+ entry?: string | string[] | undefined;
128
+ project?: string | string[] | undefined;
129
+ }, {
130
+ config?: string | string[] | undefined;
131
+ entry?: string | string[] | undefined;
132
+ project?: string | string[] | undefined;
133
+ }>]>;
108
134
  changesets: z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
109
135
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
110
136
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -144,6 +170,19 @@ export declare const pluginsSchema: z.ZodObject<{
144
170
  entry?: string | string[] | undefined;
145
171
  project?: string | string[] | undefined;
146
172
  }>]>;
173
+ convex: z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
174
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
175
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
176
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ config?: string | string[] | undefined;
179
+ entry?: string | string[] | undefined;
180
+ project?: string | string[] | undefined;
181
+ }, {
182
+ config?: string | string[] | undefined;
183
+ entry?: string | string[] | undefined;
184
+ project?: string | string[] | undefined;
185
+ }>]>;
147
186
  'create-typescript-app': z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
148
187
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
149
188
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -352,6 +391,19 @@ export declare const pluginsSchema: z.ZodObject<{
352
391
  entry?: string | string[] | undefined;
353
392
  project?: string | string[] | undefined;
354
393
  }>]>;
394
+ hardhat: z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
395
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
396
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
397
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
398
+ }, "strip", z.ZodTypeAny, {
399
+ config?: string | string[] | undefined;
400
+ entry?: string | string[] | undefined;
401
+ project?: string | string[] | undefined;
402
+ }, {
403
+ config?: string | string[] | undefined;
404
+ entry?: string | string[] | undefined;
405
+ project?: string | string[] | undefined;
406
+ }>]>;
355
407
  husky: z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
356
408
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
357
409
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -1394,6 +1446,16 @@ export declare const pluginsSchema: z.ZodObject<{
1394
1446
  entry?: string | string[] | undefined;
1395
1447
  project?: string | string[] | undefined;
1396
1448
  };
1449
+ changelogen: string | boolean | string[] | {
1450
+ config?: string | string[] | undefined;
1451
+ entry?: string | string[] | undefined;
1452
+ project?: string | string[] | undefined;
1453
+ };
1454
+ changelogithub: string | boolean | string[] | {
1455
+ config?: string | string[] | undefined;
1456
+ entry?: string | string[] | undefined;
1457
+ project?: string | string[] | undefined;
1458
+ };
1397
1459
  changesets: string | boolean | string[] | {
1398
1460
  config?: string | string[] | undefined;
1399
1461
  entry?: string | string[] | undefined;
@@ -1409,6 +1471,11 @@ export declare const pluginsSchema: z.ZodObject<{
1409
1471
  entry?: string | string[] | undefined;
1410
1472
  project?: string | string[] | undefined;
1411
1473
  };
1474
+ convex: string | boolean | string[] | {
1475
+ config?: string | string[] | undefined;
1476
+ entry?: string | string[] | undefined;
1477
+ project?: string | string[] | undefined;
1478
+ };
1412
1479
  'create-typescript-app': string | boolean | string[] | {
1413
1480
  config?: string | string[] | undefined;
1414
1481
  entry?: string | string[] | undefined;
@@ -1489,6 +1556,11 @@ export declare const pluginsSchema: z.ZodObject<{
1489
1556
  entry?: string | string[] | undefined;
1490
1557
  project?: string | string[] | undefined;
1491
1558
  };
1559
+ hardhat: string | boolean | string[] | {
1560
+ config?: string | string[] | undefined;
1561
+ entry?: string | string[] | undefined;
1562
+ project?: string | string[] | undefined;
1563
+ };
1492
1564
  husky: string | boolean | string[] | {
1493
1565
  config?: string | string[] | undefined;
1494
1566
  entry?: string | string[] | undefined;
@@ -1910,6 +1982,16 @@ export declare const pluginsSchema: z.ZodObject<{
1910
1982
  entry?: string | string[] | undefined;
1911
1983
  project?: string | string[] | undefined;
1912
1984
  };
1985
+ changelogen: string | boolean | string[] | {
1986
+ config?: string | string[] | undefined;
1987
+ entry?: string | string[] | undefined;
1988
+ project?: string | string[] | undefined;
1989
+ };
1990
+ changelogithub: string | boolean | string[] | {
1991
+ config?: string | string[] | undefined;
1992
+ entry?: string | string[] | undefined;
1993
+ project?: string | string[] | undefined;
1994
+ };
1913
1995
  changesets: string | boolean | string[] | {
1914
1996
  config?: string | string[] | undefined;
1915
1997
  entry?: string | string[] | undefined;
@@ -1925,6 +2007,11 @@ export declare const pluginsSchema: z.ZodObject<{
1925
2007
  entry?: string | string[] | undefined;
1926
2008
  project?: string | string[] | undefined;
1927
2009
  };
2010
+ convex: string | boolean | string[] | {
2011
+ config?: string | string[] | undefined;
2012
+ entry?: string | string[] | undefined;
2013
+ project?: string | string[] | undefined;
2014
+ };
1928
2015
  'create-typescript-app': string | boolean | string[] | {
1929
2016
  config?: string | string[] | undefined;
1930
2017
  entry?: string | string[] | undefined;
@@ -2005,6 +2092,11 @@ export declare const pluginsSchema: z.ZodObject<{
2005
2092
  entry?: string | string[] | undefined;
2006
2093
  project?: string | string[] | undefined;
2007
2094
  };
2095
+ hardhat: string | boolean | string[] | {
2096
+ config?: string | string[] | undefined;
2097
+ entry?: string | string[] | undefined;
2098
+ project?: string | string[] | undefined;
2099
+ };
2008
2100
  husky: string | boolean | string[] | {
2009
2101
  config?: string | string[] | undefined;
2010
2102
  entry?: string | string[] | undefined;
@@ -17,9 +17,12 @@ export const pluginsSchema = z.object({
17
17
  bun: pluginSchema,
18
18
  c8: pluginSchema,
19
19
  capacitor: pluginSchema,
20
+ changelogen: pluginSchema,
21
+ changelogithub: pluginSchema,
20
22
  changesets: pluginSchema,
21
23
  commitizen: pluginSchema,
22
24
  commitlint: pluginSchema,
25
+ convex: pluginSchema,
23
26
  'create-typescript-app': pluginSchema,
24
27
  cspell: pluginSchema,
25
28
  cucumber: pluginSchema,
@@ -36,6 +39,7 @@ export const pluginsSchema = z.object({
36
39
  'github-actions': pluginSchema,
37
40
  glob: pluginSchema,
38
41
  'graphql-codegen': pluginSchema,
42
+ hardhat: pluginSchema,
39
43
  husky: pluginSchema,
40
44
  'i18next-parser': pluginSchema,
41
45
  jest: pluginSchema,
@@ -1,2 +1,2 @@
1
- export type PluginName = 'angular' | 'astro' | 'ava' | 'babel' | 'bun' | 'c8' | 'capacitor' | 'changesets' | 'commitizen' | 'commitlint' | 'create-typescript-app' | 'cspell' | 'cucumber' | 'cypress' | 'dependency-cruiser' | 'docusaurus' | 'dotenv' | 'drizzle' | 'eleventy' | 'eslint' | 'expo' | 'gatsby' | 'github-action' | 'github-actions' | 'glob' | 'graphql-codegen' | 'husky' | 'i18next-parser' | 'jest' | 'karma' | 'ladle' | 'lefthook' | 'lint-staged' | 'linthtml' | 'lockfile-lint' | 'lost-pixel' | 'markdownlint' | 'metro' | 'mocha' | 'moonrepo' | 'msw' | 'nano-staged' | 'nest' | 'netlify' | 'next' | 'node' | 'nodemon' | 'npm-package-json-lint' | 'nuxt' | 'nx' | 'nyc' | 'oclif' | 'oxlint' | 'playwright' | 'playwright-ct' | 'playwright-test' | 'plop' | 'postcss' | 'preconstruct' | 'prettier' | 'prisma' | 'react-cosmos' | 'react-router' | 'relay' | 'release-it' | 'remark' | 'remix' | 'rollup' | 'rsbuild' | 'rspack' | 'semantic-release' | 'sentry' | 'simple-git-hooks' | 'size-limit' | 'sst' | 'starlight' | 'storybook' | 'stryker' | 'stylelint' | 'svelte' | 'svgo' | 'syncpack' | 'tailwind' | 'travis' | 'ts-node' | 'tsup' | 'tsx' | 'typedoc' | 'typescript' | 'unbuild' | 'unocss' | 'vercel-og' | 'vike' | 'vite' | 'vitest' | 'vue' | 'webdriver-io' | 'webpack' | 'wireit' | 'wrangler' | 'xo' | 'yarn' | 'yorkie';
2
- export declare const pluginNames: readonly ["angular", "astro", "ava", "babel", "bun", "c8", "capacitor", "changesets", "commitizen", "commitlint", "create-typescript-app", "cspell", "cucumber", "cypress", "dependency-cruiser", "docusaurus", "dotenv", "drizzle", "eleventy", "eslint", "expo", "gatsby", "github-action", "github-actions", "glob", "graphql-codegen", "husky", "i18next-parser", "jest", "karma", "ladle", "lefthook", "lint-staged", "linthtml", "lockfile-lint", "lost-pixel", "markdownlint", "metro", "mocha", "moonrepo", "msw", "nano-staged", "nest", "netlify", "next", "node", "nodemon", "npm-package-json-lint", "nuxt", "nx", "nyc", "oclif", "oxlint", "playwright", "playwright-ct", "playwright-test", "plop", "postcss", "preconstruct", "prettier", "prisma", "react-cosmos", "react-router", "relay", "release-it", "remark", "remix", "rollup", "rsbuild", "rspack", "semantic-release", "sentry", "simple-git-hooks", "size-limit", "sst", "starlight", "storybook", "stryker", "stylelint", "svelte", "svgo", "syncpack", "tailwind", "travis", "ts-node", "tsup", "tsx", "typedoc", "typescript", "unbuild", "unocss", "vercel-og", "vike", "vite", "vitest", "vue", "webdriver-io", "webpack", "wireit", "wrangler", "xo", "yarn", "yorkie"];
1
+ export type PluginName = 'angular' | 'astro' | 'ava' | 'babel' | 'bun' | 'c8' | 'capacitor' | 'changelogen' | 'changelogithub' | 'changesets' | 'commitizen' | 'commitlint' | 'convex' | 'create-typescript-app' | 'cspell' | 'cucumber' | 'cypress' | 'dependency-cruiser' | 'docusaurus' | 'dotenv' | 'drizzle' | 'eleventy' | 'eslint' | 'expo' | 'gatsby' | 'github-action' | 'github-actions' | 'glob' | 'graphql-codegen' | 'hardhat' | 'husky' | 'i18next-parser' | 'jest' | 'karma' | 'ladle' | 'lefthook' | 'lint-staged' | 'linthtml' | 'lockfile-lint' | 'lost-pixel' | 'markdownlint' | 'metro' | 'mocha' | 'moonrepo' | 'msw' | 'nano-staged' | 'nest' | 'netlify' | 'next' | 'node' | 'nodemon' | 'npm-package-json-lint' | 'nuxt' | 'nx' | 'nyc' | 'oclif' | 'oxlint' | 'playwright' | 'playwright-ct' | 'playwright-test' | 'plop' | 'postcss' | 'preconstruct' | 'prettier' | 'prisma' | 'react-cosmos' | 'react-router' | 'relay' | 'release-it' | 'remark' | 'remix' | 'rollup' | 'rsbuild' | 'rspack' | 'semantic-release' | 'sentry' | 'simple-git-hooks' | 'size-limit' | 'sst' | 'starlight' | 'storybook' | 'stryker' | 'stylelint' | 'svelte' | 'svgo' | 'syncpack' | 'tailwind' | 'travis' | 'ts-node' | 'tsup' | 'tsx' | 'typedoc' | 'typescript' | 'unbuild' | 'unocss' | 'vercel-og' | 'vike' | 'vite' | 'vitest' | 'vue' | 'webdriver-io' | 'webpack' | 'wireit' | 'wrangler' | 'xo' | 'yarn' | 'yorkie';
2
+ export declare const pluginNames: readonly ["angular", "astro", "ava", "babel", "bun", "c8", "capacitor", "changelogen", "changelogithub", "changesets", "commitizen", "commitlint", "convex", "create-typescript-app", "cspell", "cucumber", "cypress", "dependency-cruiser", "docusaurus", "dotenv", "drizzle", "eleventy", "eslint", "expo", "gatsby", "github-action", "github-actions", "glob", "graphql-codegen", "hardhat", "husky", "i18next-parser", "jest", "karma", "ladle", "lefthook", "lint-staged", "linthtml", "lockfile-lint", "lost-pixel", "markdownlint", "metro", "mocha", "moonrepo", "msw", "nano-staged", "nest", "netlify", "next", "node", "nodemon", "npm-package-json-lint", "nuxt", "nx", "nyc", "oclif", "oxlint", "playwright", "playwright-ct", "playwright-test", "plop", "postcss", "preconstruct", "prettier", "prisma", "react-cosmos", "react-router", "relay", "release-it", "remark", "remix", "rollup", "rsbuild", "rspack", "semantic-release", "sentry", "simple-git-hooks", "size-limit", "sst", "starlight", "storybook", "stryker", "stylelint", "svelte", "svgo", "syncpack", "tailwind", "travis", "ts-node", "tsup", "tsx", "typedoc", "typescript", "unbuild", "unocss", "vercel-og", "vike", "vite", "vitest", "vue", "webdriver-io", "webpack", "wireit", "wrangler", "xo", "yarn", "yorkie"];
@@ -6,9 +6,12 @@ export const pluginNames = [
6
6
  'bun',
7
7
  'c8',
8
8
  'capacitor',
9
+ 'changelogen',
10
+ 'changelogithub',
9
11
  'changesets',
10
12
  'commitizen',
11
13
  'commitlint',
14
+ 'convex',
12
15
  'create-typescript-app',
13
16
  'cspell',
14
17
  'cucumber',
@@ -25,6 +28,7 @@ export const pluginNames = [
25
28
  'github-actions',
26
29
  'glob',
27
30
  'graphql-codegen',
31
+ 'hardhat',
28
32
  'husky',
29
33
  'i18next-parser',
30
34
  'jest',
package/dist/util/math.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export function getStats(values) {
2
2
  if (values.length === 0)
3
3
  return { min: 0, max: 0, sum: 0, median: 0 };
4
- const sorted = values.toSorted((a, b) => a - b);
4
+ const sorted = values.sort((a, b) => a - b);
5
5
  const min = sorted[0];
6
6
  const max = sorted[sorted.length - 1];
7
7
  const sum = sorted.reduce((a, b) => a + b, 0);
@@ -22,3 +22,11 @@ export declare const toUnconfig: (moduleName: string, options?: {
22
22
  configFilesAllExtensions?: boolean;
23
23
  additionalExtensions?: string[];
24
24
  }) => string[];
25
+ export declare const toC12config: (moduleName: string, options?: {
26
+ rcPrefix?: string;
27
+ rcSuffix?: string;
28
+ configDir?: boolean;
29
+ configFiles?: boolean;
30
+ configFilesAllExtensions?: boolean;
31
+ additionalExtensions?: string[];
32
+ }) => string[];
@@ -30,3 +30,4 @@ export const toUnconfig = toConfigMap(['json', 'ts', 'mts', 'cts', 'js', 'mjs',
30
30
  rcSuffix: '',
31
31
  configFiles: false,
32
32
  });
33
+ export const toC12config = toConfigMap(['json', 'jsonc', 'json5', 'yaml', 'yml', 'js', 'ts', 'mjs', 'cjs', 'mts', 'cts', 'toml'], { configDir: true });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "5.56.0";
1
+ export declare const version = "5.57.1";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '5.56.0';
1
+ export const version = '5.57.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knip",
3
- "version": "5.56.0",
3
+ "version": "5.57.1",
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": {
package/schema.json CHANGED
@@ -327,6 +327,14 @@
327
327
  "title": "Capacitor plugin configuration (https://knip.dev/reference/plugins/capacitor)",
328
328
  "$ref": "#/definitions/plugin"
329
329
  },
330
+ "changelogen": {
331
+ "title": "changelogen plugin configuration (https://knip.dev/reference/plugins/changelogen)",
332
+ "$ref": "#/definitions/plugin"
333
+ },
334
+ "changelogithub": {
335
+ "title": "changelogithub plugin configuration (https://knip.dev/reference/plugins/changelogithub)",
336
+ "$ref": "#/definitions/plugin"
337
+ },
330
338
  "changesets": {
331
339
  "title": "Changesets plugin configuration (https://knip.dev/reference/plugins/changesets)",
332
340
  "$ref": "#/definitions/plugin"
@@ -339,6 +347,10 @@
339
347
  "title": "commitlint plugin configuration (https://knip.dev/reference/plugins/commitlint)",
340
348
  "$ref": "#/definitions/plugin"
341
349
  },
350
+ "convex": {
351
+ "title": "convex plugin configuration (https://knip.dev/reference/plugins/convex)",
352
+ "$ref": "#/definitions/plugin"
353
+ },
342
354
  "create-typescript-app": {
343
355
  "title": "create-typescript-app plugin configuration (https://knip.dev/reference/plugins/create-typescript-app)",
344
356
  "$ref": "#/definitions/plugin"
@@ -399,6 +411,10 @@
399
411
  "title": "graphql-codegen plugin configuration (https://knip.dev/reference/plugins/graphql-codegen)",
400
412
  "$ref": "#/definitions/plugin"
401
413
  },
414
+ "hardhat": {
415
+ "title": "hardhat plugin configuration (https://knip.dev/reference/plugins/hardhat)",
416
+ "$ref": "#/definitions/plugin"
417
+ },
402
418
  "husky": {
403
419
  "title": "husky plugin configuration (https://knip.dev/reference/plugins/husky)",
404
420
  "$ref": "#/definitions/plugin"
package/license DELETED
@@ -1,12 +0,0 @@
1
- ISC License (ISC)
2
-
3
- Copyright 2022-2024 Lars Kappert
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted,
6
- provided that the above copyright notice and this permission notice appear in all copies.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
9
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
11
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
12
- THIS SOFTWARE.