knip 5.27.2 → 5.27.3

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
@@ -19,7 +19,6 @@ Knip finds **unused files, dependencies and exports** in your JavaScript and
19
19
  TypeScript projects. Less code and dependencies lead to improved performance,
20
20
  less maintenance and easier refactorings.
21
21
 
22
-
23
22
  - Website: [knip.dev][3]
24
23
  - GitHub repo: [webpro-nl/knip][2]
25
24
  - npm package: [knip][1]
@@ -27,11 +26,13 @@ less maintenance and easier refactorings.
27
26
  - [Contributing Guide][5]
28
27
  - [Sponsor Knip!][6]
29
28
 
29
+ /'knɪp/ means "(to) cut" and is [pronounced with a hard "K"][7] 🇳🇱
30
+
30
31
  ## Contributors
31
32
 
32
33
  Special thanks to the wonderful people who have contributed to this project:
33
34
 
34
- [![Contributors][8]][7]
35
+ [![Contributors][9]][8]
35
36
 
36
37
  [1]: https://www.npmjs.com/package/knip
37
38
  [2]: https://github.com/webpro-nl/knip
@@ -39,5 +40,6 @@ Special thanks to the wonderful people who have contributed to this project:
39
40
  [4]: https://discord.gg/r5uXTtbTpc
40
41
  [5]: https://github.com/webpro-nl/knip/blob/main/.github/CONTRIBUTING.md
41
42
  [6]: https://knip.dev/sponsors
