knip 5.39.1 → 5.39.2

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.
@@ -5,7 +5,6 @@ declare const _default: {
5
5
  enablers: string[];
6
6
  isEnabled: IsPluginEnabled;
7
7
  config: string[];
8
- production: string[];
9
8
  resolveConfig: ResolveConfig<AngularCLIWorkspaceConfiguration>;
10
9
  };
11
10
  export default _default;
@@ -5,7 +5,6 @@ const title = 'Angular';
5
5
  const enablers = ['@angular/cli'];
6
6
  const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
7
7
  const config = ['angular.json'];
8
- const production = [];
9
8
  const resolveConfig = async (config, options) => {
10
9
  const { cwd, configFilePath } = options;
11
10
  if (!config?.projects)
@@ -63,6 +62,5 @@ export default {
63
62
  enablers,
64
63
  isEnabled,
65
64
  config,
66
- production,
67
65
  resolveConfig,
68
66
  };
@@ -4,7 +4,6 @@ export declare const Plugins: {
4
4
  enablers: string[];
5
5
  isEnabled: import("../types/config.js").IsPluginEnabled;
6
6
  config: string[];
7
- production: string[];
8
7
  resolveConfig: import("../types/config.js").ResolveConfig<import("./angular/types.js").AngularCLIWorkspaceConfiguration>;
9
8
  };
10
9
  astro: {
@@ -246,6 +245,7 @@ export declare const Plugins: {
246
245
  title: string;
247
246
  enablers: string[];
248
247
  isEnabled: import("../types/config.js").IsPluginEnabled;
248
+ isRootOnly: true;
249
249
  config: string[];
250
250
  resolveConfig: import("../types/config.js").ResolveConfig<import("./moonrepo/types.js").MoonConfiguration>;
251
251
  };
@@ -692,7 +692,6 @@ export declare const Plugins: {
692
692
  title: string;
693
693
  enablers: string[];
694
694
  isEnabled: import("../types/config.js").IsPluginEnabled;
695
- packageJsonPath: string;
696
695
  entry: string[];
697
696
  config: string[];
698
697
  resolveConfig: import("../types/config.js").ResolveConfig<import("./xo/types.js").XOConfig>;
@@ -701,6 +700,7 @@ export declare const Plugins: {
701
700
  title: string;
702
701
  enablers: string;
703
702
  isEnabled: import("../types/config.js").IsPluginEnabled;
703
+ isRootOnly: true;
704
704
  entry: string[];
705
705
  };
706
706
  yorkie: {
@@ -4,6 +4,7 @@ declare const _default: {
4
4
  title: string;
5
5
  enablers: string[];
6
6
  isEnabled: IsPluginEnabled;
7
+ isRootOnly: true;
7
8
  config: string[];
8
9
  resolveConfig: ResolveConfig<MoonConfiguration>;
9
10
  };
@@ -2,6 +2,7 @@ import { hasDependency } from '../../util/plugin.js';
2
2
  const title = 'moonrepo';
3
3
  const enablers = ['@moonrepo/cli'];
4
4
  const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
5
+ const isRootOnly = true;
5
6
  const config = ['moon.yml', '.moon/tasks.yml', '.moon/tasks/*.yml'];
6
7
  const resolveConfig = async (config, options) => {
7
8
  const tasks = config.tasks ? Object.values(config.tasks) : [];
@@ -17,6 +18,7 @@ export default {
17
18
  title,
18
19
  enablers,
19
20
  isEnabled,
21
+ isRootOnly,
20
22
  config,
21
23
  resolveConfig,
22
24
  };
@@ -4,7 +4,6 @@ declare const _default: {
4
4
  title: string;
5
5
  enablers: string[];
6
6
  isEnabled: IsPluginEnabled;
7
- packageJsonPath: string;
8
7
  entry: string[];
9
8
  config: string[];
10
9
  resolveConfig: ResolveConfig<XOConfig>;
@@ -3,7 +3,6 @@ import { getDependencies } from '../eslint/helpers.js';
3
3
  const title = 'xo';
4
4
  const enablers = ['xo'];
5
5
  const isEnabled = ({ dependencies, config }) => hasDependency(dependencies, enablers) || 'xo' in config;
6
- const packageJsonPath = 'xo';
7
6
  const config = ['package.json', '.xo-config', '.xo-config.{js,cjs,json}', 'xo.config.{js,cjs}'];
8
7
  const entry = ['.xo-config.{js,cjs}', 'xo.config.{js,cjs}'];
9
8
  const resolveConfig = async (config, options) => {
@@ -14,7 +13,6 @@ export default {
14
13
  title,
15
14
  enablers,
16
15
  isEnabled,
17
- packageJsonPath,
18
16
  entry,
19
17
  config,
20
18
  resolveConfig,
@@ -3,6 +3,7 @@ declare const _default: {
3
3
  title: string;
4
4
  enablers: string;
5
5
  isEnabled: IsPluginEnabled;
6
+ isRootOnly: true;
6
7
  entry: string[];
7
8
  };
8
9
  export default _default;
@@ -2,10 +2,12 @@ import { _firstGlob } from '../../util/glob.js';
2
2
  const title = 'Yarn';
3
3
  const enablers = 'This plugin is enabled when a `yarn.lock` file is found in the root folder.';
4
4
  const isEnabled = async ({ cwd }) => Boolean(await _firstGlob({ cwd, patterns: ['yarn.lock'] }));
5
+ const isRootOnly = true;
5
6
  const entry = ['yarn.config.cjs'];
6
7
  export default {
7
8
  title,
8
9
  enablers,
9
10
  isEnabled,
11
+ isRootOnly,
10
12
  entry,
11
13
  };
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "5.39.1";
1
+ export declare const version = "5.39.2";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '5.39.1';
1
+ export const version = '5.39.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knip",
3
- "version": "5.39.1",
3
+ "version": "5.39.2",
4
4
  "description": "Find unused files, dependencies and exports in your TypeScript and JavaScript projects",
5
5
  "homepage": "https://knip.dev",
6
6
  "repository": {