knip 5.49.0 → 5.50.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.
@@ -82,6 +82,7 @@ export declare class ConfigurationChief {
82
82
  changesets?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
83
83
  commitizen?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
84
84
  commitlint?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
85
+ "create-typescript-app"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
85
86
  cspell?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
86
87
  cucumber?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
87
88
  cypress?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
@@ -59,6 +59,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
59
59
  entry?: string | string[] | undefined;
60
60
  project?: string | string[] | undefined;
61
61
  } | undefined;
62
+ 'create-typescript-app'?: string | boolean | string[] | {
63
+ config?: string | string[] | undefined;
64
+ entry?: string | string[] | undefined;
65
+ project?: string | string[] | undefined;
66
+ } | undefined;
62
67
  cspell?: string | boolean | string[] | {
63
68
  config?: string | string[] | undefined;
64
69
  entry?: string | string[] | undefined;
@@ -549,6 +554,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
549
554
  entry?: string | string[] | undefined;
550
555
  project?: string | string[] | undefined;
551
556
  } | undefined;
557
+ 'create-typescript-app'?: string | boolean | string[] | {
558
+ config?: string | string[] | undefined;
559
+ entry?: string | string[] | undefined;
560
+ project?: string | string[] | undefined;
561
+ } | undefined;
552
562
  cspell?: string | boolean | string[] | {
553
563
  config?: string | string[] | undefined;
554
564
  entry?: string | string[] | undefined;
@@ -0,0 +1,8 @@
1
+ import type { IsPluginEnabled } from '../../types/config.js';
2
+ declare const _default: {
3
+ enablers: string[];
4
+ entry: string[];
5
+ isEnabled: IsPluginEnabled;
6
+ title: string;
7
+ };
8
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { hasDependency } from '../../util/plugin.js';
2
+ const title = 'create-typescript-app';
3
+ const enablers = ['create-typescript-app'];
4
+ const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
5
+ const entry = ['create-typescript-app.config.{js,cjs,mjs,ts}'];
6
+ export default {
7
+ enablers,
8
+ entry,
9
+ isEnabled,
10
+ title,
11
+ };
@@ -70,6 +70,12 @@ export declare const Plugins: {
70
70
  config: string[];
71
71
  resolveConfig: import("../types/config.js").ResolveConfig<import("./commitlint/types.js").CommitLintConfig>;
72
72
  };
73
+ 'create-typescript-app': {
74
+ enablers: string[];
75
+ entry: string[];
76
+ isEnabled: import("../types/config.js").IsPluginEnabled;
77
+ title: string;
78
+ };
73
79
  cspell: {
74
80
  title: string;
75
81
  enablers: string[];
@@ -7,6 +7,7 @@ import { default as capacitor } from './capacitor/index.js';
7
7
  import { default as changesets } from './changesets/index.js';
8
8
  import { default as commitizen } from './commitizen/index.js';
9
9
  import { default as commitlint } from './commitlint/index.js';
10
+ import { default as createTypescriptApp } from './create-typescript-app/index.js';
10
11
  import { default as cspell } from './cspell/index.js';
11
12
  import { default as cucumber } from './cucumber/index.js';
12
13
  import { default as cypress } from './cypress/index.js';
@@ -103,6 +104,7 @@ export const Plugins = {
103
104
  changesets,
104
105
  commitizen,
105
106
  commitlint,
107
+ 'create-typescript-app': createTypescriptApp,
106
108
  cspell,
107
109
  cucumber,
108
110
  cypress,
@@ -149,6 +149,19 @@ export declare const knipConfigurationSchema: z.ZodObject<z.objectUtil.extendSha
149
149
  entry?: string | string[] | undefined;
150
150
  project?: string | string[] | undefined;
151
151
  }>]>>;
152
+ 'create-typescript-app': z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
153
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
154
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
155
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ config?: string | string[] | undefined;
158
+ entry?: string | string[] | undefined;
159
+ project?: string | string[] | undefined;
160
+ }, {
161
+ config?: string | string[] | undefined;
162
+ entry?: string | string[] | undefined;
163
+ project?: string | string[] | undefined;
164
+ }>]>>;
152
165
  cspell: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
153
166
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
154
167
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -1320,6 +1333,11 @@ export declare const knipConfigurationSchema: z.ZodObject<z.objectUtil.extendSha
1320
1333
  entry?: string | string[] | undefined;
1321
1334
  project?: string | string[] | undefined;
1322
1335
  } | undefined;
