knip 5.39.1 → 5.39.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/dist/compilers/mdx.js +13 -1
- package/dist/plugins/angular/index.d.ts +0 -1
- package/dist/plugins/angular/index.js +0 -2
- package/dist/plugins/astro/index.js +1 -1
- package/dist/plugins/index.d.ts +2 -2
- package/dist/plugins/moonrepo/index.d.ts +1 -0
- package/dist/plugins/moonrepo/index.js +2 -0
- package/dist/plugins/xo/index.d.ts +0 -1
- package/dist/plugins/xo/index.js +0 -2
- package/dist/plugins/yarn/index.d.ts +1 -0
- package/dist/plugins/yarn/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/compilers/mdx.js
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import { fencedCodeBlockMatcher, importMatcher } from './compilers.js';
|
|
2
|
-
const
|
|
2
|
+
const mdxDependencies = [
|
|
3
|
+
'astro',
|
|
4
|
+
'@mdx-js/esbuild',
|
|
5
|
+
'@mdx-js/loader',
|
|
6
|
+
'@mdx-js/mdx',
|
|
7
|
+
'@mdx-js/node-loader',
|
|
8
|
+
'@mdx-js/preact',
|
|
9
|
+
'@mdx-js/react',
|
|
10
|
+
'@mdx-js/rollup',
|
|
11
|
+
'@mdx-js/vue',
|
|
12
|
+
'remark-mdx',
|
|
13
|
+
];
|
|
14
|
+
const condition = (hasDependency) => mdxDependencies.some(hasDependency);
|
|
3
15
|
const compiler = (text) => [...text.replace(fencedCodeBlockMatcher, '').matchAll(importMatcher)].join('\n');
|
|
4
16
|
export default { condition, compiler };
|
|
@@ -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
|
};
|
|
@@ -3,7 +3,7 @@ import { hasDependency } from '../../util/plugin.js';
|
|
|
3
3
|
const title = 'Astro';
|
|
4
4
|
const enablers = ['astro'];
|
|
5
5
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
6
|
-
const entry = ['astro.config.{js,cjs,mjs,ts}', 'src/content/config.ts'];
|
|
6
|
+
const entry = ['astro.config.{js,cjs,mjs,ts}', 'src/content/config.ts', 'src/content.config.ts'];
|
|
7
7
|
const production = [
|
|
8
8
|
'src/pages/**/*.{astro,mdx,js,ts}',
|
|
9
9
|
'src/content/**/*.mdx',
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -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: {
|
|
@@ -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
|
};
|
package/dist/plugins/xo/index.js
CHANGED
|
@@ -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,
|
|
@@ -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
|
+
export declare const version = "5.39.3";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '5.39.
|
|
1
|
+
export const version = '5.39.3';
|