knip 6.4.1 → 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 +1 -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
package/dist/plugins/index.js
CHANGED
|
@@ -1,147 +1,150 @@
|
|
|
1
|
-
import { default as angular } from
|
|
2
|
-
import { default as astro } from
|
|
3
|
-
import { default as astroDb } from
|
|
4
|
-
import { default as astroOgCanvas } from
|
|
5
|
-
import { default as ava } from
|
|
6
|
-
import { default as babel } from
|
|
7
|
-
import { default as biome } from
|
|
8
|
-
import { default as bumpp } from
|
|
9
|
-
import { default as bun } from
|
|
10
|
-
import { default as c8 } from
|
|
11
|
-
import { default as capacitor } from
|
|
12
|
-
import { default as changelogen } from
|
|
13
|
-
import { default as changelogithub } from
|
|
14
|
-
import { default as changesets } from
|
|
15
|
-
import { default as commitizen } from
|
|
16
|
-
import { default as commitlint } from
|
|
17
|
-
import { default as convex } from
|
|
18
|
-
import { default as createTypescriptApp } from
|
|
19
|
-
import { default as cspell } from
|
|
20
|
-
import { default as cucumber } from
|
|
21
|
-
import { default as cypress } from
|
|
22
|
-
import { default as danger } from
|
|
23
|
-
import { default as dependencyCruiser } from
|
|
24
|
-
import { default as docusaurus } from
|
|
25
|
-
import { default as dotenv } from
|
|
26
|
-
import { default as drizzle } from
|
|
27
|
-
import { default as eleventy } from
|
|
28
|
-
import { default as eslint } from
|
|
29
|
-
import { default as execa } from
|
|
30
|
-
import { default as expo } from
|
|
31
|
-
import { default as expressiveCode } from
|
|
32
|
-
import { default as gatsby } from
|
|
33
|
-
import { default as githubAction } from
|
|
34
|
-
import { default as githubActions } from
|
|
35
|
-
import { default as glob } from
|
|
36
|
-
import { default as graphqlCodegen } from
|
|
37
|
-
import { default as hardhat } from
|
|
38
|
-
import { default as husky } from
|
|
39
|
-
import { default as i18nextParser } from
|
|
40
|
-
import { default as jest } from
|
|
41
|
-
import { default as karma } from
|
|
42
|
-
import { default as knex } from
|
|
43
|
-
import { default as ladle } from
|
|
44
|
-
import { default as lefthook } from
|
|
45
|
-
import { default as lintStaged } from
|
|
46
|
-
import { default as linthtml } from
|
|
47
|
-
import { default as lockfileLint } from
|
|
48
|
-
import { default as lostPixel } from
|
|
49
|
-
import { default as markdownlint } from
|
|
50
|
-
import { default as mdx } from
|
|
51
|
-
import { default as mdxlint } from
|
|
52
|
-
import { default as metro } from
|
|
53
|
-
import { default as mocha } from
|
|
54
|
-
import { default as moonrepo } from
|
|
55
|
-
import { default as msw } from
|
|
56
|
-
import { default as nanoStaged } from
|
|
57
|
-
import { default as nest } from
|
|
58
|
-
import { default as netlify } from
|
|
59
|
-
import { default as next } from
|
|
60
|
-
import { default as nextIntl } from
|
|
61
|
-
import { default as nextMdx } from
|
|
62
|
-
import { default as nitro } from
|
|
63
|
-
import { default as node } from
|
|
64
|
-
import { default as nodeModulesInspector } from
|
|
65
|
-
import { default as nodemon } from
|
|
66
|
-
import { default as npmPackageJsonLint } from
|
|
67
|
-
import { default as nuxt } from
|
|
68
|
-
import { default as nx } from
|
|
69
|
-
import { default as nyc } from
|
|
70
|
-
import { default as oclif } from
|
|
71
|
-
import { default as openapiTs } from
|
|
72
|
-
import { default as oxfmt } from
|
|
73
|
-
import { default as oxlint } from
|
|
74
|
-
import { default as pandaCss } from
|
|
75
|
-
import { default as parcel } from
|
|
76
|
-
import { default as payload } from
|
|
77
|
-
import { default as
|
|
78
|
-
import { default as
|
|
79
|
-
import { default as
|
|
80
|
-
import { default as
|
|
81
|
-
import { default as
|
|
82
|
-
import { default as
|
|
83
|
-
import { default as
|
|
84
|
-
import { default as
|
|
85
|
-
import { default as
|
|
86
|
-
import { default as
|
|
87
|
-
import { default as
|
|
88
|
-
import { default as
|
|
89
|
-
import { default as
|
|
90
|
-
import { default as
|
|
91
|
-
import { default as
|
|
92
|
-
import { default as
|
|
93
|
-
import { default as
|
|
94
|
-
import { default as
|
|
95
|
-
import { default as
|
|
96
|
-
import { default as
|
|
97
|
-
import { default as
|
|
98
|
-
import { default as
|
|
99
|
-
import { default as
|
|
100
|
-
import { default as
|
|
101
|
-
import { default as
|
|
102
|
-
import { default as
|
|
103
|
-
import { default as
|
|
104
|
-
import { default as
|
|
105
|
-
import { default as
|
|
106
|
-
import { default as
|
|
107
|
-
import { default as
|
|
108
|
-
import { default as
|
|
109
|
-
import { default as
|
|
110
|
-
import { default as
|
|
111
|
-
import { default as
|
|
112
|
-
import { default as
|
|
113
|
-
import { default as
|
|
114
|
-
import { default as
|
|
115
|
-
import { default as
|
|
116
|
-
import { default as
|
|
117
|
-
import { default as
|
|
118
|
-
import { default as
|
|
119
|
-
import { default as
|
|
120
|
-
import { default as
|
|
121
|
-
import { default as
|
|
122
|
-
import { default as
|
|
123
|
-
import { default as
|
|
124
|
-
import { default as
|
|
125
|
-
import { default as
|
|
126
|
-
import { default as
|
|
127
|
-
import { default as
|
|
128
|
-
import { default as
|
|
129
|
-
import { default as
|
|
130
|
-
import { default as
|
|
131
|
-
import { default as
|
|
132
|
-
import { default as
|
|
133
|
-
import { default as
|
|
134
|
-
import { default as
|
|
135
|
-
import { default as
|
|
136
|
-
import { default as
|
|
137
|
-
import { default as
|
|
138
|
-
import { default as
|
|
139
|
-
import { default as
|
|
140
|
-
import { default as
|
|
141
|
-
import { default as
|
|
142
|
-
import { default as
|
|
143
|
-
import { default as
|
|
144
|
-
import { default as
|
|
1
|
+
import { default as angular } from './angular/index.js';
|
|
2
|
+
import { default as astro } from './astro/index.js';
|
|
3
|
+
import { default as astroDb } from './astro-db/index.js';
|
|
4
|
+
import { default as astroOgCanvas } from './astro-og-canvas/index.js';
|
|
5
|
+
import { default as ava } from './ava/index.js';
|
|
6
|
+
import { default as babel } from './babel/index.js';
|
|
7
|
+
import { default as biome } from './biome/index.js';
|
|
8
|
+
import { default as bumpp } from './bumpp/index.js';
|
|
9
|
+
import { default as bun } from './bun/index.js';
|
|
10
|
+
import { default as c8 } from './c8/index.js';
|
|
11
|
+
import { default as capacitor } from './capacitor/index.js';
|
|
12
|
+
import { default as changelogen } from './changelogen/index.js';
|
|
13
|
+
import { default as changelogithub } from './changelogithub/index.js';
|
|
14
|
+
import { default as changesets } from './changesets/index.js';
|
|
15
|
+
import { default as commitizen } from './commitizen/index.js';
|
|
16
|
+
import { default as commitlint } from './commitlint/index.js';
|
|
17
|
+
import { default as convex } from './convex/index.js';
|
|
18
|
+
import { default as createTypescriptApp } from './create-typescript-app/index.js';
|
|
19
|
+
import { default as cspell } from './cspell/index.js';
|
|
20
|
+
import { default as cucumber } from './cucumber/index.js';
|
|
21
|
+
import { default as cypress } from './cypress/index.js';
|
|
22
|
+
import { default as danger } from './danger/index.js';
|
|
23
|
+
import { default as dependencyCruiser } from './dependency-cruiser/index.js';
|
|
24
|
+
import { default as docusaurus } from './docusaurus/index.js';
|
|
25
|
+
import { default as dotenv } from './dotenv/index.js';
|
|
26
|
+
import { default as drizzle } from './drizzle/index.js';
|
|
27
|
+
import { default as eleventy } from './eleventy/index.js';
|
|
28
|
+
import { default as eslint } from './eslint/index.js';
|
|
29
|
+
import { default as execa } from './execa/index.js';
|
|
30
|
+
import { default as expo } from './expo/index.js';
|
|
31
|
+
import { default as expressiveCode } from './expressive-code/index.js';
|
|
32
|
+
import { default as gatsby } from './gatsby/index.js';
|
|
33
|
+
import { default as githubAction } from './github-action/index.js';
|
|
34
|
+
import { default as githubActions } from './github-actions/index.js';
|
|
35
|
+
import { default as glob } from './glob/index.js';
|
|
36
|
+
import { default as graphqlCodegen } from './graphql-codegen/index.js';
|
|
37
|
+
import { default as hardhat } from './hardhat/index.js';
|
|
38
|
+
import { default as husky } from './husky/index.js';
|
|
39
|
+
import { default as i18nextParser } from './i18next-parser/index.js';
|
|
40
|
+
import { default as jest } from './jest/index.js';
|
|
41
|
+
import { default as karma } from './karma/index.js';
|
|
42
|
+
import { default as knex } from './knex/index.js';
|
|
43
|
+
import { default as ladle } from './ladle/index.js';
|
|
44
|
+
import { default as lefthook } from './lefthook/index.js';
|
|
45
|
+
import { default as lintStaged } from './lint-staged/index.js';
|
|
46
|
+
import { default as linthtml } from './linthtml/index.js';
|
|
47
|
+
import { default as lockfileLint } from './lockfile-lint/index.js';
|
|
48
|
+
import { default as lostPixel } from './lost-pixel/index.js';
|
|
49
|
+
import { default as markdownlint } from './markdownlint/index.js';
|
|
50
|
+
import { default as mdx } from './mdx/index.js';
|
|
51
|
+
import { default as mdxlint } from './mdxlint/index.js';
|
|
52
|
+
import { default as metro } from './metro/index.js';
|
|
53
|
+
import { default as mocha } from './mocha/index.js';
|
|
54
|
+
import { default as moonrepo } from './moonrepo/index.js';
|
|
55
|
+
import { default as msw } from './msw/index.js';
|
|
56
|
+
import { default as nanoStaged } from './nano-staged/index.js';
|
|
57
|
+
import { default as nest } from './nest/index.js';
|
|
58
|
+
import { default as netlify } from './netlify/index.js';
|
|
59
|
+
import { default as next } from './next/index.js';
|
|
60
|
+
import { default as nextIntl } from './next-intl/index.js';
|
|
61
|
+
import { default as nextMdx } from './next-mdx/index.js';
|
|
62
|
+
import { default as nitro } from './nitro/index.js';
|
|
63
|
+
import { default as node } from './node/index.js';
|
|
64
|
+
import { default as nodeModulesInspector } from './node-modules-inspector/index.js';
|
|
65
|
+
import { default as nodemon } from './nodemon/index.js';
|
|
66
|
+
import { default as npmPackageJsonLint } from './npm-package-json-lint/index.js';
|
|
67
|
+
import { default as nuxt } from './nuxt/index.js';
|
|
68
|
+
import { default as nx } from './nx/index.js';
|
|
69
|
+
import { default as nyc } from './nyc/index.js';
|
|
70
|
+
import { default as oclif } from './oclif/index.js';
|
|
71
|
+
import { default as openapiTs } from './openapi-ts/index.js';
|
|
72
|
+
import { default as oxfmt } from './oxfmt/index.js';
|
|
73
|
+
import { default as oxlint } from './oxlint/index.js';
|
|
74
|
+
import { default as pandaCss } from './panda-css/index.js';
|
|
75
|
+
import { default as parcel } from './parcel/index.js';
|
|
76
|
+
import { default as payload } from './payload/index.js';
|
|
77
|
+
import { default as pino } from './pino/index.js';
|
|
78
|
+
import { default as playwright } from './playwright/index.js';
|
|
79
|
+
import { default as playwrightCt } from './playwright-ct/index.js';
|
|
80
|
+
import { default as playwrightTest } from './playwright-test/index.js';
|
|
81
|
+
import { default as plop } from './plop/index.js';
|
|
82
|
+
import { default as pm2 } from './pm2/index.js';
|
|
83
|
+
import { default as pnpm } from './pnpm/index.js';
|
|
84
|
+
import { default as postcss } from './postcss/index.js';
|
|
85
|
+
import { default as preconstruct } from './preconstruct/index.js';
|
|
86
|
+
import { default as prettier } from './prettier/index.js';
|
|
87
|
+
import { default as prisma } from './prisma/index.js';
|
|
88
|
+
import { default as qwik } from './qwik/index.js';
|
|
89
|
+
import { default as raycast } from './raycast/index.js';
|
|
90
|
+
import { default as reactCosmos } from './react-cosmos/index.js';
|
|
91
|
+
import { default as reactEmail } from './react-email/index.js';
|
|
92
|
+
import { default as reactNative } from './react-native/index.js';
|
|
93
|
+
import { default as reactRouter } from './react-router/index.js';
|
|
94
|
+
import { default as relay } from './relay/index.js';
|
|
95
|
+
import { default as releaseIt } from './release-it/index.js';
|
|
96
|
+
import { default as remark } from './remark/index.js';
|
|
97
|
+
import { default as remix } from './remix/index.js';
|
|
98
|
+
import { default as rolldown } from './rolldown/index.js';
|
|
99
|
+
import { default as rollup } from './rollup/index.js';
|
|
100
|
+
import { default as rsbuild } from './rsbuild/index.js';
|
|
101
|
+
import { default as rslib } from './rslib/index.js';
|
|
102
|
+
import { default as rspack } from './rspack/index.js';
|
|
103
|
+
import { default as rstest } from './rstest/index.js';
|
|
104
|
+
import { default as sanity } from './sanity/index.js';
|
|
105
|
+
import { default as semanticRelease } from './semantic-release/index.js';
|
|
106
|
+
import { default as sentry } from './sentry/index.js';
|
|
107
|
+
import { default as serverlessFramework } from './serverless-framework/index.js';
|
|
108
|
+
import { default as simpleGitHooks } from './simple-git-hooks/index.js';
|
|
109
|
+
import { default as sizeLimit } from './size-limit/index.js';
|
|
110
|
+
import { default as sst } from './sst/index.js';
|
|
111
|
+
import { default as starlight } from './starlight/index.js';
|
|
112
|
+
import { default as stencil } from './stencil/index.js';
|
|
113
|
+
import { default as storybook } from './storybook/index.js';
|
|
114
|
+
import { default as stryker } from './stryker/index.js';
|
|
115
|
+
import { default as stylelint } from './stylelint/index.js';
|
|
116
|
+
import { default as svelte } from './svelte/index.js';
|
|
117
|
+
import { default as sveltekit } from './sveltekit/index.js';
|
|
118
|
+
import { default as svgo } from './svgo/index.js';
|
|
119
|
+
import { default as svgr } from './svgr/index.js';
|
|
120
|
+
import { default as swc } from './swc/index.js';
|
|
121
|
+
import { default as syncpack } from './syncpack/index.js';
|
|
122
|
+
import { default as tailwind } from './tailwind/index.js';
|
|
123
|
+
import { default as tanstackRouter } from './tanstack-router/index.js';
|
|
124
|
+
import { default as taskfile } from './taskfile/index.js';
|
|
125
|
+
import { default as travis } from './travis/index.js';
|
|
126
|
+
import { default as tsNode } from './ts-node/index.js';
|
|
127
|
+
import { default as tsdown } from './tsdown/index.js';
|
|
128
|
+
import { default as tsup } from './tsup/index.js';
|
|
129
|
+
import { default as tsx } from './tsx/index.js';
|
|
130
|
+
import { default as typedoc } from './typedoc/index.js';
|
|
131
|
+
import { default as typescript } from './typescript/index.js';
|
|
132
|
+
import { default as unbuild } from './unbuild/index.js';
|
|
133
|
+
import { default as unocss } from './unocss/index.js';
|
|
134
|
+
import { default as vercelOg } from './vercel-og/index.js';
|
|
135
|
+
import { default as vike } from './vike/index.js';
|
|
136
|
+
import { default as vite } from './vite/index.js';
|
|
137
|
+
import { default as vitepress } from './vitepress/index.js';
|
|
138
|
+
import { default as vitest } from './vitest/index.js';
|
|
139
|
+
import { default as vue } from './vue/index.js';
|
|
140
|
+
import { default as webdriverIo } from './webdriver-io/index.js';
|
|
141
|
+
import { default as webpack } from './webpack/index.js';
|
|
142
|
+
import { default as wireit } from './wireit/index.js';
|
|
143
|
+
import { default as wrangler } from './wrangler/index.js';
|
|
144
|
+
import { default as xo } from './xo/index.js';
|
|
145
|
+
import { default as yarn } from './yarn/index.js';
|
|
146
|
+
import { default as yorkie } from './yorkie/index.js';
|
|
147
|
+
import { default as zx } from './zx/index.js';
|
|
145
148
|
export const Plugins = {
|
|
146
149
|
angular,
|
|
147
150
|
astro,
|
|
@@ -219,6 +222,7 @@ export const Plugins = {
|
|
|
219
222
|
'panda-css': pandaCss,
|
|
220
223
|
parcel,
|
|
221
224
|
payload,
|
|
225
|
+
pino,
|
|
222
226
|
playwright,
|
|
223
227
|
'playwright-ct': playwrightCt,
|
|
224
228
|
'playwright-test': playwrightTest,
|
|
@@ -232,6 +236,7 @@ export const Plugins = {
|
|
|
232
236
|
qwik,
|
|
233
237
|
raycast,
|
|
234
238
|
'react-cosmos': reactCosmos,
|
|
239
|
+
'react-email': reactEmail,
|
|
235
240
|
'react-native': reactNative,
|
|
236
241
|
'react-router': reactRouter,
|
|
237
242
|
relay,
|
|
@@ -247,6 +252,7 @@ export const Plugins = {
|
|
|
247
252
|
sanity,
|
|
248
253
|
'semantic-release': semanticRelease,
|
|
249
254
|
sentry,
|
|
255
|
+
'serverless-framework': serverlessFramework,
|
|
250
256
|
'simple-git-hooks': simpleGitHooks,
|
|
251
257
|
'size-limit': sizeLimit,
|
|
252
258
|
sst,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { dirname, isInternal, join, toAbsolute } from
|
|
2
|
-
import { load } from
|
|
1
|
+
import { dirname, isInternal, join, toAbsolute } from '../../util/path.js';
|
|
2
|
+
import { load } from '../../util/plugin.js';
|
|
3
3
|
export const resolveExtensibleConfig = async (configFilePath) => {
|
|
4
4
|
let config = await load(configFilePath);
|
|
5
5
|
if (config?.preset) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { toDeferResolve, toEntry } from
|
|
2
|
-
import { isInternal, join, normalize, toAbsolute } from
|
|
3
|
-
import { hasDependency } from
|
|
4
|
-
import { getReportersDependencies, resolveExtensibleConfig } from
|
|
1
|
+
import { toDeferResolve, toEntry } from '../../util/input.js';
|
|
2
|
+
import { isInternal, join, normalize, toAbsolute } from '../../util/path.js';
|
|
3
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
4
|
+
import { getReportersDependencies, resolveExtensibleConfig } from './helpers.js';
|
|
5
5
|
const title = 'Jest';
|
|
6
6
|
const enablers = ['jest'];
|
|
7
7
|
const isEnabled = ({ dependencies, manifest }) => hasDependency(dependencies, enablers) || Boolean(manifest.name?.startsWith('jest-presets'));
|
|
@@ -2,6 +2,6 @@ import { type Input } from '../../util/input.ts';
|
|
|
2
2
|
import type { Config, ConfigOptions } from './types.ts';
|
|
3
3
|
export declare const configFiles: string[];
|
|
4
4
|
export declare const inputsFromFrameworks: (frameworks: readonly string[]) => readonly Input[];
|
|
5
|
-
export declare const inputsFromPlugins: (plugins: ConfigOptions[
|
|
5
|
+
export declare const inputsFromPlugins: (plugins: ConfigOptions['plugins'], devDependencies: Record<string, string> | undefined) => readonly Input[];
|
|
6
6
|
export type ConfigFile = (config: Config) => void;
|
|
7
7
|
export declare const loadConfig: (configFile: ConfigFile) => ConfigOptions | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toDeferResolveEntry, toDependency } from
|
|
2
|
-
import { isInternal } from
|
|
1
|
+
import { toDeferResolveEntry, toDependency } from '../../util/input.js';
|
|
2
|
+
import { isInternal } from '../../util/path.js';
|
|
3
3
|
export const configFiles = ['karma.conf.js', 'karma.conf.ts', '.config/karma.conf.js', '.config/karma.conf.ts'];
|
|
4
4
|
export const inputsFromFrameworks = (frameworks) => frameworks.map(framework => {
|
|
5
5
|
return toDependency(framework === 'jasmine' ? 'jasmine-core' : framework);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { toEntry } from
|
|
2
|
-
import { isAbsolute, join } from
|
|
3
|
-
import { hasDependency } from
|
|
4
|
-
import { configFiles, inputsFromFrameworks, inputsFromPlugins, loadConfig } from
|
|
1
|
+
import { toEntry } from '../../util/input.js';
|
|
2
|
+
import { isAbsolute, join } from '../../util/path.js';
|
|
3
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
4
|
+
import { configFiles, inputsFromFrameworks, inputsFromPlugins, loadConfig } from './helpers.js';
|
|
5
5
|
const title = 'Karma';
|
|
6
6
|
const enablers = ['karma'];
|
|
7
7
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toDependency, toEntry } from
|
|
2
|
-
import { hasDependency } from
|
|
3
|
-
import { clientToPackages } from
|
|
1
|
+
import { toDependency, toEntry } from '../../util/input.js';
|
|
2
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
3
|
+
import { clientToPackages } from './helpers.js';
|
|
4
4
|
const title = 'Knex';
|
|
5
5
|
const enablers = ['knex'];
|
|
6
6
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { toEntry } from
|
|
2
|
-
import { toAbsolute } from
|
|
3
|
-
import { hasDependency, load } from
|
|
4
|
-
import { resolveConfig as resolveVitestConfig } from
|
|
1
|
+
import { toEntry } from '../../util/input.js';
|
|
2
|
+
import { toAbsolute } from '../../util/path.js';
|
|
3
|
+
import { hasDependency, load } from '../../util/plugin.js';
|
|
4
|
+
import { resolveConfig as resolveVitestConfig } from '../vitest/index.js';
|
|
5
5
|
const title = 'Ladle';
|
|
6
6
|
const enablers = ['@ladle/react'];
|
|
7
7
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getGitHookPaths } from
|
|
2
|
-
import { fromBinary, toDependency } from
|
|
3
|
-
import { findByKeyDeep } from
|
|
4
|
-
import { extname } from
|
|
5
|
-
import { hasDependency } from
|
|
1
|
+
import { getGitHookPaths } from '../../util/git.js';
|
|
2
|
+
import { fromBinary, toDependency } from '../../util/input.js';
|
|
3
|
+
import { findByKeyDeep } from '../../util/object.js';
|
|
4
|
+
import { extname } from '../../util/path.js';
|
|
5
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
6
6
|
const title = 'Lefthook';
|
|
7
7
|
const enablers = ['lefthook', '@arkweid/lefthook', '@evilmartians/lefthook'];
|
|
8
8
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { hasDependency } from
|
|
2
|
-
import { toLilconfig } from
|
|
1
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
2
|
+
import { toLilconfig } from '../../util/plugin-config.js';
|
|
3
3
|
const title = 'lint-staged';
|
|
4
4
|
const enablers = ['lint-staged'];
|
|
5
5
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toDeferResolve } from
|
|
2
|
-
import { hasDependency } from
|
|
3
|
-
import { toCosmiconfig } from
|
|
1
|
+
import { toDeferResolve } from '../../util/input.js';
|
|
2
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
3
|
+
import { toCosmiconfig } from '../../util/plugin-config.js';
|
|
4
4
|
const title = 'LintHTML';
|
|
5
5
|
const packageJsonPath = 'linthtmlConfig';
|
|
6
6
|
const enablers = ['@linthtml/linthtml'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { hasDependency } from
|
|
2
|
-
import { toCosmiconfig } from
|
|
1
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
2
|
+
import { toCosmiconfig } from '../../util/plugin-config.js';
|
|
3
3
|
const title = 'lockfile-lint';
|
|
4
4
|
const enablers = ['lockfile-lint'];
|
|
5
5
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toDependency } from
|
|
2
|
-
import { hasDependency } from
|
|
3
|
-
import { getArgumentValues } from
|
|
1
|
+
import { toDependency } from '../../util/input.js';
|
|
2
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
3
|
+
import { getArgumentValues } from './helpers.js';
|
|
4
4
|
const title = 'markdownlint';
|
|
5
5
|
const enablers = ['markdownlint-cli'];
|
|
6
6
|
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 = 'MDX';
|
|
4
4
|
const enablers = ['astro', 'mdxlint'];
|
|
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 = 'mdxlint';
|
|
5
5
|
const enablers = ['mdxlint'];
|
|
6
6
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { compact } from
|
|
2
|
-
import { toDeferResolve, toProductionEntry } from
|
|
3
|
-
import { join } from
|
|
4
|
-
import { hasDependency } from
|
|
1
|
+
import { compact } from '../../util/array.js';
|
|
2
|
+
import { toDeferResolve, toProductionEntry } from '../../util/input.js';
|
|
3
|
+
import { join } from '../../util/path.js';
|
|
4
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
5
5
|
const title = 'Metro';
|
|
6
6
|
const enablers = ['metro', '@react-native/metro-config', 'expo'];
|
|
7
7
|
const isEnabled = options => hasDependency(options.dependencies, enablers);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toDeferResolve, toEntry } from
|
|
2
|
-
import { hasDependency } from
|
|
1
|
+
import { toDeferResolve, toEntry } from '../../util/input.js';
|
|
2
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
3
3
|
const title = 'Mocha';
|
|
4
4
|
const enablers = ['mocha'];
|
|
5
5
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toEntry } from
|
|
2
|
-
import { join } from
|
|
3
|
-
import { hasDependency } from
|
|
1
|
+
import { toEntry } from '../../util/input.js';
|
|
2
|
+
import { join } from '../../util/path.js';
|
|
3
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
4
4
|
const title = 'Mock Service Worker';
|
|
5
5
|
const enablers = ['msw'];
|
|
6
6
|
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 = 'Nest';
|
|
4
4
|
const enablers = [/^@nestjs\/.*/];
|
|
5
5
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { toDependency, toProductionEntry } from
|
|
2
|
-
import { join } from
|
|
3
|
-
import { hasDependency } from
|
|
4
|
-
import { extractFunctionsConfigProperty } from
|
|
1
|
+
import { toDependency, toProductionEntry } from '../../util/input.js';
|
|
2
|
+
import { join } from '../../util/path.js';
|
|
3
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
4
|
+
import { extractFunctionsConfigProperty } from './helpers.js';
|
|
5
5
|
const title = 'Netlify';
|
|
6
6
|
const enablers = [/^@netlify\/plugin-/, 'netlify-cli', '@netlify/functions'];
|
|
7
7
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toProductionEntry } from
|
|
2
|
-
import { hasDependency } from
|
|
3
|
-
import { getPageExtensions } from
|
|
1
|
+
import { toProductionEntry } from '../../util/input.js';
|
|
2
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
3
|
+
import { getPageExtensions } from './resolveFromAST.js';
|
|
4
4
|
const title = 'Next.js';
|
|
5
5
|
const enablers = ['next'];
|
|
6
6
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { collectPropertyValues } from
|
|
1
|
+
import { collectPropertyValues } from '../../typescript/ast-helpers.js';
|
|
2
2
|
export const getPageExtensions = (program) => Array.from(collectPropertyValues(program, 'pageExtensions'));
|