1336
+ 'create-typescript-app'?: string | boolean | string[] | {
1337
+ config?: string | string[] | undefined;
1338
+ entry?: string | string[] | undefined;
1339
+ project?: string | string[] | undefined;
1340
+ } | undefined;
1323
1341
  cspell?: string | boolean | string[] | {
1324
1342
  config?: string | string[] | undefined;
1325
1343
  entry?: string | string[] | undefined;
@@ -1805,6 +1823,11 @@ export declare const knipConfigurationSchema: z.ZodObject<z.objectUtil.extendSha
1805
1823
  entry?: string | string[] | undefined;
1806
1824
  project?: string | string[] | undefined;
1807
1825
  } | undefined;
1826
+ 'create-typescript-app'?: string | boolean | string[] | {
1827
+ config?: string | string[] | undefined;
1828
+ entry?: string | string[] | undefined;
1829
+ project?: string | string[] | undefined;
1830
+ } | undefined;
1808
1831
  cspell?: string | boolean | string[] | {
1809
1832
  config?: string | string[] | undefined;
1810
1833
  entry?: string | string[] | undefined;
@@ -2356,6 +2379,19 @@ export declare const knipConfigurationSchema: z.ZodObject<z.objectUtil.extendSha
2356
2379
  entry?: string | string[] | undefined;
2357
2380
  project?: string | string[] | undefined;
2358
2381
  }>]>>;
2382
+ 'create-typescript-app': z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
2383
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2384
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2385
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2386
+ }, "strip", z.ZodTypeAny, {
2387
+ config?: string | string[] | undefined;
2388
+ entry?: string | string[] | undefined;
2389
+ project?: string | string[] | undefined;
2390
+ }, {
2391
+ config?: string | string[] | undefined;
2392
+ entry?: string | string[] | undefined;
2393
+ project?: string | string[] | undefined;
2394
+ }>]>>;
2359
2395
  cspell: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
2360
2396
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2361
2397
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -3530,6 +3566,11 @@ export declare const knipConfigurationSchema: z.ZodObject<z.objectUtil.extendSha
3530
3566
  entry?: string | string[] | undefined;
3531
3567
  project?: string | string[] | undefined;
3532
3568
  } | undefined;
3569
+ 'create-typescript-app'?: string | boolean | string[] | {
3570
+ config?: string | string[] | undefined;
3571
+ entry?: string | string[] | undefined;
3572
+ project?: string | string[] | undefined;
3573
+ } | undefined;
3533
3574
  cspell?: string | boolean | string[] | {
3534
3575
  config?: string | string[] | undefined;
3535
3576
  entry?: string | string[] | undefined;
@@ -4022,6 +4063,11 @@ export declare const knipConfigurationSchema: z.ZodObject<z.objectUtil.extendSha
4022
4063
  entry?: string | string[] | undefined;
4023
4064
  project?: string | string[] | undefined;
4024
4065
  } | undefined;
4066
+ 'create-typescript-app'?: string | boolean | string[] | {
4067
+ config?: string | string[] | undefined;
4068
+ entry?: string | string[] | undefined;
4069
+ project?: string | string[] | undefined;
4070
+ } | undefined;
4025
4071
  cspell?: string | boolean | string[] | {
4026
4072
  config?: string | string[] | undefined;
4027
4073
  entry?: string | string[] | undefined;
@@ -4511,6 +4557,11 @@ export declare const knipConfigurationSchema: z.ZodObject<z.objectUtil.extendSha
4511
4557
  entry?: string | string[] | undefined;
4512
4558
  project?: string | string[] | undefined;
4513
4559
  } | undefined;
4560
+ 'create-typescript-app'?: string | boolean | string[] | {
4561
+ config?: string | string[] | undefined;
4562
+ entry?: string | string[] | undefined;
4563
+ project?: string | string[] | undefined;
4564
+ } | undefined;
4514
4565
  cspell?: string | boolean | string[] | {
4515
4566
  config?: string | string[] | undefined;
4516
4567
  entry?: string | string[] | undefined;
@@ -5003,6 +5054,11 @@ export declare const knipConfigurationSchema: z.ZodObject<z.objectUtil.extendSha
5003
5054
  entry?: string | string[] | undefined;
5004
5055
  project?: string | string[] | undefined;
5005
5056
  } | undefined;
