knip 5.76.3 → 5.77.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/cli.js +1 -1
- package/dist/compilers/index.d.ts +10 -0
- package/dist/graph/build.js +15 -12
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/index.js +2 -0
- package/dist/plugins/vitepress/index.d.ts +3 -0
- package/dist/plugins/vitepress/index.js +12 -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/util/create-options.d.ts +10 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +22 -24
- package/schema.json +4 -0
|
@@ -623,6 +623,11 @@ export declare class ConfigurationChief {
|
|
|
623
623
|
entry?: string | string[] | undefined;
|
|
624
624
|
project?: string | string[] | undefined;
|
|
625
625
|
} | undefined;
|
|
626
|
+
vitepress?: string | boolean | string[] | {
|
|
627
|
+
config?: string | string[] | undefined;
|
|
628
|
+
entry?: string | string[] | undefined;
|
|
629
|
+
project?: string | string[] | undefined;
|
|
630
|
+
} | undefined;
|
|
626
631
|
vitest?: string | boolean | string[] | {
|
|
627
632
|
config?: string | string[] | undefined;
|
|
628
633
|
entry?: string | string[] | undefined;
|
|
@@ -800,6 +805,7 @@ export declare class ConfigurationChief {
|
|
|
800
805
|
"vercel-og"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
801
806
|
vike?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
802
807
|
vite?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
808
|
+
vitepress?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
803
809
|
vitest?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
804
810
|
vue?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
805
811
|
"webdriver-io"?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
package/dist/cli.js
CHANGED
|
@@ -21,7 +21,6 @@ catch (error) {
|
|
|
21
21
|
}
|
|
22
22
|
const run = async () => {
|
|
23
23
|
try {
|
|
24
|
-
const options = await createOptions({ args });
|
|
25
24
|
if (args.help) {
|
|
26
25
|
console.log(helpText);
|
|
27
26
|
process.exit(0);
|
|
@@ -30,6 +29,7 @@ const run = async () => {
|
|
|
30
29
|
console.log(version);
|
|
31
30
|
process.exit(0);
|
|
32
31
|
}
|
|
32
|
+
const options = await createOptions({ args });
|
|
33
33
|
const { issues, counters, tagHints, configurationHints, includedWorkspaceDirs, enabledPlugins } = await main(options);
|
|
34
34
|
if (options.isWatch || options.isTrace)
|
|
35
35
|
return;
|
|
@@ -574,6 +574,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
574
574
|
entry?: string | string[] | undefined;
|
|
575
575
|
project?: string | string[] | undefined;
|
|
576
576
|
} | undefined;
|
|
577
|
+
vitepress?: string | boolean | string[] | {
|
|
578
|
+
config?: string | string[] | undefined;
|
|
579
|
+
entry?: string | string[] | undefined;
|
|
580
|
+
project?: string | string[] | undefined;
|
|
581
|
+
} | undefined;
|
|
577
582
|
vitest?: string | boolean | string[] | {
|
|
578
583
|
config?: string | string[] | undefined;
|
|
579
584
|
entry?: string | string[] | undefined;
|
|
@@ -1190,6 +1195,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
1190
1195
|
entry?: string | string[] | undefined;
|
|
1191
1196
|
project?: string | string[] | undefined;
|
|
1192
1197
|
} | undefined;
|
|
1198
|
+
vitepress?: string | boolean | string[] | {
|
|
1199
|
+
config?: string | string[] | undefined;
|
|
1200
|
+
entry?: string | string[] | undefined;
|
|
1201
|
+
project?: string | string[] | undefined;
|
|
1202
|
+
} | undefined;
|
|
1193
1203
|
vitest?: string | boolean | string[] | {
|
|
1194
1204
|
config?: string | string[] | undefined;
|
|
1195
1205
|
entry?: string | string[] | undefined;
|
package/dist/graph/build.js
CHANGED
|
@@ -176,18 +176,15 @@ export async function build({ chief, collector, counselor, deputy, factory, isGi
|
|
|
176
176
|
negatedEntryPatterns.push(negate(pattern));
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
principal.addEntryPaths(entryPaths);
|
|
190
|
-
}
|
|
179
|
+
const userEntryPatterns = options.isProduction
|
|
180
|
+
? worker.getProductionEntryFilePatterns(negatedEntryPatterns)
|
|
181
|
+
: worker.getEntryFilePatterns();
|
|
182
|
+
const userEntryPaths = await _glob({
|
|
183
|
+
...sharedGlobOptions,
|
|
184
|
+
patterns: userEntryPatterns,
|
|
185
|
+
gitignore: false,
|
|
186
|
+
label: 'entry paths',
|
|
187
|
+
});
|
|
191
188
|
for (const group of groups) {
|
|
192
189
|
{
|
|
193
190
|
const patterns = worker.getPluginEntryFilePatterns([
|
|
@@ -209,6 +206,12 @@ export async function build({ chief, collector, counselor, deputy, factory, isGi
|
|
|
209
206
|
principal.addEntryPaths(pluginWorkspaceEntryPaths, { skipExportsAnalysis: true });
|
|
210
207
|
}
|
|
211
208
|
}
|
|
209
|
+
if (!options.isProduction) {
|
|
210
|
+
const hints = worker.getConfigurationHints('entry', userEntryPatterns, userEntryPaths, principal.entryPaths);
|
|
211
|
+
for (const hint of hints)
|
|
212
|
+
collector.addConfigurationHint(hint);
|
|
213
|
+
}
|
|
214
|
+
principal.addEntryPaths(userEntryPaths);
|
|
212
215
|
if (options.isUseTscFiles) {
|
|
213
216
|
const isIgnoredWorkspace = chief.createIgnoredWorkspaceMatcher(name, dir);
|
|
214
217
|
debugLogArray(name, 'Using tsconfig files as project files', tscSourcePaths);
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -113,6 +113,7 @@ export declare const Plugins: {
|
|
|
113
113
|
'vercel-og': import("../types/config.js").Plugin;
|
|
114
114
|
vike: import("../types/config.js").Plugin;
|
|
115
115
|
vite: import("../types/config.js").Plugin;
|
|
116
|
+
vitepress: import("../types/config.js").Plugin;
|
|
116
117
|
vitest: import("../types/config.js").Plugin;
|
|
117
118
|
vue: import("../types/config.js").Plugin;
|
|
118
119
|
'webdriver-io': import("../types/config.js").Plugin;
|
package/dist/plugins/index.js
CHANGED
|
@@ -112,6 +112,7 @@ import { default as unocss } from './unocss/index.js';
|
|
|
112
112
|
import { default as vercelOg } from './vercel-og/index.js';
|
|
113
113
|
import { default as vike } from './vike/index.js';
|
|
114
114
|
import { default as vite } from './vite/index.js';
|
|
115
|
+
import { default as vitepress } from './vitepress/index.js';
|
|
115
116
|
import { default as vitest } from './vitest/index.js';
|
|
116
117
|
import { default as vue } from './vue/index.js';
|
|
117
118
|
import { default as webdriverIo } from './webdriver-io/index.js';
|
|
@@ -236,6 +237,7 @@ export const Plugins = {
|
|
|
236
237
|
'vercel-og': vercelOg,
|
|
237
238
|
vike,
|
|
238
239
|
vite,
|
|
240
|
+
vitepress,
|
|
239
241
|
vitest,
|
|
240
242
|
vue,
|
|
241
243
|
'webdriver-io': webdriverIo,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
2
|
+
const title = 'vitepress';
|
|
3
|
+
const enablers = ['vitepress'];
|
|
4
|
+
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
5
|
+
const entry = ['.vitepress/config.{js,ts,mjs,mts}', '.vitepress/theme/index.{js,ts,mjs,mts}'];
|
|
6
|
+
const plugin = {
|
|
7
|
+
title,
|
|
8
|
+
enablers,
|
|
9
|
+
isEnabled,
|
|
10
|
+
entry,
|
|
11
|
+
};
|
|
12
|
+
export default plugin;
|
|
@@ -572,6 +572,11 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
|
|
|
572
572
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
573
573
|
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
574
574
|
}, z.core.$strip>]>>;
|
|
575
|
+
vitepress: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
576
|
+
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
577
|
+
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
578
|
+
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
579
|
+
}, z.core.$strip>]>>;
|
|
575
580
|
vitest: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
576
581
|
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
577
582
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
@@ -1188,6 +1193,11 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
|
|
|
1188
1193
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1189
1194
|
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1190
1195
|
}, z.core.$strip>]>>;
|
|
1196
|
+
vitepress: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
1197
|
+
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1198
|
+
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1199
|
+
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1200
|
+
}, z.core.$strip>]>>;
|
|
1191
1201
|
vitest: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
1192
1202
|
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1193
1203
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
package/dist/schema/plugins.d.ts
CHANGED
|
@@ -576,6 +576,11 @@ export declare const pluginsSchema: z.ZodMiniObject<{
|
|
|
576
576
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
577
577
|
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
578
578
|
}, z.core.$strip>]>;
|
|
579
|
+
vitepress: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
580
|
+
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
581
|
+
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
582
|
+
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
583
|
+
}, z.core.$strip>]>;
|
|
579
584
|
vitest: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
580
585
|
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
581
586
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
package/dist/schema/plugins.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type PluginName = 'angular' | 'astro' | 'astro-db' | 'ava' | 'babel' | 'biome' | 'bumpp' | 'bun' | 'c8' | 'capacitor' | 'changelogen' | 'changelogithub' | 'changesets' | 'commitizen' | 'commitlint' | 'convex' | 'create-typescript-app' | 'cspell' | 'cucumber' | 'cypress' | 'danger' | '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' | 'mdx' | 'mdxlint' | 'metro' | 'mocha' | 'moonrepo' | 'msw' | 'nano-staged' | 'nest' | 'netlify' | 'next' | 'next-intl' | 'next-mdx' | 'node' | 'node-modules-inspector' | 'nodemon' | 'npm-package-json-lint' | 'nuxt' | 'nx' | 'nyc' | 'oclif' | 'oxlint' | 'playwright' | 'playwright-ct' | 'playwright-test' | 'plop' | 'pnpm' | 'postcss' | 'preconstruct' | 'prettier' | 'prisma' | 'react-cosmos' | 'react-router' | 'relay' | 'release-it' | 'remark' | 'remix' | 'rollup' | 'rsbuild' | 'rslib' | 'rspack' | 'rstest' | 'semantic-release' | 'sentry' | 'simple-git-hooks' | 'size-limit' | 'sst' | 'starlight' | 'storybook' | 'stryker' | 'stylelint' | 'svelte' | 'svgo' | 'svgr' | 'swc' | 'syncpack' | 'tailwind' | 'taskfile' | 'travis' | 'ts-node' | 'tsdown' | '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", "astro-db", "ava", "babel", "biome", "bumpp", "bun", "c8", "capacitor", "changelogen", "changelogithub", "changesets", "commitizen", "commitlint", "convex", "create-typescript-app", "cspell", "cucumber", "cypress", "danger", "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", "mdx", "mdxlint", "metro", "mocha", "moonrepo", "msw", "nano-staged", "nest", "netlify", "next", "next-intl", "next-mdx", "node", "node-modules-inspector", "nodemon", "npm-package-json-lint", "nuxt", "nx", "nyc", "oclif", "oxlint", "playwright", "playwright-ct", "playwright-test", "plop", "pnpm", "postcss", "preconstruct", "prettier", "prisma", "react-cosmos", "react-router", "relay", "release-it", "remark", "remix", "rollup", "rsbuild", "rslib", "rspack", "rstest", "semantic-release", "sentry", "simple-git-hooks", "size-limit", "sst", "starlight", "storybook", "stryker", "stylelint", "svelte", "svgo", "svgr", "swc", "syncpack", "tailwind", "taskfile", "travis", "ts-node", "tsdown", "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' | 'astro-db' | 'ava' | 'babel' | 'biome' | 'bumpp' | 'bun' | 'c8' | 'capacitor' | 'changelogen' | 'changelogithub' | 'changesets' | 'commitizen' | 'commitlint' | 'convex' | 'create-typescript-app' | 'cspell' | 'cucumber' | 'cypress' | 'danger' | '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' | 'mdx' | 'mdxlint' | 'metro' | 'mocha' | 'moonrepo' | 'msw' | 'nano-staged' | 'nest' | 'netlify' | 'next' | 'next-intl' | 'next-mdx' | 'node' | 'node-modules-inspector' | 'nodemon' | 'npm-package-json-lint' | 'nuxt' | 'nx' | 'nyc' | 'oclif' | 'oxlint' | 'playwright' | 'playwright-ct' | 'playwright-test' | 'plop' | 'pnpm' | 'postcss' | 'preconstruct' | 'prettier' | 'prisma' | 'react-cosmos' | 'react-router' | 'relay' | 'release-it' | 'remark' | 'remix' | 'rollup' | 'rsbuild' | 'rslib' | 'rspack' | 'rstest' | 'semantic-release' | 'sentry' | 'simple-git-hooks' | 'size-limit' | 'sst' | 'starlight' | 'storybook' | 'stryker' | 'stylelint' | 'svelte' | 'svgo' | 'svgr' | 'swc' | 'syncpack' | 'tailwind' | 'taskfile' | 'travis' | 'ts-node' | 'tsdown' | 'tsup' | 'tsx' | 'typedoc' | 'typescript' | 'unbuild' | 'unocss' | 'vercel-og' | 'vike' | 'vite' | 'vitepress' | 'vitest' | 'vue' | 'webdriver-io' | 'webpack' | 'wireit' | 'wrangler' | 'xo' | 'yarn' | 'yorkie';
|
|
2
|
+
export declare const pluginNames: readonly ["angular", "astro", "astro-db", "ava", "babel", "biome", "bumpp", "bun", "c8", "capacitor", "changelogen", "changelogithub", "changesets", "commitizen", "commitlint", "convex", "create-typescript-app", "cspell", "cucumber", "cypress", "danger", "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", "mdx", "mdxlint", "metro", "mocha", "moonrepo", "msw", "nano-staged", "nest", "netlify", "next", "next-intl", "next-mdx", "node", "node-modules-inspector", "nodemon", "npm-package-json-lint", "nuxt", "nx", "nyc", "oclif", "oxlint", "playwright", "playwright-ct", "playwright-test", "plop", "pnpm", "postcss", "preconstruct", "prettier", "prisma", "react-cosmos", "react-router", "relay", "release-it", "remark", "remix", "rollup", "rsbuild", "rslib", "rspack", "rstest", "semantic-release", "sentry", "simple-git-hooks", "size-limit", "sst", "starlight", "storybook", "stryker", "stylelint", "svelte", "svgo", "svgr", "swc", "syncpack", "tailwind", "taskfile", "travis", "ts-node", "tsdown", "tsup", "tsx", "typedoc", "typescript", "unbuild", "unocss", "vercel-og", "vike", "vite", "vitepress", "vitest", "vue", "webdriver-io", "webpack", "wireit", "wrangler", "xo", "yarn", "yorkie"];
|
|
@@ -615,6 +615,11 @@ export declare const createOptions: (options: CreateOptions) => Promise<{
|
|
|
615
615
|
entry?: string | string[] | undefined;
|
|
616
616
|
project?: string | string[] | undefined;
|
|
617
617
|
} | undefined;
|
|
618
|
+
vitepress?: string | boolean | string[] | {
|
|
619
|
+
config?: string | string[] | undefined;
|
|
620
|
+
entry?: string | string[] | undefined;
|
|
621
|
+
project?: string | string[] | undefined;
|
|
622
|
+
} | undefined;
|
|
618
623
|
vitest?: string | boolean | string[] | {
|
|
619
624
|
config?: string | string[] | undefined;
|
|
620
625
|
entry?: string | string[] | undefined;
|
|
@@ -1231,6 +1236,11 @@ export declare const createOptions: (options: CreateOptions) => Promise<{
|
|
|
1231
1236
|
entry?: string | string[] | undefined;
|
|
1232
1237
|
project?: string | string[] | undefined;
|
|
1233
1238
|
} | undefined;
|
|
1239
|
+
vitepress?: string | boolean | string[] | {
|
|
1240
|
+
config?: string | string[] | undefined;
|
|
1241
|
+
entry?: string | string[] | undefined;
|
|
1242
|
+
project?: string | string[] | undefined;
|
|
1243
|
+
} | undefined;
|
|
1234
1244
|
vitest?: string | boolean | string[] | {
|
|
1235
1245
|
config?: string | string[] | undefined;
|
|
1236
1246
|
entry?: string | string[] | undefined;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "5.
|
|
1
|
+
export declare const version = "5.77.0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '5.
|
|
1
|
+
export const version = '5.77.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "knip",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.77.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": {
|
|
@@ -40,25 +40,6 @@
|
|
|
40
40
|
},
|
|
41
41
|
"type": "module",
|
|
42
42
|
"types": "./dist/types.d.ts",
|
|
43
|
-
"scripts": {
|
|
44
|
-
"knip": "node ./dist/cli.js --directory ../..",
|
|
45
|
-
"knip:production": "node ./dist/cli.js --directory ../.. --production --strict",
|
|
46
|
-
"lint": "biome lint",
|
|
47
|
-
"format": "biome format --write",
|
|
48
|
-
"test": "node scripts/run-test.ts",
|
|
49
|
-
"test:node": "tsx --test test/*.test.ts test/**/*.test.ts",
|
|
50
|
-
"test:bun": "bun test test/*.test.ts test/**/*.test.ts",
|
|
51
|
-
"test:smoke": "glob-bin -c \"tsx --test\" \"test/*.test.ts\" && glob-bin -c \"tsx --test\" \"test/{plugins,util}/*.test.ts\"",
|
|
52
|
-
"test:bun:smoke": "bun test test/*.test.ts test/{plugins,util}/*.test.ts",
|
|
53
|
-
"watch": "npm link && tsc --watch",
|
|
54
|
-
"prebuild": "pnpm run generate-plugin-defs && node rmdir.js dist",
|
|
55
|
-
"build": "tsc",
|
|
56
|
-
"qa": "pnpm lint && pnpm build && pnpm knip && pnpm knip:production && pnpm run test",
|
|
57
|
-
"release": "release-it",
|
|
58
|
-
"create-plugin": "tsx ./scripts/create-new-plugin.ts",
|
|
59
|
-
"postcreate-plugin": "pnpm run build && biome format --write schema.json schema-jsonc.json src/schema/plugins.ts",
|
|
60
|
-
"generate-plugin-defs": "node ./scripts/generate-plugin-defs.js && biome check --write src/plugins/index.ts src/types/PluginNames.ts src/schema/plugins.ts"
|
|
61
|
-
},
|
|
62
43
|
"files": [
|
|
63
44
|
"dist",
|
|
64
45
|
"vendor",
|
|
@@ -85,7 +66,6 @@
|
|
|
85
66
|
},
|
|
86
67
|
"devDependencies": {
|
|
87
68
|
"@jest/types": "^29.6.3",
|
|
88
|
-
"@release-it/bumper": "^7.0.5",
|
|
89
69
|
"@types/bun": "^1.3.3",
|
|
90
70
|
"@types/js-yaml": "^4.0.9",
|
|
91
71
|
"@types/minimist": "^1.2.5",
|
|
@@ -94,7 +74,6 @@
|
|
|
94
74
|
"@wdio/types": "^9.20.0",
|
|
95
75
|
"codeclimate-types": "^0.3.1",
|
|
96
76
|
"glob-bin": "^1.0.0",
|
|
97
|
-
"release-it": "^19.1.0",
|
|
98
77
|
"tsx": "^4.20.3",
|
|
99
78
|
"typescript": "^5.5.2"
|
|
100
79
|
},
|
|
@@ -132,5 +111,24 @@
|
|
|
132
111
|
"unresolved",
|
|
133
112
|
"unused",
|
|
134
113
|
"workspace"
|
|
135
|
-
]
|
|
136
|
-
|
|
114
|
+
],
|
|
115
|
+
"scripts": {
|
|
116
|
+
"knip": "node ./dist/cli.js --directory ../..",
|
|
117
|
+
"knip:production": "node ./dist/cli.js --directory ../.. --production --strict",
|
|
118
|
+
"lint": "biome lint",
|
|
119
|
+
"format": "biome format --write",
|
|
120
|
+
"test": "node scripts/run-test.ts",
|
|
121
|
+
"test:node": "tsx --test test/*.test.ts test/**/*.test.ts",
|
|
122
|
+
"test:bun": "bun test test/*.test.ts test/**/*.test.ts",
|
|
123
|
+
"test:smoke": "glob-bin -c \"tsx --test\" \"test/*.test.ts\" && glob-bin -c \"tsx --test\" \"test/{plugins,util}/*.test.ts\"",
|
|
124
|
+
"test:bun:smoke": "bun test test/*.test.ts test/{plugins,util}/*.test.ts",
|
|
125
|
+
"watch": "npm link && tsc --watch",
|
|
126
|
+
"prebuild": "pnpm run generate-plugin-defs && node rmdir.js dist",
|
|
127
|
+
"build": "tsc",
|
|
128
|
+
"qa": "pnpm lint && pnpm build && pnpm knip && pnpm knip:production && pnpm run test",
|
|
129
|
+
"release": "release-it",
|
|
130
|
+
"create-plugin": "tsx ./scripts/create-new-plugin.ts",
|
|
131
|
+
"postcreate-plugin": "pnpm run build && biome format --write schema.json schema-jsonc.json src/schema/plugins.ts",
|
|
132
|
+
"generate-plugin-defs": "node ./scripts/generate-plugin-defs.js && biome check --write src/plugins/index.ts src/types/PluginNames.ts src/schema/plugins.ts"
|
|
133
|
+
}
|
|
134
|
+
}
|
package/schema.json
CHANGED
|
@@ -793,6 +793,10 @@
|
|
|
793
793
|
"title": "vite plugin configuration (https://knip.dev/reference/plugins/vite)",
|
|
794
794
|
"$ref": "#/definitions/plugin"
|
|
795
795
|
},
|
|
796
|
+
"vitepress": {
|
|
797
|
+
"title": "vitepress plugin configuration (https://knip.dev/reference/plugins/vitepress)",
|
|
798
|
+
"$ref": "#/definitions/plugin"
|
|
799
|
+
},
|
|
796
800
|
"vitest": {
|
|
797
801
|
"title": "vitest plugin configuration (https://knip.dev/reference/plugins/vitest)",
|
|
798
802
|
"$ref": "#/definitions/plugin"
|