knip 6.4.0 → 6.5.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/CacheConsultant.js +3 -3
- package/dist/CatalogCounselor.js +5 -5
- package/dist/ConfigurationChief.d.ts +31 -13
- package/dist/ConfigurationChief.js +15 -15
- package/dist/DependencyDeputy.d.ts +1 -1
- package/dist/DependencyDeputy.js +5 -5
- package/dist/IssueCollector.js +3 -3
- package/dist/IssueFixer.js +5 -5
- package/dist/JsonCatalogPeeker.js +1 -1
- package/dist/ProjectPrincipal.js +13 -13
- package/dist/WorkspaceWorker.d.ts +1 -1
- package/dist/WorkspaceWorker.js +21 -26
- package/dist/YamlCatalogPeeker.js +1 -1
- package/dist/binaries/bash-parser.js +10 -10
- package/dist/binaries/fallback.js +3 -3
- package/dist/binaries/index.js +3 -3
- package/dist/binaries/plugins.js +6 -6
- package/dist/binaries/resolvers/bun.js +4 -4
- package/dist/binaries/resolvers/bunx.js +4 -4
- package/dist/binaries/resolvers/find.js +1 -1
- package/dist/binaries/resolvers/index.js +8 -8
- package/dist/binaries/resolvers/npx.js +4 -4
- package/dist/binaries/resolvers/pnpm.js +3 -3
- package/dist/binaries/resolvers/pnpx.js +2 -2
- package/dist/binaries/resolvers/yarn.js +4 -4
- package/dist/cli.js +10 -10
- package/dist/compilers/index.d.ts +52 -22
- package/dist/compilers/index.js +2 -2
- package/dist/compilers/mdx.js +1 -1
- package/dist/compilers/scss.js +1 -1
- package/dist/constants.d.ts +25 -25
- package/dist/constants.js +1 -1
- package/dist/graph/analyze.js +7 -7
- package/dist/graph/build.d.ts +2 -2
- package/dist/graph/build.js +17 -17
- package/dist/graph-explorer/constants.d.ts +5 -5
- package/dist/graph-explorer/explorer.js +9 -9
- package/dist/graph-explorer/operations/build-exports-tree.js +2 -2
- package/dist/graph-explorer/operations/get-contention.js +3 -3
- package/dist/graph-explorer/operations/get-dependency-usage.js +1 -1
- package/dist/graph-explorer/operations/get-usage.js +5 -5
- package/dist/graph-explorer/operations/has-strictly-ns-references.js +1 -1
- package/dist/graph-explorer/operations/is-referenced.js +2 -2
- package/dist/graph-explorer/operations/resolve-definition.js +3 -3
- package/dist/graph-explorer/utils.d.ts +1 -1
- package/dist/graph-explorer/utils.js +2 -2
- package/dist/graph-explorer/visitors.js +1 -1
- package/dist/graph-explorer/walk-down.js +2 -2
- package/dist/graph-explorer/walk-up.js +2 -2
- package/dist/index.js +2 -2
- package/dist/manifest/helpers.js +2 -2
- package/dist/manifest/index.js +3 -3
- package/dist/plugins/_template/index.js +2 -2
- package/dist/plugins/angular/index.js +4 -4
- package/dist/plugins/astro/compiler-mdx.js +1 -1
- package/dist/plugins/astro/compiler.js +1 -1
- package/dist/plugins/astro/index.js +5 -5
- package/dist/plugins/astro/resolveFromAST.js +1 -1
- package/dist/plugins/astro-db/index.js +1 -1
- package/dist/plugins/astro-og-canvas/index.js +2 -2
- package/dist/plugins/ava/index.js +2 -2
- package/dist/plugins/babel/helpers.d.ts +44 -6
- package/dist/plugins/babel/helpers.js +1 -1
- package/dist/plugins/babel/index.js +4 -4
- package/dist/plugins/biome/index.js +4 -4
- package/dist/plugins/bumpp/index.js +2 -2
- package/dist/plugins/bun/index.js +3 -1
- package/dist/plugins/c8/index.js +1 -1
- package/dist/plugins/capacitor/index.js +3 -3
- package/dist/plugins/changelogen/index.js +2 -2
- package/dist/plugins/changelogithub/index.js +2 -2
- package/dist/plugins/changesets/index.js +3 -3
- package/dist/plugins/commitizen/index.js +2 -2
- package/dist/plugins/commitlint/index.js +3 -3
- package/dist/plugins/convex/index.js +1 -1
- package/dist/plugins/create-typescript-app/index.js +1 -1
- package/dist/plugins/cspell/index.js +2 -2
- package/dist/plugins/cucumber/index.js +2 -2
- package/dist/plugins/cypress/helpers.js +2 -2
- package/dist/plugins/cypress/index.js +3 -3
- package/dist/plugins/danger/index.js +1 -1
- package/dist/plugins/dependency-cruiser/index.js +1 -1
- package/dist/plugins/docusaurus/helpers.js +2 -2
- package/dist/plugins/docusaurus/index.js +4 -4
- package/dist/plugins/dotenv/index.js +1 -1
- package/dist/plugins/drizzle/index.js +2 -2
- package/dist/plugins/eleventy/index.js +6 -6
- package/dist/plugins/eslint/helpers.js +5 -5
- package/dist/plugins/eslint/index.js +4 -4
- package/dist/plugins/eslint/resolveFromAST.js +3 -3
- package/dist/plugins/execa/index.js +2 -2
- package/dist/plugins/execa/visitors/execa.js +1 -1
- package/dist/plugins/expo/helpers.d.ts +3 -3
- package/dist/plugins/expo/helpers.js +3 -3
- package/dist/plugins/expo/index.js +4 -4
- package/dist/plugins/expressive-code/index.js +1 -1
- package/dist/plugins/gatsby/index.js +2 -2
- package/dist/plugins/github-action/index.js +4 -4
- package/dist/plugins/github-actions/index.js +4 -4
- package/dist/plugins/graphql-codegen/index.js +5 -5
- package/dist/plugins/hardhat/index.js +2 -2
- package/dist/plugins/husky/index.js +3 -3
- package/dist/plugins/i18next-parser/index.js +1 -1
- package/dist/plugins/index.d.ts +3 -0
- package/dist/plugins/index.js +150 -144
- package/dist/plugins/jest/helpers.js +2 -2
- package/dist/plugins/jest/index.js +4 -4
- package/dist/plugins/karma/helpers.d.ts +1 -1
- package/dist/plugins/karma/helpers.js +2 -2
- package/dist/plugins/karma/index.js +4 -4
- package/dist/plugins/knex/index.js +3 -3
- package/dist/plugins/ladle/index.js +4 -4
- package/dist/plugins/lefthook/index.js +5 -5
- package/dist/plugins/lint-staged/index.js +2 -2
- package/dist/plugins/linthtml/index.js +3 -3
- package/dist/plugins/lockfile-lint/index.js +2 -2
- package/dist/plugins/lost-pixel/index.js +1 -1
- package/dist/plugins/markdownlint/index.js +3 -3
- package/dist/plugins/mdx/index.js +2 -2
- package/dist/plugins/mdxlint/index.js +3 -3
- package/dist/plugins/metro/index.js +4 -4
- package/dist/plugins/mocha/index.js +2 -2
- package/dist/plugins/moonrepo/index.js +1 -1
- package/dist/plugins/msw/index.js +3 -3
- package/dist/plugins/nano-staged/index.js +1 -1
- package/dist/plugins/nest/index.js +2 -2
- package/dist/plugins/netlify/index.js +4 -4
- package/dist/plugins/next/index.js +3 -3
- package/dist/plugins/next/resolveFromAST.js +1 -1
- package/dist/plugins/next-intl/index.js +1 -1
- package/dist/plugins/next-mdx/index.js +3 -3
- package/dist/plugins/next-mdx/resolveFromAST.js +1 -1
- package/dist/plugins/nitro/index.js +3 -3
- package/dist/plugins/node/index.js +1 -1
- package/dist/plugins/node-modules-inspector/index.js +2 -2
- package/dist/plugins/npm-package-json-lint/index.js +3 -3
- package/dist/plugins/nuxt/helpers.js +3 -3
- package/dist/plugins/nuxt/index.js +10 -11
- package/dist/plugins/nx/index.js +4 -4
- package/dist/plugins/nyc/index.js +2 -2
- package/dist/plugins/oclif/index.js +2 -2
- package/dist/plugins/openapi-ts/index.js +2 -2
- package/dist/plugins/oxfmt/index.js +1 -1
- package/dist/plugins/oxlint/index.js +3 -3
- package/dist/plugins/panda-css/index.js +2 -2
- package/dist/plugins/parcel/index.js +2 -2
- package/dist/plugins/payload/index.js +2 -2
- package/dist/plugins/pino/index.d.ts +3 -0
- package/dist/plugins/pino/index.js +15 -0
- package/dist/plugins/pino/visitors/transportCall.d.ts +2 -0
- package/dist/plugins/pino/visitors/transportCall.js +87 -0
- package/dist/plugins/playwright/index.js +4 -4
- package/dist/plugins/playwright-ct/index.js +3 -3
- package/dist/plugins/playwright-test/index.js +1 -1
- package/dist/plugins/plop/index.js +1 -1
- package/dist/plugins/pm2/index.js +3 -3
- package/dist/plugins/pnpm/index.js +1 -1
- package/dist/plugins/postcss/index.js +3 -3
- package/dist/plugins/preconstruct/index.js +3 -3
- package/dist/plugins/prettier/index.js +6 -2
- package/dist/plugins/prisma/index.js +5 -5
- package/dist/plugins/qwik/index.js +5 -5
- package/dist/plugins/qwik/resolveFromAST.js +1 -1
- package/dist/plugins/raycast/index.js +3 -3
- package/dist/plugins/react-cosmos/index.js +3 -3
- package/dist/plugins/react-email/index.d.ts +3 -0
- package/dist/plugins/react-email/index.js +26 -0
- package/dist/plugins/react-native/index.js +2 -2
- package/dist/plugins/react-router/index.js +6 -10
- package/dist/plugins/relay/index.js +3 -3
- package/dist/plugins/release-it/index.js +2 -2
- package/dist/plugins/remark/index.js +3 -3
- package/dist/plugins/remix/index.js +1 -1
- package/dist/plugins/rolldown/index.js +3 -3
- package/dist/plugins/rolldown/resolveFromAST.js +1 -1
- package/dist/plugins/rollup/index.js +3 -3
- package/dist/plugins/rollup/resolveFromAST.js +1 -1
- package/dist/plugins/rsbuild/index.js +2 -2
- package/dist/plugins/rslib/index.js +1 -1
- package/dist/plugins/rspack/index.js +2 -2
- package/dist/plugins/rstest/index.js +2 -2
- package/dist/plugins/sanity/index.js +1 -1
- package/dist/plugins/semantic-release/index.js +3 -3
- package/dist/plugins/sentry/index.js +1 -1
- package/dist/plugins/serverless-framework/index.d.ts +3 -0
- package/dist/plugins/serverless-framework/index.js +23 -0
- package/dist/plugins/serverless-framework/types.d.ts +7 -0
- package/dist/plugins/serverless-framework/types.js +1 -0
- package/dist/plugins/simple-git-hooks/index.js +2 -2
- package/dist/plugins/size-limit/index.js +3 -3
- package/dist/plugins/sst/index.js +2 -2
- package/dist/plugins/sst/resolveFromAST.js +5 -5
- package/dist/plugins/starlight/index.js +4 -4
- package/dist/plugins/starlight/resolveFromAST.js +1 -1
- package/dist/plugins/stencil/index.js +3 -3
- package/dist/plugins/storybook/index.js +3 -3
- package/dist/plugins/stryker/index.js +2 -2
- package/dist/plugins/stylelint/index.js +3 -3
- package/dist/plugins/svelte/compiler.js +1 -1
- package/dist/plugins/svelte/index.js +3 -3
- package/dist/plugins/sveltekit/index.js +3 -3
- package/dist/plugins/svgo/index.js +1 -1
- package/dist/plugins/svgr/index.js +2 -2
- package/dist/plugins/swc/index.js +3 -3
- package/dist/plugins/syncpack/index.js +2 -2
- package/dist/plugins/tailwind/index.js +2 -2
- package/dist/plugins/tanstack-router/index.js +3 -3
- package/dist/plugins/taskfile/index.js +3 -3
- package/dist/plugins/travis/index.js +1 -1
- package/dist/plugins/tsdown/index.js +3 -3
- package/dist/plugins/tsdown/resolveFromAST.js +1 -1
- package/dist/plugins/tsup/index.js +3 -3
- package/dist/plugins/tsup/resolveFromAST.js +1 -1
- package/dist/plugins/tsx/index.js +2 -2
- package/dist/plugins/typedoc/index.js +2 -2
- package/dist/plugins/typescript/index.js +4 -4
- package/dist/plugins/unbuild/index.js +2 -2
- package/dist/plugins/unocss/index.js +2 -2
- package/dist/plugins/vercel-og/index.js +1 -1
- package/dist/plugins/vike/index.js +1 -1
- package/dist/plugins/vite/helpers.js +4 -4
- package/dist/plugins/vite/index.js +5 -5
- package/dist/plugins/vite/visitors/importMetaGlob.js +4 -4
- package/dist/plugins/vitepress/index.js +1 -1
- package/dist/plugins/vitest/helpers.d.ts +1 -1
- package/dist/plugins/vitest/index.js +7 -7
- package/dist/plugins/vue/compiler.js +1 -1
- package/dist/plugins/vue/index.js +4 -4
- package/dist/plugins/webdriver-io/index.js +2 -2
- package/dist/plugins/webpack/index.js +5 -5
- package/dist/plugins/webpack/visitors/requireContext.js +6 -7
- package/dist/plugins/wireit/index.js +1 -1
- package/dist/plugins/wrangler/index.js +2 -2
- package/dist/plugins/xo/index.js +2 -2
- package/dist/plugins/yarn/index.js +2 -2
- package/dist/plugins/yorkie/index.js +2 -2
- package/dist/plugins/zx/index.js +2 -2
- package/dist/plugins.js +2 -2
- package/dist/reporters/codeclimate.js +2 -2
- package/dist/reporters/codeowners.js +3 -3
- package/dist/reporters/compact.js +1 -1
- package/dist/reporters/disclosure.js +1 -1
- package/dist/reporters/github-actions.js +4 -4
- package/dist/reporters/index.js +8 -8
- package/dist/reporters/json.js +4 -4
- package/dist/reporters/markdown.js +2 -2
- package/dist/reporters/symbols.js +2 -2
- package/dist/reporters/trace.js +4 -4
- package/dist/reporters/util/configuration-hints.d.ts +2 -2
- package/dist/reporters/util/configuration-hints.js +7 -10
- package/dist/reporters/util/util.d.ts +3 -3
- package/dist/reporters/util/util.js +3 -3
- package/dist/reporters/watch.js +3 -3
- package/dist/run.js +14 -14
- package/dist/schema/configuration.d.ts +74 -31
- package/dist/schema/configuration.js +2 -2
- package/dist/schema/plugins.d.ts +15 -0
- package/dist/schema/plugins.js +3 -0
- package/dist/session/build-maps.js +3 -3
- package/dist/session/file-descriptor.js +3 -3
- package/dist/session/index.js +7 -7
- package/dist/session/package-json-descriptor.js +1 -1
- package/dist/session/session.js +3 -3
- package/dist/types/PluginNames.d.ts +2 -2
- package/dist/types/PluginNames.js +3 -0
- package/dist/types/issues.d.ts +1 -1
- package/dist/typescript/SourceFileManager.js +3 -3
- package/dist/typescript/ast-helpers.js +2 -2
- package/dist/typescript/comments.js +1 -1
- package/dist/typescript/follow-imports.js +2 -2
- package/dist/typescript/get-imports-and-exports.js +10 -10
- package/dist/typescript/resolve-module-names.js +5 -5
- package/dist/typescript/visitors/calls.js +3 -3
- package/dist/typescript/visitors/exports.js +4 -4
- package/dist/typescript/visitors/helpers.js +3 -3
- package/dist/typescript/visitors/imports.js +4 -4
- package/dist/typescript/visitors/members.js +4 -4
- package/dist/typescript/visitors/walk.js +9 -9
- package/dist/util/Performance.d.ts +1 -1
- package/dist/util/Performance.js +2 -2
- package/dist/util/catalog.js +3 -3
- package/dist/util/codeowners.js +4 -4
- package/dist/util/create-input-handler.js +6 -6
- package/dist/util/create-options.d.ts +62 -33
- package/dist/util/create-options.js +14 -15
- package/dist/util/create-workspace-graph.js +1 -1
- package/dist/util/file-entry-cache.js +4 -4
- package/dist/util/fs.js +2 -2
- package/dist/util/get-included-issue-types.js +2 -2
- package/dist/util/git.js +1 -1
- package/dist/util/glob-cache.js +4 -4
- package/dist/util/glob-core.d.ts +3 -3
- package/dist/util/glob-core.js +62 -50
- package/dist/util/glob.d.ts +1 -1
- package/dist/util/glob.js +14 -7
- package/dist/util/input.js +1 -1
- package/dist/util/issue-initializers.js +1 -1
- package/dist/util/jiti.js +1 -1
- package/dist/util/load-config.js +3 -3
- package/dist/util/load-tsconfig.js +62 -50
- package/dist/util/loader.js +5 -5
- package/dist/util/map-workspaces.js +6 -6
- package/dist/util/modules.js +2 -2
- package/dist/util/package-name.js +1 -1
- package/dist/util/parse-and-convert-gitignores.d.ts +4 -2
- package/dist/util/parse-and-convert-gitignores.js +19 -7
- package/dist/util/plugin.js +5 -5
- package/dist/util/remove-export.js +1 -1
- package/dist/util/reporter.js +3 -3
- package/dist/util/require.js +1 -1
- package/dist/util/resolve.js +3 -3
- package/dist/util/string.d.ts +1 -1
- package/dist/util/table.js +1 -1
- package/dist/util/tag.js +1 -1
- package/dist/util/to-source-path.d.ts +1 -1
- package/dist/util/to-source-path.js +10 -9
- package/dist/util/watch.js +8 -8
- package/dist/util/workspace-file-filter.js +2 -2
- package/dist/util/workspace-selectors.js +4 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +11 -17
- package/schema.json +13 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toDependency, toProductionEntry } from
|
|
2
|
-
import { hasDependency } from
|
|
3
|
-
import { getMdxPlugins } from
|
|
1
|
+
import { toDependency, toProductionEntry } from '../../util/input.js';
|
|
2
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
3
|
+
import { getMdxPlugins } from './resolveFromAST.js';
|
|
4
4
|
const title = 'Next.js MDX';
|
|
5
5
|
const enablers = ['@next/mdx'];
|
|
6
6
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Visitor } from 'oxc-parser';
|
|
2
|
-
import { findProperty, getDefaultImportName, getImportMap, getStringValues } from
|
|
2
|
+
import { findProperty, getDefaultImportName, getImportMap, getStringValues } from '../../typescript/ast-helpers.js';
|
|
3
3
|
export const getMdxPlugins = (program) => {
|
|
4
4
|
const plugins = new Set();
|
|
5
5
|
const importMap = getImportMap(program);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toDependency, toProductionEntry } from
|
|
2
|
-
import { join } from
|
|
3
|
-
import { hasDependency } from
|
|
1
|
+
import { toDependency, toProductionEntry } from '../../util/input.js';
|
|
2
|
+
import { join } from '../../util/path.js';
|
|
3
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
4
4
|
const title = 'Nitro';
|
|
5
5
|
const enablers = ['nitropack', 'nitro'];
|
|
6
6
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { hasDependency } from
|
|
2
|
-
import { toUnconfig } from
|
|
1
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
2
|
+
import { toUnconfig } from '../../util/plugin-config.js';
|
|
3
3
|
const title = 'node-modules-inspector';
|
|
4
4
|
const enablers = ['node-modules-inspector'];
|
|
5
5
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toDependency } from
|
|
2
|
-
import { hasDependency } from
|
|
3
|
-
import { toCosmiconfig } from
|
|
1
|
+
import { toDependency } from '../../util/input.js';
|
|
2
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
3
|
+
import { toCosmiconfig } from '../../util/plugin-config.js';
|
|
4
4
|
const title = 'npm-package-json-lint';
|
|
5
5
|
const enablers = ['npm-package-json-lint'];
|
|
6
6
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { readFileSync } from 'node:fs';
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { Visitor } from 'oxc-parser';
|
|
4
|
-
import { scriptBodies } from
|
|
5
|
-
import { parseFile } from
|
|
6
|
-
import { basename, dirname, isInNodeModules, join } from
|
|
4
|
+
import { scriptBodies } from '../../compilers/compilers.js';
|
|
5
|
+
import { parseFile } from '../../typescript/visitors/helpers.js';
|
|
6
|
+
import { basename, dirname, isInNodeModules, join } from '../../util/path.js';
|
|
7
7
|
export const getVueSfc = (cwd) => {
|
|
8
8
|
try {
|
|
9
9
|
return createRequire(join(cwd, 'package.json'))('vue/compiler-sfc');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { isDirectory } from
|
|
2
|
-
import { _syncGlob } from
|
|
3
|
-
import { toAlias, toConfig, toDeferResolveProductionEntry, toDependency, toEntry, toIgnore, toProductionEntry, } from
|
|
4
|
-
import { loadTSConfig } from
|
|
5
|
-
import { join } from
|
|
6
|
-
import { hasDependency } from
|
|
7
|
-
import { buildAutoImportMap, collectIdentifiers, collectLocalImportPaths, collectTemplateInfo, getVueSfc, readAndParseFile, toKebabCase, } from
|
|
1
|
+
import { isDirectory } from '../../util/fs.js';
|
|
2
|
+
import { _syncGlob } from '../../util/glob.js';
|
|
3
|
+
import { toAlias, toConfig, toDeferResolveProductionEntry, toDependency, toEntry, toIgnore, toProductionEntry, } from '../../util/input.js';
|
|
4
|
+
import { loadTSConfig } from '../../util/load-tsconfig.js';
|
|
5
|
+
import { join } from '../../util/path.js';
|
|
6
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
7
|
+
import { buildAutoImportMap, collectIdentifiers, collectLocalImportPaths, collectTemplateInfo, getVueSfc, readAndParseFile, toKebabCase, } from './helpers.js';
|
|
8
8
|
const title = 'Nuxt';
|
|
9
9
|
const enablers = ['nuxt', 'nuxt-nightly'];
|
|
10
10
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -166,7 +166,7 @@ const resolveConfig = async (localConfig, options) => {
|
|
|
166
166
|
const configs = _syncGlob({ cwd: resolved, patterns: config });
|
|
167
167
|
if (configs.length > 0)
|
|
168
168
|
for (const cfg of configs)
|
|
169
|
-
inputs.push(toConfig('nuxt',
|
|
169
|
+
inputs.push(toConfig('nuxt', cfg));
|
|
170
170
|
else
|
|
171
171
|
inputs.push(toDependency(ext));
|
|
172
172
|
}
|
|
@@ -176,9 +176,8 @@ const resolveConfig = async (localConfig, options) => {
|
|
|
176
176
|
if (cwd !== options.cwd)
|
|
177
177
|
return inputs;
|
|
178
178
|
for (const file of _syncGlob({ cwd, patterns: ['.nuxt/module/*.d.ts'] })) {
|
|
179
|
-
const
|
|
180
|
-
const
|
|
181
|
-
for (const p of collectLocalImportPaths(fp, result))
|
|
179
|
+
const result = readAndParseFile(file);
|
|
180
|
+
for (const p of collectLocalImportPaths(file, result))
|
|
182
181
|
inputs.push(toProductionEntry(p));
|
|
183
182
|
}
|
|
184
183
|
const dir = join(cwd, '.nuxt');
|
package/dist/plugins/nx/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { compact } from
|
|
2
|
-
import { toConfig, toDependency } from
|
|
3
|
-
import { join } from
|
|
4
|
-
import { hasDependency } from
|
|
1
|
+
import { compact } from '../../util/array.js';
|
|
2
|
+
import { toConfig, toDependency } from '../../util/input.js';
|
|
3
|
+
import { join } from '../../util/path.js';
|
|
4
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
5
5
|
const title = 'Nx';
|
|
6
6
|
const enablers = ['nx', /^@nrwl\//, /^@nx\//];
|
|
7
7
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toDeferResolve } from
|
|
2
|
-
import { hasDependency } from
|
|
1
|
+
import { toDeferResolve } from '../../util/input.js';
|
|
2
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
3
3
|
const title = 'nyc';
|
|
4
4
|
const enablers = ['nyc'];
|
|
5
5
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toDependency } from
|
|
2
|
-
import { hasDependency } from
|
|
1
|
+
import { toDependency } from '../../util/input.js';
|
|
2
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
3
3
|
const title = 'oclif';
|
|
4
4
|
const enablers = ['oclif'];
|
|
5
5
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { hasDependency } from
|
|
2
|
-
import { toC12config } from
|
|
1
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
2
|
+
import { toC12config } from '../../util/plugin-config.js';
|
|
3
3
|
const title = 'openapi-ts';
|
|
4
4
|
const enablers = ['@hey-api/openapi-ts'];
|
|
5
5
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toDependency, toEntry } from
|
|
2
|
-
import { isInternal } from
|
|
3
|
-
import { hasDependency } from
|
|
1
|
+
import { toDependency, toEntry } from '../../util/input.js';
|
|
2
|
+
import { isInternal } from '../../util/path.js';
|
|
3
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
4
4
|
const title = 'Oxlint';
|
|
5
5
|
const enablers = ['oxlint'];
|
|
6
6
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toDeferResolve, toDependency } from
|
|
2
|
-
import { hasDependency } from
|
|
1
|
+
import { toDeferResolve, toDependency } from '../../util/input.js';
|
|
2
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
3
3
|
const title = 'Panda CSS';
|
|
4
4
|
const enablers = ['@pandacss/dev'];
|
|
5
5
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toDeferResolve } from
|
|
2
|
-
import { hasDependency } from
|
|
1
|
+
import { toDeferResolve } from '../../util/input.js';
|
|
2
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
3
3
|
const title = 'Parcel';
|
|
4
4
|
const enablers = ['parcel', '@parcel/core'];
|
|
5
5
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toDeferResolve } from
|
|
2
|
-
import { hasDependency } from
|
|
1
|
+
import { toDeferResolve } from '../../util/input.js';
|
|
2
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
3
3
|
const title = 'Payload CMS';
|
|
4
4
|
const enablers = ['payload'];
|
|
5
5
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
2
|
+
import { createPinoTransportVisitor } from './visitors/transportCall.js';
|
|
3
|
+
const title = 'pino';
|
|
4
|
+
const enablers = ['pino'];
|
|
5
|
+
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
6
|
+
const registerVisitors = ({ ctx, registerVisitor }) => {
|
|
7
|
+
registerVisitor(createPinoTransportVisitor(ctx));
|
|
8
|
+
};
|
|
9
|
+
const plugin = {
|
|
10
|
+
title,
|
|
11
|
+
enablers,
|
|
12
|
+
isEnabled,
|
|
13
|
+
registerVisitors,
|
|
14
|
+
};
|
|
15
|
+
export default plugin;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { IMPORT_FLAGS } from '../../../constants.js';
|
|
2
|
+
import { getStringValue, isStringLiteral } from '../../../typescript/visitors/helpers.js';
|
|
3
|
+
import { isInternal } from '../../../util/path.js';
|
|
4
|
+
const PINO = 'pino';
|
|
5
|
+
export function createPinoTransportVisitor(ctx) {
|
|
6
|
+
let pinoName;
|
|
7
|
+
let transportName;
|
|
8
|
+
const addTarget = (specifier, pos) => {
|
|
9
|
+
ctx.addImport(specifier, pos, isInternal(specifier) ? IMPORT_FLAGS.ENTRY : IMPORT_FLAGS.NONE);
|
|
10
|
+
};
|
|
11
|
+
const collectTargets = (obj) => {
|
|
12
|
+
for (const prop of obj.properties) {
|
|
13
|
+
if (prop.type !== 'Property' || prop.computed || prop.key.type !== 'Identifier')
|
|
14
|
+
continue;
|
|
15
|
+
const key = prop.key.name;
|
|
16
|
+
if (key === 'target' && isStringLiteral(prop.value)) {
|
|
17
|
+
addTarget(getStringValue(prop.value), prop.value.start);
|
|
18
|
+
}
|
|
19
|
+
else if ((key === 'targets' || key === 'pipeline') && prop.value.type === 'ArrayExpression') {
|
|
20
|
+
for (const el of prop.value.elements) {
|
|
21
|
+
if (el?.type === 'ObjectExpression')
|
|
22
|
+
collectTargets(el);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
return {
|
|
28
|
+
Program() {
|
|
29
|
+
pinoName = undefined;
|
|
30
|
+
transportName = undefined;
|
|
31
|
+
},
|
|
32
|
+
ImportDeclaration(node) {
|
|
33
|
+
if (!isStringLiteral(node.source) || getStringValue(node.source) !== PINO)
|
|
34
|
+
return;
|
|
35
|
+
for (const spec of node.specifiers ?? []) {
|
|
36
|
+
if (spec.type === 'ImportDefaultSpecifier') {
|
|
37
|
+
pinoName = spec.local.name;
|
|
38
|
+
}
|
|
39
|
+
else if (spec.type === 'ImportSpecifier') {
|
|
40
|
+
if (spec.imported.type === 'Identifier' && spec.imported.name === 'transport') {
|
|
41
|
+
transportName = spec.local.name;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
VariableDeclarator(node) {
|
|
47
|
+
if (node.id.type !== 'Identifier' ||
|
|
48
|
+
node.init?.type !== 'CallExpression' ||
|
|
49
|
+
node.init.callee.type !== 'Identifier' ||
|
|
50
|
+
node.init.callee.name !== 'require' ||
|
|
51
|
+
!isStringLiteral(node.init.arguments[0]) ||
|
|
52
|
+
getStringValue(node.init.arguments[0]) !== PINO)
|
|
53
|
+
return;
|
|
54
|
+
pinoName ??= node.id.name;
|
|
55
|
+
},
|
|
56
|
+
CallExpression(node) {
|
|
57
|
+
if (!pinoName && !transportName)
|
|
58
|
+
return;
|
|
59
|
+
const callee = node.callee;
|
|
60
|
+
const arg = node.arguments[0];
|
|
61
|
+
if (arg?.type !== 'ObjectExpression')
|
|
62
|
+
return;
|
|
63
|
+
const isPinoTransport = callee.type === 'MemberExpression' &&
|
|
64
|
+
!callee.computed &&
|
|
65
|
+
callee.object.type === 'Identifier' &&
|
|
66
|
+
callee.object.name === pinoName &&
|
|
67
|
+
callee.property.type === 'Identifier' &&
|
|
68
|
+
callee.property.name === 'transport';
|
|
69
|
+
const isNamedTransport = callee.type === 'Identifier' && transportName !== undefined && callee.name === transportName;
|
|
70
|
+
if (isPinoTransport || isNamedTransport) {
|
|
71
|
+
collectTargets(arg);
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
if (callee.type === 'Identifier' && callee.name === pinoName) {
|
|
75
|
+
for (const prop of arg.properties) {
|
|
76
|
+
if (prop.type === 'Property' &&
|
|
77
|
+
!prop.computed &&
|
|
78
|
+
prop.key.type === 'Identifier' &&
|
|
79
|
+
prop.key.name === 'transport' &&
|
|
80
|
+
prop.value.type === 'ObjectExpression') {
|
|
81
|
+
collectTargets(prop.value);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { arrayify } from
|
|
2
|
-
import { toDeferResolve, toEntry } from
|
|
3
|
-
import { join, relative } from
|
|
4
|
-
import { hasDependency } from
|
|
1
|
+
import { arrayify } from '../../util/array.js';
|
|
2
|
+
import { toDeferResolve, toEntry } from '../../util/input.js';
|
|
3
|
+
import { join, relative } from '../../util/path.js';
|
|
4
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
5
5
|
const title = 'Playwright';
|
|
6
6
|
const enablers = ['@playwright/test'];
|
|
7
7
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toEntry } from
|
|
2
|
-
import { hasDependency } from
|
|
3
|
-
import { entry as playwrightEntry, resolveConfig as playwrightResolveConfig } from
|
|
1
|
+
import { toEntry } from '../../util/input.js';
|
|
2
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
3
|
+
import { entry as playwrightEntry, resolveConfig as playwrightResolveConfig } from '../playwright/index.js';
|
|
4
4
|
const title = 'Playwright for components';
|
|
5
5
|
const enablers = [/^@playwright\/experimental-ct-/];
|
|
6
6
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toEntry } from
|
|
2
|
-
import { isInternal } from
|
|
3
|
-
import { hasDependency } from
|
|
1
|
+
import { toEntry } from '../../util/input.js';
|
|
2
|
+
import { isInternal } from '../../util/path.js';
|
|
3
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
4
4
|
const title = 'pm2';
|
|
5
5
|
const enablers = ['pm2'];
|
|
6
6
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isFile } from
|
|
1
|
+
import { isFile } from '../../util/fs.js';
|
|
2
2
|
const title = 'pnpm';
|
|
3
3
|
const isEnabled = async ({ cwd, manifest }) => manifest.packageManager?.startsWith('pnpm@') || isFile(cwd, 'pnpm-lock.yaml') || isFile(cwd, 'pnpm-workspace.yaml');
|
|
4
4
|
const isRootOnly = true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toDeferResolve, toDependency } from
|
|
2
|
-
import { hasDependency } from
|
|
3
|
-
import { toLilconfig } from
|
|
1
|
+
import { toDeferResolve, toDependency } from '../../util/input.js';
|
|
2
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
3
|
+
import { toLilconfig } from '../../util/plugin-config.js';
|
|
4
4
|
const title = 'PostCSS';
|
|
5
5
|
const enablers = ['postcss', 'postcss-cli', 'next'];
|
|
6
6
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toProductionEntry } from
|
|
2
|
-
import { join } from
|
|
3
|
-
import { hasDependency } from
|
|
1
|
+
import { toProductionEntry } from '../../util/input.js';
|
|
2
|
+
import { join } from '../../util/path.js';
|
|
3
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
4
4
|
const title = 'Preconstruct';
|
|
5
5
|
const enablers = ['@preconstruct/cli'];
|
|
6
6
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toDeferResolve, toDependency } from
|
|
2
|
-
import { hasDependency } from
|
|
1
|
+
import { toDeferResolve, toDependency } from '../../util/input.js';
|
|
2
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
3
3
|
const title = 'Prettier';
|
|
4
4
|
const enablers = ['prettier'];
|
|
5
5
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -16,12 +16,16 @@ const resolveConfig = config => {
|
|
|
16
16
|
? config.plugins.filter((plugin) => typeof plugin === 'string').map(id => toDependency(id))
|
|
17
17
|
: [];
|
|
18
18
|
};
|
|
19
|
+
const args = {
|
|
20
|
+
config: true,
|
|
21
|
+
};
|
|
19
22
|
const isFilterTransitiveDependencies = true;
|
|
20
23
|
const plugin = {
|
|
21
24
|
title,
|
|
22
25
|
enablers,
|
|
23
26
|
isEnabled,
|
|
24
27
|
config,
|
|
28
|
+
args,
|
|
25
29
|
resolveConfig,
|
|
26
30
|
isFilterTransitiveDependencies,
|
|
27
31
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { isDirectory } from
|
|
2
|
-
import { toEntry } from
|
|
3
|
-
import { join } from
|
|
4
|
-
import { hasDependency } from
|
|
5
|
-
import compiler from
|
|
1
|
+
import { isDirectory } from '../../util/fs.js';
|
|
2
|
+
import { toEntry } from '../../util/input.js';
|
|
3
|
+
import { join } from '../../util/path.js';
|
|
4
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
5
|
+
import compiler from './compiler.js';
|
|
6
6
|
const title = 'Prisma';
|
|
7
7
|
const enablers = ['prisma', /^@prisma\/.*/];
|
|
8
8
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import MDX from
|
|
2
|
-
import { toEntry, toIgnore, toProductionEntry } from
|
|
3
|
-
import { hasDependency } from
|
|
4
|
-
import { config } from
|
|
5
|
-
import { getRoutesDirs, getSrcDir } from
|
|
1
|
+
import MDX from '../../compilers/mdx.js';
|
|
2
|
+
import { toEntry, toIgnore, toProductionEntry } from '../../util/input.js';
|
|
3
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
4
|
+
import { config } from '../vite/index.js';
|
|
5
|
+
import { getRoutesDirs, getSrcDir } from './resolveFromAST.js';
|
|
6
6
|
const title = 'Qwik';
|
|
7
7
|
const enablers = ['@builder.io/qwik'];
|
|
8
8
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { compact } from
|
|
2
|
-
import { toProductionEntry } from
|
|
3
|
-
import { hasDependency } from
|
|
1
|
+
import { compact } from '../../util/array.js';
|
|
2
|
+
import { toProductionEntry } from '../../util/input.js';
|
|
3
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
4
4
|
const title = 'Raycast';
|
|
5
5
|
const enablers = ['@raycast/api'];
|
|
6
6
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toDeferResolve, toEntry } from
|
|
2
|
-
import { join } from
|
|
3
|
-
import { hasDependency } from
|
|
1
|
+
import { toDeferResolve, toEntry } from '../../util/input.js';
|
|
2
|
+
import { join } from '../../util/path.js';
|
|
3
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
4
4
|
const title = 'React Cosmos';
|
|
5
5
|
const enablers = ['react-cosmos'];
|
|
6
6
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { toDependency, toEntry } from '../../util/input.js';
|
|
2
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
3
|
+
const title = 'React Email';
|
|
4
|
+
const enablers = ['react-email'];
|
|
5
|
+
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
6
|
+
const entry = ['emails/**/*.tsx'];
|
|
7
|
+
const previewCommands = new Set(['build', 'dev', 'start']);
|
|
8
|
+
const args = {
|
|
9
|
+
binaries: ['email'],
|
|
10
|
+
resolveInputs: parsed => {
|
|
11
|
+
const inputs = [];
|
|
12
|
+
if (previewCommands.has(parsed._[0]))
|
|
13
|
+
inputs.push(toDependency('@react-email/preview-server'));
|
|
14
|
+
if (parsed.dir)
|
|
15
|
+
inputs.push(toEntry(`${parsed.dir}/**/*.tsx`));
|
|
16
|
+
return inputs;
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
const plugin = {
|
|
20
|
+
title,
|
|
21
|
+
enablers,
|
|
22
|
+
isEnabled,
|
|
23
|
+
entry,
|
|
24
|
+
args,
|
|
25
|
+
};
|
|
26
|
+
export default plugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toDependency } from
|
|
2
|
-
import { hasDependency } from
|
|
1
|
+
import { toDependency } from '../../util/input.js';
|
|
2
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
3
3
|
const title = 'React Native';
|
|
4
4
|
const enablers = ['react-native'];
|
|
5
5
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs';
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import vite from "../vite/index.js";
|
|
8
|
-
const isWindows = os.platform() === 'win32';
|
|
2
|
+
import { _glob } from '../../util/glob.js';
|
|
3
|
+
import { toEntry, toProductionDependency, toProductionEntry } from '../../util/input.js';
|
|
4
|
+
import { join, toAbsolute } from '../../util/path.js';
|
|
5
|
+
import { hasDependency, load } from '../../util/plugin.js';
|
|
6
|
+
import vite from '../vite/index.js';
|
|
9
7
|
const title = 'React Router';
|
|
10
8
|
const enablers = ['@react-router/dev'];
|
|
11
9
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -28,9 +26,7 @@ const resolveConfig = async (localConfig, options) => {
|
|
|
28
26
|
const mapRoute = (route) => {
|
|
29
27
|
return [toAbsolute(route.file, appDir), ...(route.children ? route.children.flatMap(mapRoute) : [])];
|
|
30
28
|
};
|
|
31
|
-
const routes = routeConfig
|
|
32
|
-
.flatMap(mapRoute)
|
|
33
|
-
.map(route => (isWindows ? route : route.replace(/[\^*?()[\]]/g, '\\$&')));
|
|
29
|
+
const routes = routeConfig.flatMap(mapRoute);
|
|
34
30
|
const resolved = [
|
|
35
31
|
toEntry(join(appDir, 'routes.{js,ts}')),
|
|
36
32
|
toProductionEntry(join(appDir, 'root.{jsx,tsx}')),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import parseArgs from 'minimist';
|
|
2
|
-
import { toProductionEntry } from
|
|
3
|
-
import { join } from
|
|
4
|
-
import { hasDependency } from
|
|
2
|
+
import { toProductionEntry } from '../../util/input.js';
|
|
3
|
+
import { join } from '../../util/path.js';
|
|
4
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
5
5
|
const title = 'Relay';
|
|
6
6
|
const enablers = ['vite-plugin-relay', '@swc/plugin-relay', 'babel-plugin-relay'];
|
|
7
7
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toDependency } from
|
|
2
|
-
import { hasDependency } from
|
|
1
|
+
import { toDependency } from '../../util/input.js';
|
|
2
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
3
3
|
const title = 'Release It!';
|
|
4
4
|
const enablers = ['release-it'];
|
|
5
5
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toDeferResolve } from
|
|
2
|
-
import { isInternal } from
|
|
3
|
-
import { hasDependency } from
|
|
1
|
+
import { toDeferResolve } from '../../util/input.js';
|
|
2
|
+
import { isInternal } from '../../util/path.js';
|
|
3
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
4
4
|
const title = 'Remark';
|
|
5
5
|
const enablers = ['remark-cli'];
|
|
6
6
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toProductionEntry } from
|
|
2
|
-
import { hasDependency } from
|
|
3
|
-
import { getInputFromAST } from
|
|
1
|
+
import { toProductionEntry } from '../../util/input.js';
|
|
2
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
3
|
+
import { getInputFromAST } from './resolveFromAST.js';
|
|
4
4
|
const title = 'Rolldown';
|
|
5
5
|
const enablers = ['rolldown'];
|
|
6
6
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|