5057
+ 'create-typescript-app'?: string | boolean | string[] | {
5058
+ config?: string | string[] | undefined;
5059
+ entry?: string | string[] | undefined;
5060
+ project?: string | string[] | undefined;
5061
+ } | undefined;
5006
5062
  cspell?: string | boolean | string[] | {
5007
5063
  config?: string | string[] | undefined;
5008
5064
  entry?: string | string[] | undefined;
@@ -131,6 +131,19 @@ export declare const pluginsSchema: z.ZodObject<{
131
131
  entry?: string | string[] | undefined;
132
132
  project?: string | string[] | undefined;
133
133
  }>]>;
134
+ 'create-typescript-app': z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
135
+ config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
136
+ entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
137
+ project: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ config?: string | string[] | undefined;
140
+ entry?: string | string[] | undefined;
141
+ project?: string | string[] | undefined;
142
+ }, {
143
+ config?: string | string[] | undefined;
144
+ entry?: string | string[] | undefined;
145
+ project?: string | string[] | undefined;
146
+ }>]>;
134
147
  cspell: z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
135
148
  config: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
136
149
  entry: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -1300,6 +1313,11 @@ export declare const pluginsSchema: z.ZodObject<{
1300
1313
  entry?: string | string[] | undefined;
1301
1314
  project?: string | string[] | undefined;
1302
1315
  };
