knip 6.45.1 → 6.46.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.
- package/README.md +42 -18
- package/dist/ConfigurationChief.d.ts +6 -0
- package/dist/ConfigurationChief.js +2 -2
- package/dist/DependencyDeputy.d.ts +12 -14
- package/dist/DependencyDeputy.js +33 -21
- package/dist/IssueCollector.d.ts +1 -0
- package/dist/IssueCollector.js +4 -1
- package/dist/PackagePeeker.d.ts +0 -9
- package/dist/PackagePeeker.js +0 -38
- package/dist/ProjectPrincipal.d.ts +1 -1
- package/dist/ProjectPrincipal.js +3 -1
- package/dist/WorkspaceWorker.js +7 -7
- package/dist/binaries/bash-parser.js +5 -8
- package/dist/binaries/command.js +2 -2
- package/dist/binaries/fallback.d.ts +5 -1
- package/dist/binaries/fallback.js +41 -10
- package/dist/binaries/plugins.d.ts +1 -0
- package/dist/binaries/plugins.js +75 -39
- package/dist/binaries/resolvers/bun.js +2 -2
- package/dist/binaries/resolvers/npm.js +2 -2
- package/dist/binaries/resolvers/npx.js +2 -2
- package/dist/binaries/resolvers/nub.js +2 -2
- package/dist/binaries/resolvers/pnpm.js +29 -21
- package/dist/binaries/resolvers/pnpx.js +20 -8
- package/dist/binaries/resolvers/vp.js +1 -1
- package/dist/binaries/resolvers/yarn.js +1 -1
- package/dist/binaries/util.d.ts +4 -1
- package/dist/binaries/util.js +10 -13
- package/dist/constants.js +18 -0
- package/dist/graph/SubpathReferences.d.ts +1 -1
- package/dist/graph/SubpathReferences.js +4 -3
- package/dist/graph/build.js +11 -12
- package/dist/plugins/_template/index.js +2 -2
- package/dist/plugins/angular/index.js +3 -8
- package/dist/plugins/astro/resolveFromAST.js +2 -2
- package/dist/plugins/astro-markdoc/index.js +2 -2
- package/dist/plugins/astro-og-canvas/index.js +1 -1
- package/dist/plugins/aws-cdk/index.js +3 -3
- package/dist/plugins/babel/index.js +5 -3
- package/dist/plugins/borp/index.js +2 -2
- package/dist/plugins/bun/index.js +3 -3
- package/dist/plugins/capacitor/index.js +33 -6
- package/dist/plugins/capacitor/types.d.ts +10 -0
- package/dist/plugins/changesets/index.js +2 -2
- package/dist/plugins/commitizen/index.js +2 -2
- package/dist/plugins/commitlint/index.js +2 -2
- package/dist/plugins/convex/index.js +2 -2
- package/dist/plugins/cspell/index.js +2 -2
- package/dist/plugins/cucumber/index.js +2 -2
- package/dist/plugins/cypress/index.js +3 -3
- package/dist/plugins/docusaurus/helpers.js +6 -6
- package/dist/plugins/docusaurus/index.js +3 -3
- package/dist/plugins/dotenv/index.js +6 -2
- package/dist/plugins/drizzle/index.js +2 -2
- package/dist/plugins/electron-builder/index.d.ts +3 -0
- package/dist/plugins/electron-builder/index.js +61 -0
- package/dist/plugins/electron-forge/index.js +2 -2
- package/dist/plugins/electron-vite/index.js +4 -3
- package/dist/plugins/electron-vite/types.d.ts +3 -0
- package/dist/plugins/eleventy/index.js +2 -2
- package/dist/plugins/ember/compiler.d.ts +2 -0
- package/dist/plugins/ember/compiler.js +14 -0
- package/dist/plugins/ember/index.d.ts +6 -0
- package/dist/plugins/ember/index.js +160 -0
- package/dist/plugins/ember/types.d.ts +13 -0
- package/dist/plugins/ember/types.js +1 -0
- package/dist/plugins/ember/visitors/importSync.d.ts +2 -0
- package/dist/plugins/ember/visitors/importSync.js +32 -0
- package/dist/plugins/ember-template-lint/index.d.ts +3 -0
- package/dist/plugins/ember-template-lint/index.js +20 -0
- package/dist/plugins/env-cmd/index.d.ts +3 -0
- package/dist/plugins/env-cmd/index.js +16 -0
- package/dist/plugins/esbuild/index.js +2 -2
- package/dist/plugins/eslint/helpers.js +6 -6
- package/dist/plugins/eslint/index.js +0 -1
- package/dist/plugins/eslint/resolveFromAST.js +11 -3
- package/dist/plugins/evalite/index.js +2 -2
- package/dist/plugins/expo/helpers.js +10 -10
- package/dist/plugins/expo-router/index.js +3 -3
- package/dist/plugins/filesystem-routing/index.js +4 -4
- package/dist/plugins/flue/index.js +4 -4
- package/dist/plugins/gatsby/index.js +3 -3
- package/dist/plugins/github-action/index.js +2 -2
- package/dist/plugins/github-actions/index.js +2 -2
- package/dist/plugins/graphql-codegen/index.js +8 -6
- package/dist/plugins/index.d.ts +6 -0
- package/dist/plugins/index.js +12 -0
- package/dist/plugins/jasmine/index.js +3 -4
- package/dist/plugins/jest/index.js +3 -3
- package/dist/plugins/karma/helpers.js +2 -2
- package/dist/plugins/karma/index.js +5 -1
- package/dist/plugins/knex/index.js +13 -7
- package/dist/plugins/laravel-vite-plugin/resolveFromAST.js +2 -2
- package/dist/plugins/linthtml/index.js +2 -2
- package/dist/plugins/lunaria/index.js +3 -3
- package/dist/plugins/maestro/index.d.ts +3 -0
- package/dist/plugins/maestro/index.js +54 -0
- package/dist/plugins/maestro/types.d.ts +21 -0
- package/dist/plugins/maestro/types.js +1 -0
- package/dist/plugins/markdownlint/index.js +3 -3
- package/dist/plugins/marko/index.js +4 -4
- package/dist/plugins/mastra/index.js +3 -3
- package/dist/plugins/mdx/index.js +3 -3
- package/dist/plugins/mdxlint/index.js +2 -2
- package/dist/plugins/metro/index.js +5 -5
- package/dist/plugins/mikro-orm/index.js +3 -4
- package/dist/plugins/mise/scripts.js +2 -3
- package/dist/plugins/mocha/index.js +8 -7
- package/dist/plugins/netlify/index.js +4 -4
- package/dist/plugins/next/index.js +5 -5
- package/dist/plugins/next-mdx/resolveFromAST.js +2 -2
- package/dist/plugins/nitro/index.js +4 -4
- package/dist/plugins/node/index.d.ts +16 -0
- package/dist/plugins/node/index.js +89 -23
- package/dist/plugins/nodemon/index.js +1 -1
- package/dist/plugins/npm-package-json-lint/index.js +2 -2
- package/dist/plugins/nuxt/index.js +16 -14
- package/dist/plugins/nx/index.js +3 -3
- package/dist/plugins/nyc/index.js +39 -2
- package/dist/plugins/oclif/index.js +5 -3
- package/dist/plugins/openclaw/index.js +5 -5
- package/dist/plugins/oxlint/index.js +2 -2
- package/dist/plugins/panda-css/index.js +2 -2
- package/dist/plugins/parcel/index.js +2 -2
- package/dist/plugins/payload/index.js +3 -3
- package/dist/plugins/playwright/index.js +4 -4
- package/dist/plugins/pm2/index.js +2 -2
- package/dist/plugins/pnpm/index.js +1 -1
- package/dist/plugins/postcss/index.js +2 -2
- package/dist/plugins/preconstruct/index.js +2 -2
- package/dist/plugins/prettier/index.js +4 -3
- package/dist/plugins/prisma/index.js +5 -5
- package/dist/plugins/quasar/resolveFromAST.js +8 -8
- package/dist/plugins/qwik/resolveFromAST.js +3 -3
- package/dist/plugins/raycast/index.js +2 -2
- package/dist/plugins/react-cosmos/index.js +2 -2
- package/dist/plugins/react-native/index.js +1 -1
- package/dist/plugins/react-router/index.js +6 -6
- package/dist/plugins/relay/index.js +3 -3
- package/dist/plugins/release-it/index.js +2 -5
- package/dist/plugins/remark/helpers.js +2 -2
- package/dist/plugins/retry-cli/index.js +0 -1
- package/dist/plugins/rolldown/index.js +2 -2
- package/dist/plugins/rollup/index.js +2 -2
- package/dist/plugins/rsbuild/index.js +3 -3
- package/dist/plugins/rslib/index.js +2 -2
- package/dist/plugins/rslint/index.d.ts +3 -0
- package/dist/plugins/rslint/index.js +16 -0
- package/dist/plugins/rspack/index.js +4 -0
- package/dist/plugins/rstest/index.js +4 -4
- package/dist/plugins/semantic-release/index.js +2 -2
- package/dist/plugins/serverless-framework/index.js +4 -4
- package/dist/plugins/solidjs-vite-plugin/resolveFromAST.js +3 -3
- package/dist/plugins/sst/resolveFromAST.js +2 -2
- package/dist/plugins/starlight/resolveFromAST.js +3 -3
- package/dist/plugins/stencil/resolveFromAST.js +5 -5
- package/dist/plugins/storybook/index.js +2 -2
- package/dist/plugins/stryker/index.js +2 -2
- package/dist/plugins/stylelint/index.js +4 -4
- package/dist/plugins/sveltekit/resolveFromAST.js +7 -5
- package/dist/plugins/swc/index.js +8 -5
- package/dist/plugins/tailwind/index.js +3 -2
- package/dist/plugins/tanstack-router/index.js +5 -2
- package/dist/plugins/textlint/helpers.js +2 -2
- package/dist/plugins/ts-node/index.js +23 -6
- package/dist/plugins/tsd/index.js +1 -1
- package/dist/plugins/tsdown/index.js +4 -4
- package/dist/plugins/tsup/index.js +3 -3
- package/dist/plugins/tsx/index.js +4 -3
- package/dist/plugins/turbo/index.js +2 -2
- package/dist/plugins/typedoc/index.js +4 -3
- package/dist/plugins/typescript/index.js +4 -4
- package/dist/plugins/varlock/scan.js +6 -3
- package/dist/plugins/vite/helpers.js +2 -2
- package/dist/plugins/vite-plugin-pages/index.js +2 -2
- package/dist/plugins/vite-plugin-pwa/resolveFromAST.js +2 -2
- package/dist/plugins/vite-plugin-vue-layouts-next/index.js +2 -2
- package/dist/plugins/vitest/index.js +14 -18
- package/dist/plugins/webdriver-io/index.js +13 -1
- package/dist/plugins/webpack/index.js +7 -12
- package/dist/plugins/wrangler/index.js +3 -3
- package/dist/plugins/wxt/index.js +2 -2
- package/dist/plugins/yarn/index.js +5 -5
- package/dist/session/incremental.d.ts +1 -1
- package/dist/types/PluginNames.d.ts +2 -2
- package/dist/types/PluginNames.js +6 -0
- package/dist/types/args.d.ts +4 -3
- package/dist/types/config.d.ts +2 -0
- package/dist/types/module-graph.d.ts +1 -1
- package/dist/types/package-json.d.ts +1 -0
- package/dist/types/workspace.d.ts +10 -8
- package/dist/typescript/ast-nodes.js +4 -5
- package/dist/typescript/get-imports-and-exports.js +5 -2
- package/dist/typescript/visitors/exports.js +6 -32
- package/dist/typescript/visitors/imports.d.ts +1 -1
- package/dist/typescript/visitors/imports.js +15 -24
- package/dist/typescript/visitors/walk.d.ts +5 -0
- package/dist/typescript/visitors/walk.js +75 -30
- package/dist/util/codeowners.js +4 -1
- package/dist/util/input.d.ts +3 -6
- package/dist/util/input.js +6 -20
- package/dist/util/parse-and-convert-gitignores.js +5 -4
- package/dist/util/parse-args.d.ts +2 -1
- package/dist/util/parse-args.js +13 -3
- package/dist/util/plugin.js +6 -4
- package/dist/util/watch.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/schema.json +36 -5
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { findImportedCalls, findProperty, getStringValues } from '../../typescript/ast-helpers.js';
|
|
2
2
|
import { getStringValue } from '../../typescript/ast-nodes.js';
|
|
3
|
-
import { toDependency,
|
|
3
|
+
import { toDependency, toEntry } from '../../util/input.js';
|
|
4
4
|
import { isInternal } from '../../util/path.js';
|
|
5
5
|
import { toProviderInput } from '../mdx/index.js';
|
|
6
6
|
export const production = ['{src/,}mdx-components.{js,jsx,ts,tsx}'];
|
|
7
7
|
export const resolveFromAST = (program, options) => {
|
|
8
|
-
const inputs = production.map(id =>
|
|
8
|
+
const inputs = production.map(id => toEntry(id, { production: true }));
|
|
9
9
|
const plugins = new Set();
|
|
10
10
|
for (const call of findImportedCalls(program, '@next/mdx')) {
|
|
11
11
|
const mdxOptions = findProperty(call.arguments?.[0], 'options');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { toModule, toDependency, toIgnore, toEntry } from '../../util/input.js';
|
|
2
2
|
import { isInternal, join } from '../../util/path.js';
|
|
3
3
|
import { hasDependency } from '../../util/plugin.js';
|
|
4
4
|
const title = 'Nitro';
|
|
@@ -26,19 +26,19 @@ const resolve = () => [toIgnore('^#nitro-internal-', 'unresolved')];
|
|
|
26
26
|
const resolveConfig = async (localConfig) => {
|
|
27
27
|
const srcDir = localConfig.srcDir ?? '.';
|
|
28
28
|
const patterns = [
|
|
29
|
-
|
|
29
|
+
toEntry('.nitro/types/*.d.ts', { production: true }),
|
|
30
30
|
...[
|
|
31
31
|
typeof localConfig.serverEntry === 'string' ? localConfig.serverEntry : 'server.{js,mjs,ts}',
|
|
32
32
|
join(typeof localConfig.apiDir === 'string' ? localConfig.apiDir : 'api', '**/*.ts'),
|
|
33
33
|
join(typeof localConfig.routesDir === 'string' ? localConfig.routesDir : 'routes', '**/*.ts'),
|
|
34
34
|
'middleware/**/*.ts',
|
|
35
35
|
'plugins/**/*.ts',
|
|
36
|
-
].map(pattern =>
|
|
36
|
+
].map(pattern => toEntry(join(srcDir, pattern), { production: true })),
|
|
37
37
|
];
|
|
38
38
|
const deps = localConfig.modules?.reduce((acc, mod) => {
|
|
39
39
|
const id = Array.isArray(mod) ? mod[0] : mod;
|
|
40
40
|
if (typeof id === 'string')
|
|
41
|
-
acc.push(isInternal(id) ?
|
|
41
|
+
acc.push(isInternal(id) ? toModule(id) : toDependency(id));
|
|
42
42
|
return acc;
|
|
43
43
|
}, []) ?? [];
|
|
44
44
|
return [...deps, ...patterns];
|
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
import type { Plugin } from '../../types/config.ts';
|
|
2
|
+
import type { ParsedArgs } from '../../util/parse-args.ts';
|
|
3
|
+
declare const toScripts: (parsed: ParsedArgs) => string[];
|
|
4
|
+
export declare const args: {
|
|
5
|
+
positional: typeof toScripts;
|
|
6
|
+
nodeImportArgs: true;
|
|
7
|
+
resolve: string[];
|
|
8
|
+
string: string[];
|
|
9
|
+
alias: {
|
|
10
|
+
conditions: string[];
|
|
11
|
+
eval: string[];
|
|
12
|
+
print: string[];
|
|
13
|
+
};
|
|
14
|
+
boolean: true;
|
|
15
|
+
stopEarly: true;
|
|
16
|
+
args: (args: string[]) => string[];
|
|
17
|
+
};
|
|
2
18
|
declare const plugin: Plugin;
|
|
3
19
|
export default plugin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toEntry
|
|
1
|
+
import { toEntry } from '../../util/input.js';
|
|
2
2
|
import { createFsPromisesGlobVisitor } from './visitors/fsPromisesGlob.js';
|
|
3
3
|
const title = 'Node.js';
|
|
4
4
|
const isEnabled = () => true;
|
|
@@ -25,36 +25,102 @@ const registerVisitors = ({ ctx, registerVisitor }) => {
|
|
|
25
25
|
registerVisitor(createFsPromisesGlobVisitor(ctx));
|
|
26
26
|
};
|
|
27
27
|
const resolve = options => {
|
|
28
|
-
const entries = entry.map(id =>
|
|
28
|
+
const entries = entry.map(id => toEntry(id, { production: true }));
|
|
29
29
|
if (hasNodeTest(options.manifest.scripts, options.cwd, options.getScriptCommands) ||
|
|
30
30
|
hasNodeTest(options.rootManifest?.scripts, options.rootCwd, options.getScriptCommands)) {
|
|
31
|
-
entries.push(...patterns.map(toEntry));
|
|
31
|
+
entries.push(...patterns.map(id => toEntry(id)));
|
|
32
32
|
}
|
|
33
33
|
return entries;
|
|
34
34
|
};
|
|
35
|
-
const
|
|
36
|
-
|
|
35
|
+
const toScripts = (parsed) => {
|
|
36
|
+
if (parsed.eval !== undefined || parsed.print !== undefined || parsed.run !== undefined)
|
|
37
|
+
return [];
|
|
38
|
+
const scripts = parsed.test ? parsed._ : parsed._.slice(parsed._[0] === 'inspect' ? 1 : 0).slice(0, 1);
|
|
39
|
+
return scripts.filter(script => !String(script).startsWith('-'));
|
|
40
|
+
};
|
|
41
|
+
export const args = {
|
|
42
|
+
positional: toScripts,
|
|
37
43
|
nodeImportArgs: true,
|
|
38
44
|
resolve: ['test-reporter'],
|
|
39
|
-
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
'
|
|
50
|
-
'
|
|
51
|
-
'
|
|
52
|
-
'
|
|
53
|
-
'
|
|
54
|
-
'
|
|
55
|
-
'
|
|
56
|
-
'
|
|
45
|
+
string: [
|
|
46
|
+
'allow-fs-read',
|
|
47
|
+
'allow-fs-write',
|
|
48
|
+
'build-snapshot-config',
|
|
49
|
+
'conditions',
|
|
50
|
+
'cpu-prof-dir',
|
|
51
|
+
'cpu-prof-interval',
|
|
52
|
+
'cpu-prof-name',
|
|
53
|
+
'debug-port',
|
|
54
|
+
'diagnostic-dir',
|
|
55
|
+
'disable-proto',
|
|
56
|
+
'disable-warning',
|
|
57
|
+
'dns-result-order',
|
|
58
|
+
'env-file',
|
|
59
|
+
'env-file-if-exists',
|
|
60
|
+
'eval',
|
|
61
|
+
'experimental-config-file',
|
|
62
|
+
'experimental-default-config-file',
|
|
63
|
+
'experimental-package-map',
|
|
64
|
+
'experimental-sea-config',
|
|
65
|
+
'experimental-test-isolation',
|
|
66
|
+
'experimental-test-tag-filter',
|
|
67
|
+
'heap-prof-dir',
|
|
68
|
+
'heap-prof-interval',
|
|
69
|
+
'heap-prof-name',
|
|
70
|
+
'heapsnapshot-near-heap-limit',
|
|
71
|
+
'heapsnapshot-signal',
|
|
72
|
+
'icu-data-dir',
|
|
73
|
+
'input-type',
|
|
74
|
+
'inspect-port',
|
|
75
|
+
'inspect-publish-uid',
|
|
76
|
+
'localstorage-file',
|
|
77
|
+
'max-http-header-size',
|
|
78
|
+
'max-old-space-size-percentage',
|
|
79
|
+
'network-family-autoselection-attempt-timeout',
|
|
80
|
+
'openssl-config',
|
|
81
|
+
'print',
|
|
82
|
+
'redirect-warnings',
|
|
83
|
+
'report-dir',
|
|
84
|
+
'report-directory',
|
|
85
|
+
'report-filename',
|
|
86
|
+
'report-signal',
|
|
87
|
+
'run',
|
|
88
|
+
'secure-heap',
|
|
89
|
+
'secure-heap-min',
|
|
90
|
+
'security-revert',
|
|
91
|
+
'security-reverts',
|
|
92
|
+
'snapshot-blob',
|
|
93
|
+
'stack-trace-limit',
|
|
94
|
+
'test-concurrency',
|
|
95
|
+
'test-coverage-branches',
|
|
96
|
+
'test-coverage-exclude',
|
|
97
|
+
'test-coverage-functions',
|
|
98
|
+
'test-coverage-include',
|
|
99
|
+
'test-coverage-lines',
|
|
100
|
+
'test-global-setup',
|
|
101
|
+
'test-isolation',
|
|
102
|
+
'test-name-pattern',
|
|
103
|
+
'test-random-seed',
|
|
104
|
+
'test-reporter-destination',
|
|
105
|
+
'test-rerun-failures',
|
|
106
|
+
'test-shard',
|
|
107
|
+
'test-skip-pattern',
|
|
108
|
+
'test-timeout',
|
|
109
|
+
'title',
|
|
110
|
+
'tls-cipher-list',
|
|
111
|
+
'tls-keylog',
|
|
112
|
+
'trace-event-categories',
|
|
113
|
+
'trace-event-file-pattern',
|
|
114
|
+
'trace-require-module',
|
|
115
|
+
'unhandled-rejections',
|
|
116
|
+
'use-largepages',
|
|
117
|
+
'v8-pool-size',
|
|
118
|
+
'watch-kill-signal',
|
|
119
|
+
'watch-path',
|
|
57
120
|
],
|
|
121
|
+
alias: { conditions: ['C'], eval: ['e'], print: ['p'] },
|
|
122
|
+
boolean: true,
|
|
123
|
+
stopEarly: true,
|
|
58
124
|
args: (args) => args.filter(arg => !/--test-reporter[= ](spec|tap|dot|junit|lcov)/.test(arg)),
|
|
59
125
|
};
|
|
60
126
|
const plugin = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { toModule, toDependency } from '../../util/input.js';
|
|
2
2
|
import { isInternal } from '../../util/path.js';
|
|
3
3
|
import { hasDependency } from '../../util/plugin.js';
|
|
4
4
|
import { toCosmiconfig } from '../../util/plugin-config.js';
|
|
@@ -13,7 +13,7 @@ const resolveConfig = (localConfig, options) => {
|
|
|
13
13
|
return [localConfig.extends].flat().map(id => {
|
|
14
14
|
if (!isInternal(id))
|
|
15
15
|
return toDependency(id);
|
|
16
|
-
return id.startsWith('./') ?
|
|
16
|
+
return id.startsWith('./') ? toModule(id, { dir: options.cwd }) : toModule(id);
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
19
|
const plugin = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isDirectory } from '../../util/fs.js';
|
|
2
2
|
import { _syncGlob } from '../../util/glob.js';
|
|
3
|
-
import { toAlias, toConfig,
|
|
3
|
+
import { toAlias, toConfig, toModule, toEntryPath, toDependency, toEntry, toIgnore } from '../../util/input.js';
|
|
4
4
|
import { loadTSConfig } from '../../util/load-tsconfig.js';
|
|
5
5
|
import { isInternal, join, toAbsolute } from '../../util/path.js';
|
|
6
6
|
import { hasDependency } from '../../util/plugin.js';
|
|
@@ -74,20 +74,20 @@ const addAppEntries = (inputs, srcDir, serverDir, config, dir) => {
|
|
|
74
74
|
for (const id of entry)
|
|
75
75
|
inputs.push(toEntry(join(srcDir, id)));
|
|
76
76
|
for (const id of app)
|
|
77
|
-
inputs.push(
|
|
78
|
-
inputs.push(
|
|
77
|
+
inputs.push(toEntry(join(srcDir, id), { production: true }));
|
|
78
|
+
inputs.push(toEntry(join(srcDir, layout(config.dir?.layouts)), { production: true }));
|
|
79
79
|
for (const id of middleware(config.dir?.middleware))
|
|
80
|
-
inputs.push(
|
|
81
|
-
inputs.push(
|
|
80
|
+
inputs.push(toEntry(join(srcDir, id), { production: true }));
|
|
81
|
+
inputs.push(toEntry(join(srcDir, pages(config.dir?.pages)), { production: true }));
|
|
82
82
|
for (const id of plugins(config.dir?.plugins))
|
|
83
|
-
inputs.push(
|
|
84
|
-
inputs.push(
|
|
83
|
+
inputs.push(toEntry(join(srcDir, id), { production: true }));
|
|
84
|
+
inputs.push(toEntry(join(srcDir, 'components/global/**/*.{vue,jsx,tsx}'), { production: true }));
|
|
85
85
|
for (const id of server)
|
|
86
|
-
inputs.push(
|
|
87
|
-
inputs.push(
|
|
86
|
+
inputs.push(toEntry(join(dir, serverDir, id), { production: true }));
|
|
87
|
+
inputs.push(toEntry(join(dir, modules), { production: true }));
|
|
88
88
|
if (config.css)
|
|
89
89
|
for (const id of config.css)
|
|
90
|
-
inputs.push(
|
|
90
|
+
inputs.push(toEntryPath(resolveAlias(id, srcDir, dir), { production: true }));
|
|
91
91
|
};
|
|
92
92
|
const findLayerConfigs = (cwd) => _syncGlob({ cwd, patterns: [`layers/*/${config.at(0)}`] });
|
|
93
93
|
const definitionFiles = [
|
|
@@ -115,7 +115,9 @@ const resolveConfig = async (localConfig, options) => {
|
|
|
115
115
|
const inputs = [];
|
|
116
116
|
const addModule = (id) => {
|
|
117
117
|
const specifier = resolveAlias(id, srcDir, cwd);
|
|
118
|
-
inputs.push(isInternal(specifier)
|
|
118
|
+
inputs.push(isInternal(specifier)
|
|
119
|
+
? toEntryPath(specifier, { production: true })
|
|
120
|
+
: toDependency(specifier, { production: true }));
|
|
119
121
|
};
|
|
120
122
|
for (const id of localConfig.modules ?? []) {
|
|
121
123
|
if (Array.isArray(id) && typeof id[0] === 'string')
|
|
@@ -126,7 +128,7 @@ const resolveConfig = async (localConfig, options) => {
|
|
|
126
128
|
for (const id of localConfig.plugins ?? []) {
|
|
127
129
|
const src = typeof id === 'string' ? id : id?.src;
|
|
128
130
|
if (typeof src === 'string')
|
|
129
|
-
inputs.push(
|
|
131
|
+
inputs.push(toModule(resolveAlias(src, srcDir, cwd), { dir: cwd, production: true }));
|
|
130
132
|
}
|
|
131
133
|
addAppEntries(inputs, srcDir, serverDir, localConfig, cwd);
|
|
132
134
|
const sharedDir = toAbsolute(localConfig.dir?.shared ?? 'shared', cwd);
|
|
@@ -152,7 +154,7 @@ const resolveConfig = async (localConfig, options) => {
|
|
|
152
154
|
for (const cfg of configs)
|
|
153
155
|
inputs.push(toConfig('nuxt', cfg));
|
|
154
156
|
else
|
|
155
|
-
inputs.push(isInternal(target) ? toDependency(source) :
|
|
157
|
+
inputs.push(isInternal(target) ? toDependency(source) : toDependency(source, { production: true }));
|
|
156
158
|
}
|
|
157
159
|
for (const layerConfig of findLayerConfigs(cwd)) {
|
|
158
160
|
inputs.push(toConfig('nuxt', layerConfig));
|
|
@@ -162,7 +164,7 @@ const resolveConfig = async (localConfig, options) => {
|
|
|
162
164
|
for (const file of _syncGlob({ cwd, patterns: ['.nuxt/module/*.d.ts'] })) {
|
|
163
165
|
const result = readAndParseFile(file);
|
|
164
166
|
for (const p of collectLocalImportPaths(file, result))
|
|
165
|
-
inputs.push(
|
|
167
|
+
inputs.push(toEntryPath(p, { production: true }));
|
|
166
168
|
}
|
|
167
169
|
const dir = join(cwd, '.nuxt');
|
|
168
170
|
const tsConfig = await loadTSConfig(join(dir, 'tsconfig.json'));
|
package/dist/plugins/nx/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { compact } from '../../util/array.js';
|
|
2
2
|
import { isFile, loadJSON } from '../../util/fs.js';
|
|
3
|
-
import { toConfig,
|
|
3
|
+
import { toConfig, toModule, toEntryPath, toDependency } from '../../util/input.js';
|
|
4
4
|
import { get } from '../../util/object.js';
|
|
5
5
|
import { dirname, isInternal, join, relative, toAbsolute } from '../../util/path.js';
|
|
6
6
|
import { hasDependency } from '../../util/plugin.js';
|
|
@@ -27,7 +27,7 @@ const findNxDependenciesInNxJson = async (localConfig) => {
|
|
|
27
27
|
: [];
|
|
28
28
|
return [
|
|
29
29
|
...compact([...targetsDefault, ...generators]).map(id => toDependency(id)),
|
|
30
|
-
...compact(plugins).map(id => (isInternal(id) ?
|
|
30
|
+
...compact(plugins).map(id => (isInternal(id) ? toModule(id) : toDependency(id))),
|
|
31
31
|
];
|
|
32
32
|
};
|
|
33
33
|
const resolveConfig = async (localConfig, options) => {
|
|
@@ -110,7 +110,7 @@ const resolve = async (options) => {
|
|
|
110
110
|
continue;
|
|
111
111
|
for (const id of [entry.implementation || entry.factory, entry.batchImplementation]) {
|
|
112
112
|
if (typeof id === 'string' && id.length > 0) {
|
|
113
|
-
inputs.push(
|
|
113
|
+
inputs.push(toEntryPath(substringBefore(id, '#'), { dir: dirname(filePath) }));
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { spawningArgs } from '../../binaries/util.js';
|
|
2
|
+
import { toModule } from '../../util/input.js';
|
|
2
3
|
import { hasDependency } from '../../util/plugin.js';
|
|
3
4
|
const title = 'nyc';
|
|
4
5
|
const enablers = ['nyc'];
|
|
@@ -7,7 +8,42 @@ const config = ['.nycrc', '.nycrc.{json,yml,yaml}', 'nyc.config.{js,cjs,mjs}', '
|
|
|
7
8
|
const resolveConfig = config => {
|
|
8
9
|
const extend = config?.extends ?? [];
|
|
9
10
|
const requires = config?.require ?? [];
|
|
10
|
-
return [extend, requires].flat().map(id =>
|
|
11
|
+
return [extend, requires].flat().map(id => toModule(id));
|
|
12
|
+
};
|
|
13
|
+
const commands = new Set(['check-coverage', 'instrument', 'merge', 'report']);
|
|
14
|
+
const args = {
|
|
15
|
+
boolean: [
|
|
16
|
+
'all',
|
|
17
|
+
'auto-wrap',
|
|
18
|
+
'babel-cache',
|
|
19
|
+
'cache',
|
|
20
|
+
'check-coverage',
|
|
21
|
+
'clean',
|
|
22
|
+
'compact',
|
|
23
|
+
'complete-copy',
|
|
24
|
+
'delete',
|
|
25
|
+
'eager',
|
|
26
|
+
'es-modules',
|
|
27
|
+
'exclude-after-remap',
|
|
28
|
+
'exclude-node-modules',
|
|
29
|
+
'exit-on-error',
|
|
30
|
+
'hook-require',
|
|
31
|
+
'hook-run-in-context',
|
|
32
|
+
'hook-run-in-this-context',
|
|
33
|
+
'in-place',
|
|
34
|
+
'instrument',
|
|
35
|
+
'per-file',
|
|
36
|
+
'preserve-comments',
|
|
37
|
+
'produce-source-map',
|
|
38
|
+
'show-process-tree',
|
|
39
|
+
'silent',
|
|
40
|
+
'skip-empty',
|
|
41
|
+
'skip-full',
|
|
42
|
+
'source-map',
|
|
43
|
+
'use-spawn-wrap',
|
|
44
|
+
],
|
|
45
|
+
alias: { all: ['a'], cache: ['c'], silent: ['s'] },
|
|
46
|
+
fromArgs: (parsed, args) => (commands.has(parsed._[0]) ? [] : spawningArgs(parsed, args)),
|
|
11
47
|
};
|
|
12
48
|
const plugin = {
|
|
13
49
|
title,
|
|
@@ -15,5 +51,6 @@ const plugin = {
|
|
|
15
51
|
isEnabled,
|
|
16
52
|
config,
|
|
17
53
|
resolveConfig,
|
|
54
|
+
args,
|
|
18
55
|
};
|
|
19
56
|
export default plugin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toDependency,
|
|
1
|
+
import { toDependency, toEntry } from '../../util/input.js';
|
|
2
2
|
import { hasDependency } from '../../util/plugin.js';
|
|
3
3
|
const title = 'oclif';
|
|
4
4
|
const enablers = ['oclif', '@oclif/core'];
|
|
@@ -8,8 +8,10 @@ const production = ['{,src/}commands/**/*.{js,mjs,cjs,jsx,ts,tsx,mts,cts}'];
|
|
|
8
8
|
const resolveConfig = async (config) => {
|
|
9
9
|
if (!config)
|
|
10
10
|
return [];
|
|
11
|
-
const inputs = production.map(id =>
|
|
12
|
-
for (const id of
|
|
11
|
+
const inputs = production.map(id => toEntry(id, { production: true }));
|
|
12
|
+
for (const id of config.plugins ?? [])
|
|
13
|
+
inputs.push(toDependency(id, { production: true }));
|
|
14
|
+
for (const id of config.devPlugins ?? [])
|
|
13
15
|
inputs.push(toDependency(id));
|
|
14
16
|
return inputs;
|
|
15
17
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { collectPropertyValues } from '../../typescript/ast-helpers.js';
|
|
2
2
|
import { _parseFile } from '../../typescript/ast-nodes.js';
|
|
3
|
-
import {
|
|
3
|
+
import { toEntryPath, toEntry } from '../../util/input.js';
|
|
4
4
|
const title = 'OpenClaw';
|
|
5
5
|
const enablers = 'This plugin is enabled when `package.json#openclaw` is present.';
|
|
6
6
|
const isEnabled = ({ manifest }) => Object.hasOwn(manifest, 'openclaw');
|
|
7
7
|
const config = ['package.json', 'openclaw.plugin.json'];
|
|
8
8
|
const isLoadConfig = ({ configFileName }) => configFileName === 'package.json';
|
|
9
|
-
const toEntries = (value, dir) => (Array.isArray(value) ? value : [value]).flatMap(entry => typeof entry === 'string' ? [
|
|
9
|
+
const toEntries = (value, dir) => (Array.isArray(value) ? value : [value]).flatMap(entry => typeof entry === 'string' ? [toEntryPath(entry, { production: true, dir })] : []);
|
|
10
10
|
const toHookEntries = (value) => (Array.isArray(value) ? value : [value]).flatMap(entry => {
|
|
11
11
|
if (typeof entry !== 'string')
|
|
12
12
|
return [];
|
|
13
13
|
const dir = entry.trim().replace(/\/+$/, '');
|
|
14
|
-
return dir ? [
|
|
14
|
+
return dir ? [toEntry(`${dir}/{handler,index}.{ts,js}`, { production: true })] : [];
|
|
15
15
|
});
|
|
16
16
|
const resolveConfig = (localConfig, options) => {
|
|
17
17
|
if (!localConfig)
|
|
@@ -29,7 +29,7 @@ const resolveConfig = (localConfig, options) => {
|
|
|
29
29
|
...toEntries(localConfig.channel?.configuredState?.specifier, options.cwd),
|
|
30
30
|
...toEntries(localConfig.channel?.persistedAuthState?.specifier, options.cwd),
|
|
31
31
|
...toHookEntries(localConfig.hooks),
|
|
32
|
-
...(localConfig.build?.staticAssets ?? []).flatMap(asset => typeof asset.source === 'string' ? [
|
|
32
|
+
...(localConfig.build?.staticAssets ?? []).flatMap(asset => typeof asset.source === 'string' ? [toEntry(asset.source, { production: true })] : []),
|
|
33
33
|
...assetScriptInputs,
|
|
34
34
|
];
|
|
35
35
|
};
|
|
@@ -38,7 +38,7 @@ const resolveFromAST = (_, options) => {
|
|
|
38
38
|
return [];
|
|
39
39
|
const sourceText = options.readFile(options.configFilePath).replace(/^\uFEFF/, '');
|
|
40
40
|
const { program } = _parseFile(`${options.configFilePath}.ts`, `(${sourceText}\n)`);
|
|
41
|
-
return Array.from(collectPropertyValues(program, 'providerCatalogEntry'), entry =>
|
|
41
|
+
return Array.from(collectPropertyValues(program, 'providerCatalogEntry'), entry => toEntryPath(entry, { production: true, dir: options.cwd }));
|
|
42
42
|
};
|
|
43
43
|
const plugin = {
|
|
44
44
|
title,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toConfig, toDependency,
|
|
1
|
+
import { toConfig, toDependency, toEntryPath } from '../../util/input.js';
|
|
2
2
|
import { dirname, isInternal, toAbsolute } from '../../util/path.js';
|
|
3
3
|
import { hasDependency } from '../../util/plugin.js';
|
|
4
4
|
import { getInputsFromSettings } from '../eslint/helpers.js';
|
|
@@ -17,7 +17,7 @@ const resolveJsPlugins = (jsPlugins, configFilePath) => {
|
|
|
17
17
|
if (!isInternal(specifier))
|
|
18
18
|
inputs.push(toDependency(specifier));
|
|
19
19
|
else
|
|
20
|
-
inputs.push(
|
|
20
|
+
inputs.push(toEntryPath(toAbsolute(specifier, dir)));
|
|
21
21
|
}
|
|
22
22
|
return inputs;
|
|
23
23
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { toModule, toDependency } from '../../util/input.js';
|
|
2
2
|
import { hasDependency } from '../../util/plugin.js';
|
|
3
3
|
const title = 'Panda CSS';
|
|
4
4
|
const enablers = ['@pandacss/dev'];
|
|
@@ -6,7 +6,7 @@ const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
|
6
6
|
const config = ['panda.config.{ts,js,mjs,cjs,mts,cts}'];
|
|
7
7
|
const resolveConfig = config => {
|
|
8
8
|
const presets = (config.presets ?? []).filter((preset) => typeof preset === 'string');
|
|
9
|
-
return [...presets.map(id =>
|
|
9
|
+
return [...presets.map(id => toModule(id)), toDependency('postcss')];
|
|
10
10
|
};
|
|
11
11
|
const args = {
|
|
12
12
|
binaries: ['panda', 'pandacss'],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { toModule } from '../../util/input.js';
|
|
2
2
|
import { hasDependency } from '../../util/plugin.js';
|
|
3
3
|
const title = 'Parcel';
|
|
4
4
|
const enablers = ['parcel', '@parcel/core'];
|
|
@@ -42,7 +42,7 @@ const resolveConfig = async (config) => {
|
|
|
42
42
|
dependencies.push(...extractPlugins(config.reporters));
|
|
43
43
|
if (config.validators)
|
|
44
44
|
dependencies.push(...extractPluginsFromMap(config.validators));
|
|
45
|
-
return dependencies.map(id =>
|
|
45
|
+
return dependencies.map(id => toModule(id));
|
|
46
46
|
};
|
|
47
47
|
const plugin = {
|
|
48
48
|
title,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { toModule } from '../../util/input.js';
|
|
2
2
|
import { hasDependency } from '../../util/plugin.js';
|
|
3
3
|
const title = 'Payload CMS';
|
|
4
4
|
const enablers = ['payload'];
|
|
@@ -8,14 +8,14 @@ const resolveConfig = async (config) => {
|
|
|
8
8
|
const awaitedConfig = await config;
|
|
9
9
|
const importMapFile = awaitedConfig?.admin?.importMap?.importMapFile;
|
|
10
10
|
if (importMapFile) {
|
|
11
|
-
return [
|
|
11
|
+
return [toModule(importMapFile, { optional: true })];
|
|
12
12
|
}
|
|
13
13
|
const adminRoute = awaitedConfig?.routes?.admin ?? '/admin';
|
|
14
14
|
const possibleImportMapPaths = [
|
|
15
15
|
`app/(payload)${adminRoute}/importMap.js`,
|
|
16
16
|
`src/app/(payload)${adminRoute}/importMap.js`,
|
|
17
17
|
];
|
|
18
|
-
return possibleImportMapPaths.map(id =>
|
|
18
|
+
return possibleImportMapPaths.map(id => toModule(id, { optional: true }));
|
|
19
19
|
};
|
|
20
20
|
const project = ['!migrations/**', '!src/migrations/**', '!payload-types.ts', '!src/payload-types.ts'];
|
|
21
21
|
const plugin = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { arrayify } from '../../util/array.js';
|
|
2
|
-
import {
|
|
2
|
+
import { toModule, toEntryPath, toEntry } from '../../util/input.js';
|
|
3
3
|
import { join, toAbsolute } from '../../util/path.js';
|
|
4
4
|
import { hasDependency } from '../../util/plugin.js';
|
|
5
5
|
const title = 'Playwright';
|
|
@@ -18,9 +18,9 @@ export const resolveConfig = async (localConfig, options) => {
|
|
|
18
18
|
const { configFileDir } = options;
|
|
19
19
|
const inputs = [];
|
|
20
20
|
for (const id of arrayify(localConfig.globalSetup))
|
|
21
|
-
inputs.push(
|
|
21
|
+
inputs.push(toEntryPath(toAbsolute(id, configFileDir)));
|
|
22
22
|
for (const id of arrayify(localConfig.globalTeardown))
|
|
23
|
-
inputs.push(
|
|
23
|
+
inputs.push(toEntryPath(toAbsolute(id, configFileDir)));
|
|
24
24
|
for (const server of [localConfig.webServer].flat()) {
|
|
25
25
|
if (!server?.command)
|
|
26
26
|
continue;
|
|
@@ -42,7 +42,7 @@ export const resolveConfig = async (localConfig, options) => {
|
|
|
42
42
|
});
|
|
43
43
|
return projects
|
|
44
44
|
.flatMap(config => toEntryPatterns(config.testMatch ?? entry, configFileDir, config, localConfig))
|
|
45
|
-
.concat(reporters.map(id =>
|
|
45
|
+
.concat(reporters.map(id => toModule(id)))
|
|
46
46
|
.concat(inputs);
|
|
47
47
|
};
|
|
48
48
|
const args = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { toEntryPath } from '../../util/input.js';
|
|
2
2
|
import { isInternal } from '../../util/path.js';
|
|
3
3
|
import { hasDependency } from '../../util/plugin.js';
|
|
4
4
|
const title = 'pm2';
|
|
@@ -7,7 +7,7 @@ const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
|
7
7
|
const config = ['pm2.config.{json,js,cjs,mjs}', 'ecosystem.config.{json,js,cjs,mjs}'];
|
|
8
8
|
const addApplicationEntry = (application, entries, cwd) => {
|
|
9
9
|
if (application.script && isInternal(application.script))
|
|
10
|
-
entries.push(
|
|
10
|
+
entries.push(toEntryPath(application.script, { dir: cwd }));
|
|
11
11
|
};
|
|
12
12
|
const resolveConfig = (config, { cwd }) => {
|
|
13
13
|
const entries = [];
|
|
@@ -7,7 +7,7 @@ const isRootOnly = true;
|
|
|
7
7
|
const entry = ['.pnpmfile.{cjs,mjs}'];
|
|
8
8
|
const config = ['package.json', 'pnpm-workspace.yaml'];
|
|
9
9
|
const resolveConfig = config => {
|
|
10
|
-
const inputs = entry.map(toEntry);
|
|
10
|
+
const inputs = entry.map(id => toEntry(id));
|
|
11
11
|
const packageExtensions = config?.pnpm?.packageExtensions || config?.packageExtensions;
|
|
12
12
|
if (packageExtensions) {
|
|
13
13
|
for (const extension of Object.values(packageExtensions)) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { toModule, toDependency } from '../../util/input.js';
|
|
2
2
|
import { hasDependency } from '../../util/plugin.js';
|
|
3
3
|
import { toLilconfig } from '../../util/plugin-config.js';
|
|
4
4
|
const title = 'PostCSS';
|
|
@@ -23,7 +23,7 @@ const resolveConfig = config => {
|
|
|
23
23
|
return [];
|
|
24
24
|
})
|
|
25
25
|
: [];
|
|
26
|
-
const inputs = plugins.map(id =>
|
|
26
|
+
const inputs = plugins.map(id => toModule(id));
|
|
27
27
|
if (plugins.includes('tailwindcss')) {
|
|
28
28
|
return [...inputs, toDependency('postcss')];
|
|
29
29
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { toEntry } from '../../util/input.js';
|
|
2
2
|
import { join } from '../../util/path.js';
|
|
3
3
|
import { hasDependency } from '../../util/plugin.js';
|
|
4
4
|
const title = 'Preconstruct';
|
|
@@ -6,7 +6,7 @@ const enablers = ['@preconstruct/cli'];
|
|
|
6
6
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
7
7
|
const config = ['package.json'];
|
|
8
8
|
const resolveConfig = async (config) => {
|
|
9
|
-
return (config.entrypoints ?? []).map(id =>
|
|
9
|
+
return (config.entrypoints ?? []).map(id => toEntry(join('src', id), { production: true, allowIncludeExports: true }));
|
|
10
10
|
};
|
|
11
11
|
const plugin = {
|
|
12
12
|
title,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { toModule, toDependency } from '../../util/input.js';
|
|
2
2
|
import { isInternal } from '../../util/path.js';
|
|
3
3
|
import { hasDependency } from '../../util/plugin.js';
|
|
4
4
|
const title = 'Prettier';
|
|
@@ -12,13 +12,13 @@ const config = [
|
|
|
12
12
|
];
|
|
13
13
|
const resolveConfig = config => {
|
|
14
14
|
if (typeof config === 'string')
|
|
15
|
-
return [
|
|
15
|
+
return [toModule(config)];
|
|
16
16
|
const result = new Set();
|
|
17
17
|
const processOptions = (options) => {
|
|
18
18
|
if (Array.isArray(options.plugins)) {
|
|
19
19
|
for (const plugin of options.plugins) {
|
|
20
20
|
if (typeof plugin === 'string') {
|
|
21
|
-
result.add(isInternal(plugin) ?
|
|
21
|
+
result.add(isInternal(plugin) ? toModule(plugin) : toDependency(plugin));
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -35,6 +35,7 @@ const resolveConfig = config => {
|
|
|
35
35
|
};
|
|
36
36
|
const args = {
|
|
37
37
|
config: ['config'],
|
|
38
|
+
resolve: ['plugin'],
|
|
38
39
|
};
|
|
39
40
|
const isFilterTransitiveDependencies = true;
|
|
40
41
|
const plugin = {
|