42
- [7]: https://github.com/webpro-nl/knip/graphs/contributors
43
- [8]: https://contrib.rocks/image?repo=webpro-nl/knip
43
+ [7]: https://en.wiktionary.org/wiki/knip#Dutch
44
+ [8]: https://github.com/webpro-nl/knip/graphs/contributors
45
+ [9]: https://contrib.rocks/image?repo=webpro-nl/knip
@@ -34,7 +34,7 @@ export declare class WorkspaceWorker {
34
34
  isStrict: boolean;
35
35
  rootIgnore: Configuration['ignore'];
36
36
  negatedWorkspacePatterns: string[];
37
- enabledPluginsMap: Record<"angular" | "astro" | "ava" | "babel" | "capacitor" | "changesets" | "commitizen" | "commitlint" | "cspell" | "cucumber" | "cypress" | "drizzle" | "eleventy" | "eslint" | "gatsby" | "githubActions" | "graphqlCodegen" | "husky" | "jest" | "ladle" | "lefthook" | "linthtml" | "lintStaged" | "lockfileLint" | "lostPixel" | "markdownlint" | "mocha" | "moonrepo" | "msw" | "netlify" | "next" | "nodeTestRunner" | "npmPackageJsonLint" | "nx" | "nyc" | "oclif" | "playwright" | "playwrightCt" | "postcss" | "prettier" | "reactCosmos" | "releaseIt" | "remark" | "remix" | "rollup" | "rsbuild" | "rspack" | "semanticRelease" | "sentry" | "simpleGitHooks" | "sizeLimit" | "storybook" | "stryker" | "stylelint" | "svelte" | "syncpack" | "tailwind" | "tsup" | "typedoc" | "typescript" | "unbuild" | "unocss" | "vercelOg" | "vite" | "vitest" | "vue" | "webdriverIo" | "webpack" | "wireit" | "wrangler" | "xo" | "yorkie", boolean>;
37
+ enabledPluginsMap: Record<"astro" | "angular" | "ava" | "babel" | "capacitor" | "changesets" | "commitizen" | "commitlint" | "cspell" | "cucumber" | "cypress" | "eleventy" | "eslint" | "gatsby" | "husky" | "jest" | "ladle" | "lefthook" | "linthtml" | "markdownlint" | "mocha" | "moonrepo" | "msw" | "netlify" | "next" | "nx" | "nyc" | "oclif" | "playwright" | "postcss" | "prettier" | "remark" | "remix" | "rollup" | "rsbuild" | "rspack" | "sentry" | "storybook" | "stryker" | "stylelint" | "svelte" | "syncpack" | "tailwind" | "tsup" | "typedoc" | "typescript" | "unbuild" | "unocss" | "vue" | "vite" | "vitest" | "webpack" | "wireit" | "wrangler" | "xo" | "yorkie" | "drizzle" | "githubActions" | "graphqlCodegen" | "lintStaged" | "lockfileLint" | "lostPixel" | "nodeTestRunner" | "npmPackageJsonLint" | "playwrightCt" | "reactCosmos" | "releaseIt" | "semanticRelease" | "simpleGitHooks" | "sizeLimit" | "vercelOg" | "webdriverIo", boolean>;
38
38
  enabledPlugins: PluginName[];
39
39
  enabledPluginsInAncestors: string[];
40
40
  cache: CacheConsultant<CacheItem>;
@@ -54,7 +54,7 @@ export declare class WorkspaceWorker {
54
54
  entryFilePatterns: Set<string>;
55
55
  productionEntryFilePatterns: Set<string>;
56
56
  referencedDependencies: ReferencedDependencies;
57
- enabledPlugins: ("angular" | "astro" | "ava" | "babel" | "capacitor" | "changesets" | "commitizen" | "commitlint" | "cspell" | "cucumber" | "cypress" | "drizzle" | "eleventy" | "eslint" | "gatsby" | "githubActions" | "graphqlCodegen" | "husky" | "jest" | "ladle" | "lefthook" | "linthtml" | "lintStaged" | "lockfileLint" | "lostPixel" | "markdownlint" | "mocha" | "moonrepo" | "msw" | "netlify" | "next" | "nodeTestRunner" | "npmPackageJsonLint" | "nx" | "nyc" | "oclif" | "playwright" | "playwrightCt" | "postcss" | "prettier" | "reactCosmos" | "releaseIt" | "remark" | "remix" | "rollup" | "rsbuild" | "rspack" | "semanticRelease" | "sentry" | "simpleGitHooks" | "sizeLimit" | "storybook" | "stryker" | "stylelint" | "svelte" | "syncpack" | "tailwind" | "tsup" | "typedoc" | "typescript" | "unbuild" | "unocss" | "vercelOg" | "vite" | "vitest" | "vue" | "webdriverIo" | "webpack" | "wireit" | "wrangler" | "xo" | "yorkie")[];
57
+ enabledPlugins: ("astro" | "angular" | "ava" | "babel" | "capacitor" | "changesets" | "commitizen" | "commitlint" | "cspell" | "cucumber" | "cypress" | "eleventy" | "eslint" | "gatsby" | "husky" | "jest" | "ladle" | "lefthook" | "linthtml" | "markdownlint" | "mocha" | "moonrepo" | "msw" | "netlify" | "next" | "nx" | "nyc" | "oclif" | "playwright" | "postcss" | "prettier" | "remark" | "remix" | "rollup" | "rsbuild" | "rspack" | "sentry" | "storybook" | "stryker" | "stylelint" | "svelte" | "syncpack" | "tailwind" | "tsup" | "typedoc" | "typescript" | "unbuild" | "unocss" | "vue" | "vite" | "vitest" | "webpack" | "wireit" | "wrangler" | "xo" | "yorkie" | "drizzle" | "githubActions" | "graphqlCodegen" | "lintStaged" | "lockfileLint" | "lostPixel" | "nodeTestRunner" | "npmPackageJsonLint" | "playwrightCt" | "reactCosmos" | "releaseIt" | "semanticRelease" | "simpleGitHooks" | "sizeLimit" | "vercelOg" | "webdriverIo")[];
58
58
  }>;
59
59
  onDispose(): void;
60
60
  }
@@ -8,7 +8,7 @@ const config = [
8
8
  ...toLilconfig('postcss', { configDir: false, additionalExtensions: ['ts', 'mts', 'cts', 'yaml', 'yml'] }),
9
9
  ];
10
10
  const resolveConfig = config => {
11
- return config.plugins
11
+ const plugins = config.plugins
12
12
  ? (Array.isArray(config.plugins) ? config.plugins : Object.keys(config.plugins)).flatMap(plugin => {
13
13
  if (typeof plugin === 'string')
14
14
  return plugin;
@@ -17,6 +17,7 @@ const resolveConfig = config => {
17
17
  return [];
18
18
  })
19
19
  : [];
20
+ return plugins.includes('tailwindcss') ? [...plugins, 'postcss'] : plugins;
20
21
  };
21
22
  export default {
22
23
  title,
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "5.27.2";
1
+ export declare const version = "5.27.3";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '5.27.2';
1
+ export const version = '5.27.3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knip",
3
- "version": "5.27.2",
3
+ "version": "5.27.3",
4
4
  "description": "Find unused files, dependencies and exports in your TypeScript and JavaScript projects",
5
5
  "homepage": "https://knip.dev",
6
6
  "repository": {