1316
+ 'create-typescript-app': string | boolean | string[] | {
1317
+ config?: string | string[] | undefined;
1318
+ entry?: string | string[] | undefined;
1319
+ project?: string | string[] | undefined;
1320
+ };
1303
1321
  cspell: string | boolean | string[] | {
1304
1322
  config?: string | string[] | undefined;
1305
1323
  entry?: string | string[] | undefined;
@@ -1776,6 +1794,11 @@ export declare const pluginsSchema: z.ZodObject<{
1776
1794
  entry?: string | string[] | undefined;
1777
1795
  project?: string | string[] | undefined;
1778
1796
  };
1797
+ 'create-typescript-app': string | boolean | string[] | {
1798
+ config?: string | string[] | undefined;
1799
+ entry?: string | string[] | undefined;
1800
+ project?: string | string[] | undefined;
1801
+ };
1779
1802
  cspell: string | boolean | string[] | {
1780
1803
  config?: string | string[] | undefined;
1781
1804
  entry?: string | string[] | undefined;
@@ -19,6 +19,7 @@ export const pluginsSchema = z.object({
19
19
  changesets: pluginSchema,
20
20
  commitizen: pluginSchema,
21
21
  commitlint: pluginSchema,
22
+ 'create-typescript-app': pluginSchema,
22
23
  cspell: pluginSchema,
23
24
  cucumber: pluginSchema,
24
25
  cypress: pluginSchema,
@@ -1,2 +1,2 @@
1
- export type PluginName = 'angular' | 'astro' | 'ava' | 'babel' | 'c8' | 'capacitor' | 'changesets' | 'commitizen' | 'commitlint' | 'cspell' | 'cucumber' | 'cypress' | 'dependency-cruiser' | 'dotenv' | 'drizzle' | 'eleventy' | 'eslint' | 'expo' | 'gatsby' | 'github-action' | 'github-actions' | 'glob' | 'graphql-codegen' | 'husky' | 'jest' | 'karma' | 'ladle' | 'lefthook' | 'lint-staged' | 'linthtml' | 'lockfile-lint' | 'lost-pixel' | 'markdownlint' | 'metro' | 'mocha' | 'moonrepo' | 'msw' | 'nest' | 'netlify' | 'next' | 'node' | 'nodemon' | 'npm-package-json-lint' | 'nuxt' | 'nx' | 'nyc' | 'oclif' | 'playwright' | 'playwright-ct' | 'playwright-test' | 'plop' | 'postcss' | 'preconstruct' | 'prettier' | 'react-cosmos' | 'react-router' | 'release-it' | 'remark' | 'remix' | 'rollup' | 'rsbuild' | 'rspack' | 'semantic-release' | 'sentry' | 'simple-git-hooks' | 'size-limit' | 'sst' | 'starlight' | 'storybook' | 'stryker' | 'stylelint' | 'svelte' | 'syncpack' | 'tailwind' | 'tanstack-router' | '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", "c8", "capacitor", "changesets", "commitizen", "commitlint", "cspell", "cucumber", "cypress", "dependency-cruiser", "dotenv", "drizzle", "eleventy", "eslint", "expo", "gatsby", "github-action", "github-actions", "glob", "graphql-codegen", "husky", "jest", "karma", "ladle", "lefthook", "lint-staged", "linthtml", "lockfile-lint", "lost-pixel", "markdownlint", "metro", "mocha", "moonrepo", "msw", "nest", "netlify", "next", "node", "nodemon", "npm-package-json-lint", "nuxt", "nx", "nyc", "oclif", "playwright", "playwright-ct", "playwright-test", "plop", "postcss", "preconstruct", "prettier", "react-cosmos", "react-router", "release-it", "remark", "remix", "rollup", "rsbuild", "rspack", "semantic-release", "sentry", "simple-git-hooks", "size-limit", "sst", "starlight", "storybook", "stryker", "stylelint", "svelte", "syncpack", "tailwind", "tanstack-router", "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' | 'c8' | 'capacitor' | 'changesets' | 'commitizen' | 'commitlint' | 'create-typescript-app' | 'cspell' | 'cucumber' | 'cypress' | 'dependency-cruiser' | 'dotenv' | 'drizzle' | 'eleventy' | 'eslint' | 'expo' | 'gatsby' | 'github-action' | 'github-actions' | 'glob' | 'graphql-codegen' | 'husky' | 'jest' | 'karma' | 'ladle' | 'lefthook' | 'lint-staged' | 'linthtml' | 'lockfile-lint' | 'lost-pixel' | 'markdownlint' | 'metro' | 'mocha' | 'moonrepo' | 'msw' | 'nest' | 'netlify' | 'next' | 'node' | 'nodemon' | 'npm-package-json-lint' | 'nuxt' | 'nx' | 'nyc' | 'oclif' | 'playwright' | 'playwright-ct' | 'playwright-test' | 'plop' | 'postcss' | 'preconstruct' | 'prettier' | 'react-cosmos' | 'react-router' | 'release-it' | 'remark' | 'remix' | 'rollup' | 'rsbuild' | 'rspack' | 'semantic-release' | 'sentry' | 'simple-git-hooks' | 'size-limit' | 'sst' | 'starlight' | 'storybook' | 'stryker' | 'stylelint' | 'svelte' | 'syncpack' | 'tailwind' | 'tanstack-router' | '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", "c8", "capacitor", "changesets", "commitizen", "commitlint", "create-typescript-app", "cspell", "cucumber", "cypress", "dependency-cruiser", "dotenv", "drizzle", "eleventy", "eslint", "expo", "gatsby", "github-action", "github-actions", "glob", "graphql-codegen", "husky", "jest", "karma", "ladle", "lefthook", "lint-staged", "linthtml", "lockfile-lint", "lost-pixel", "markdownlint", "metro", "mocha", "moonrepo", "msw", "nest", "netlify", "next", "node", "nodemon", "npm-package-json-lint", "nuxt", "nx", "nyc", "oclif", "playwright", "playwright-ct", "playwright-test", "plop", "postcss", "preconstruct", "prettier", "react-cosmos", "react-router", "release-it", "remark", "remix", "rollup", "rsbuild", "rspack", "semantic-release", "sentry", "simple-git-hooks", "size-limit", "sst", "starlight", "storybook", "stryker", "stylelint", "svelte", "syncpack", "tailwind", "tanstack-router", "travis", "ts-node", "tsup", "tsx", "typedoc", "typescript", "unbuild", "unocss", "vercel-og", "vike", "vite", "vitest", "vue", "webdriver-io", "webpack", "wireit", "wrangler", "xo", "yarn", "yorkie"];
@@ -8,6 +8,7 @@ export const pluginNames = [
8
8
  'changesets',
9
9
  'commitizen',
10
10
  'commitlint',
11
+ 'create-typescript-app',
11
12
  'cspell',
12
13
  'cucumber',
13
14
  'cypress',
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "5.49.0";
1
+ export declare const version = "5.50.1";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '5.49.0';
1
+ export const version = '5.50.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knip",
3
- "version": "5.49.0",
3
+ "version": "5.50.1",
4
4
  "description": "Find and fix unused files, dependencies and exports in your TypeScript and JavaScript projects",
5
5
  "homepage": "https://knip.dev",
6
6
  "repository": {
package/schema.json CHANGED
@@ -331,6 +331,10 @@
331
331
  "title": "commitlint plugin configuration (https://knip.dev/reference/plugins/commitlint)",
332
332
  "$ref": "#/definitions/plugin"
333
333
  },
334
+ "create-typescript-app": {
335
+ "title": "create-typescript-app plugin configuration (https://knip.dev/reference/plugins/create-typescript-app)",
336
+ "$ref": "#/definitions/plugin"
337
+ },
334
338
  "cspell": {
335
339
  "title": "cspell plugin configuration (https://knip.dev/reference/plugins/cspell)",
336
340
  "$ref": "#/definitions/plugin"