knip 5.84.1 → 5.86.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.d.ts +2 -2
- package/dist/CacheConsultant.js +3 -3
- package/dist/CatalogCounselor.d.ts +3 -3
- package/dist/CatalogCounselor.js +5 -5
- package/dist/ConfigurationChief.d.ts +160 -142
- package/dist/ConfigurationChief.js +15 -16
- package/dist/ConsoleStreamer.d.ts +1 -1
- package/dist/DependencyDeputy.d.ts +6 -6
- package/dist/DependencyDeputy.js +10 -10
- package/dist/IssueCollector.d.ts +7 -7
- package/dist/IssueCollector.js +3 -3
- package/dist/IssueFixer.d.ts +3 -3
- package/dist/IssueFixer.js +17 -6
- package/dist/JsonCatalogPeeker.d.ts +1 -1
- package/dist/JsonCatalogPeeker.js +2 -2
- package/dist/PackagePeeker.d.ts +1 -1
- package/dist/PackagePeeker.js +1 -1
- package/dist/PrincipalFactory.d.ts +3 -3
- package/dist/PrincipalFactory.js +3 -3
- package/dist/ProjectPrincipal.d.ts +9 -9
- package/dist/ProjectPrincipal.js +15 -9
- package/dist/WorkspaceWorker.d.ts +9 -9
- package/dist/WorkspaceWorker.js +17 -17
- package/dist/YamlCatalogPeeker.d.ts +1 -1
- package/dist/YamlCatalogPeeker.js +2 -2
- package/dist/binaries/bash-parser.d.ts +2 -2
- package/dist/binaries/bash-parser.js +82 -48
- package/dist/binaries/fallback.d.ts +1 -1
- package/dist/binaries/fallback.js +4 -6
- package/dist/binaries/index.d.ts +1 -1
- package/dist/binaries/index.js +3 -3
- package/dist/binaries/package-manager/bun.d.ts +1 -1
- package/dist/binaries/package-manager/bun.js +4 -6
- package/dist/binaries/package-manager/bunx.d.ts +2 -2
- package/dist/binaries/package-manager/bunx.js +4 -4
- package/dist/binaries/package-manager/index.d.ts +7 -7
- package/dist/binaries/package-manager/index.js +7 -7
- package/dist/binaries/package-manager/npm.d.ts +1 -1
- package/dist/binaries/package-manager/npx.d.ts +1 -1
- package/dist/binaries/package-manager/npx.js +4 -4
- package/dist/binaries/package-manager/pnpm.d.ts +1 -1
- package/dist/binaries/package-manager/pnpm.js +3 -3
- package/dist/binaries/package-manager/pnpx.d.ts +2 -2
- package/dist/binaries/package-manager/pnpx.js +2 -2
- package/dist/binaries/package-manager/yarn.d.ts +1 -1
- package/dist/binaries/package-manager/yarn.js +4 -4
- package/dist/binaries/plugins.d.ts +1 -1
- package/dist/binaries/plugins.js +6 -6
- package/dist/cli.js +11 -11
- package/dist/compilers/compilers.d.ts +1 -1
- package/dist/compilers/index.d.ts +33 -3
- package/dist/compilers/index.js +2 -2
- package/dist/compilers/mdx.d.ts +1 -1
- package/dist/compilers/mdx.js +9 -2
- package/dist/compilers/scss.d.ts +1 -1
- package/dist/compilers/scss.js +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/graph/analyze.d.ts +8 -8
- package/dist/graph/analyze.js +6 -6
- package/dist/graph/build.d.ts +9 -9
- package/dist/graph/build.js +16 -16
- package/dist/graph-explorer/cache.d.ts +3 -3
- package/dist/graph-explorer/explorer.d.ts +7 -7
- package/dist/graph-explorer/explorer.js +9 -9
- package/dist/graph-explorer/operations/build-exports-tree.d.ts +2 -2
- package/dist/graph-explorer/operations/build-exports-tree.js +2 -2
- package/dist/graph-explorer/operations/find-cycles.d.ts +2 -2
- package/dist/graph-explorer/operations/get-contention.d.ts +2 -2
- package/dist/graph-explorer/operations/get-contention.js +3 -3
- package/dist/graph-explorer/operations/get-dependency-usage.d.ts +1 -1
- package/dist/graph-explorer/operations/get-dependency-usage.js +1 -1
- package/dist/graph-explorer/operations/get-usage.d.ts +2 -2
- package/dist/graph-explorer/operations/get-usage.js +5 -5
- package/dist/graph-explorer/operations/has-strictly-ns-references.d.ts +1 -1
- package/dist/graph-explorer/operations/has-strictly-ns-references.js +1 -1
- package/dist/graph-explorer/operations/is-referenced.d.ts +1 -1
- package/dist/graph-explorer/operations/is-referenced.js +2 -2
- package/dist/graph-explorer/operations/resolve-definition.d.ts +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.d.ts +1 -1
- package/dist/graph-explorer/visitors.js +1 -1
- package/dist/graph-explorer/walk-down.d.ts +1 -1
- package/dist/graph-explorer/walk-down.js +2 -2
- package/dist/graph-explorer/walk-up.d.ts +2 -2
- package/dist/graph-explorer/walk-up.js +2 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3 -3
- package/dist/manifest/helpers.d.ts +1 -1
- package/dist/manifest/helpers.js +2 -2
- package/dist/manifest/index.d.ts +1 -1
- package/dist/manifest/index.js +3 -3
- package/dist/plugins/_template/index.d.ts +1 -1
- package/dist/plugins/_template/index.js +2 -2
- package/dist/plugins/angular/index.d.ts +1 -1
- 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.d.ts +1 -1
- package/dist/plugins/astro/index.js +9 -6
- package/dist/plugins/astro/resolveFromAST.d.ts +1 -0
- package/dist/plugins/astro/resolveFromAST.js +18 -1
- package/dist/plugins/astro-db/index.d.ts +1 -1
- package/dist/plugins/astro-db/index.js +1 -1
- package/dist/plugins/astro-og-canvas/index.d.ts +1 -1
- package/dist/plugins/astro-og-canvas/index.js +2 -2
- package/dist/plugins/ava/index.d.ts +1 -1
- package/dist/plugins/ava/index.js +2 -2
- package/dist/plugins/babel/helpers.js +1 -1
- package/dist/plugins/babel/index.d.ts +3 -3
- package/dist/plugins/babel/index.js +4 -4
- package/dist/plugins/babel/types.d.ts +1 -1
- package/dist/plugins/biome/index.d.ts +1 -1
- package/dist/plugins/biome/index.js +4 -4
- package/dist/plugins/bumpp/index.d.ts +1 -1
- package/dist/plugins/bumpp/index.js +2 -2
- package/dist/plugins/bun/index.d.ts +1 -1
- package/dist/plugins/bun/index.js +8 -2
- package/dist/plugins/c8/index.d.ts +1 -1
- package/dist/plugins/c8/index.js +1 -1
- package/dist/plugins/capacitor/index.d.ts +1 -1
- package/dist/plugins/capacitor/index.js +3 -3
- package/dist/plugins/changelogen/index.d.ts +1 -1
- package/dist/plugins/changelogen/index.js +2 -2
- package/dist/plugins/changelogithub/index.d.ts +1 -1
- package/dist/plugins/changelogithub/index.js +2 -2
- package/dist/plugins/changesets/index.d.ts +1 -1
- package/dist/plugins/changesets/index.js +2 -2
- package/dist/plugins/commitizen/index.d.ts +1 -1
- package/dist/plugins/commitizen/index.js +2 -2
- package/dist/plugins/commitlint/index.d.ts +1 -1
- package/dist/plugins/commitlint/index.js +3 -3
- package/dist/plugins/convex/index.d.ts +1 -1
- package/dist/plugins/convex/index.js +1 -1
- package/dist/plugins/create-typescript-app/index.d.ts +1 -1
- package/dist/plugins/create-typescript-app/index.js +1 -1
- package/dist/plugins/cspell/index.d.ts +1 -1
- package/dist/plugins/cspell/index.js +2 -2
- package/dist/plugins/cucumber/index.d.ts +1 -1
- package/dist/plugins/cucumber/index.js +2 -2
- package/dist/plugins/cypress/helpers.d.ts +2 -2
- package/dist/plugins/cypress/helpers.js +2 -2
- package/dist/plugins/cypress/index.d.ts +1 -1
- package/dist/plugins/cypress/index.js +3 -3
- package/dist/plugins/danger/index.d.ts +1 -1
- package/dist/plugins/danger/index.js +1 -1
- package/dist/plugins/dependency-cruiser/index.d.ts +1 -1
- package/dist/plugins/dependency-cruiser/index.js +1 -1
- package/dist/plugins/docusaurus/helpers.d.ts +3 -3
- package/dist/plugins/docusaurus/helpers.js +2 -2
- package/dist/plugins/docusaurus/index.d.ts +1 -1
- package/dist/plugins/docusaurus/index.js +3 -3
- package/dist/plugins/docusaurus/types.d.ts +1 -1
- package/dist/plugins/dotenv/index.d.ts +1 -1
- package/dist/plugins/dotenv/index.js +1 -1
- package/dist/plugins/drizzle/index.d.ts +1 -1
- package/dist/plugins/drizzle/index.js +2 -2
- package/dist/plugins/eleventy/index.d.ts +1 -1
- package/dist/plugins/eleventy/index.js +6 -6
- package/dist/plugins/eleventy/types.d.ts +1 -1
- package/dist/plugins/eslint/helpers.d.ts +3 -3
- package/dist/plugins/eslint/helpers.js +5 -5
- package/dist/plugins/eslint/index.d.ts +1 -1
- package/dist/plugins/eslint/index.js +3 -3
- package/dist/plugins/execa/index.d.ts +1 -1
- package/dist/plugins/execa/index.js +2 -2
- package/dist/plugins/execa/visitors/execa.d.ts +1 -1
- package/dist/plugins/execa/visitors/execa.js +3 -3
- package/dist/plugins/expo/helpers.d.ts +2 -2
- package/dist/plugins/expo/helpers.js +3 -3
- package/dist/plugins/expo/index.d.ts +1 -1
- package/dist/plugins/expo/index.js +4 -4
- package/dist/plugins/expressive-code/index.d.ts +1 -1
- package/dist/plugins/expressive-code/index.js +1 -1
- package/dist/plugins/gatsby/index.d.ts +1 -1
- package/dist/plugins/gatsby/index.js +2 -2
- package/dist/plugins/github-action/index.d.ts +1 -1
- package/dist/plugins/github-action/index.js +4 -4
- package/dist/plugins/github-actions/index.d.ts +1 -1
- package/dist/plugins/github-actions/index.js +4 -4
- package/dist/plugins/glob/index.d.ts +1 -1
- package/dist/plugins/graphql-codegen/index.d.ts +1 -1
- package/dist/plugins/graphql-codegen/index.js +5 -5
- package/dist/plugins/hardhat/index.d.ts +1 -1
- package/dist/plugins/hardhat/index.js +2 -2
- package/dist/plugins/husky/index.d.ts +1 -1
- package/dist/plugins/husky/index.js +3 -3
- package/dist/plugins/i18next-parser/index.d.ts +1 -1
- package/dist/plugins/i18next-parser/index.js +1 -1
- package/dist/plugins/index.d.ts +138 -135
- package/dist/plugins/index.js +141 -135
- package/dist/plugins/jest/helpers.d.ts +2 -2
- package/dist/plugins/jest/helpers.js +2 -2
- package/dist/plugins/jest/index.d.ts +1 -1
- package/dist/plugins/jest/index.js +4 -4
- package/dist/plugins/karma/helpers.d.ts +2 -2
- package/dist/plugins/karma/helpers.js +2 -2
- package/dist/plugins/karma/index.d.ts +1 -1
- package/dist/plugins/karma/index.js +4 -4
- package/dist/plugins/knex/index.d.ts +1 -1
- package/dist/plugins/knex/index.js +3 -3
- package/dist/plugins/ladle/index.d.ts +1 -1
- package/dist/plugins/ladle/index.js +4 -4
- package/dist/plugins/lefthook/index.d.ts +1 -1
- package/dist/plugins/lefthook/index.js +5 -5
- package/dist/plugins/lint-staged/index.d.ts +1 -1
- package/dist/plugins/lint-staged/index.js +2 -2
- package/dist/plugins/linthtml/index.d.ts +1 -1
- package/dist/plugins/linthtml/index.js +3 -3
- package/dist/plugins/lockfile-lint/index.d.ts +1 -1
- package/dist/plugins/lockfile-lint/index.js +2 -2
- package/dist/plugins/lost-pixel/index.d.ts +1 -1
- package/dist/plugins/lost-pixel/index.js +1 -1
- package/dist/plugins/markdownlint/index.d.ts +1 -1
- package/dist/plugins/markdownlint/index.js +3 -3
- package/dist/plugins/mdx/index.d.ts +1 -1
- package/dist/plugins/mdx/index.js +2 -2
- package/dist/plugins/mdxlint/index.d.ts +1 -1
- package/dist/plugins/mdxlint/index.js +3 -3
- package/dist/plugins/metro/index.d.ts +1 -1
- package/dist/plugins/metro/index.js +4 -4
- package/dist/plugins/mocha/index.d.ts +1 -1
- package/dist/plugins/mocha/index.js +2 -2
- package/dist/plugins/moonrepo/index.d.ts +1 -1
- package/dist/plugins/moonrepo/index.js +1 -1
- package/dist/plugins/msw/index.d.ts +1 -1
- package/dist/plugins/msw/index.js +3 -3
- package/dist/plugins/nano-staged/index.d.ts +1 -1
- package/dist/plugins/nano-staged/index.js +1 -1
- package/dist/plugins/nest/index.d.ts +1 -1
- package/dist/plugins/nest/index.js +2 -2
- package/dist/plugins/netlify/helpers.d.ts +1 -1
- package/dist/plugins/netlify/index.d.ts +1 -1
- package/dist/plugins/netlify/index.js +4 -4
- package/dist/plugins/next/index.d.ts +1 -1
- package/dist/plugins/next/index.js +14 -12
- package/dist/plugins/next/resolveFromAST.js +1 -1
- package/dist/plugins/next-intl/index.d.ts +1 -1
- package/dist/plugins/next-intl/index.js +1 -1
- package/dist/plugins/next-mdx/index.d.ts +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.d.ts +1 -1
- package/dist/plugins/nitro/index.js +3 -3
- package/dist/plugins/node/index.d.ts +1 -1
- package/dist/plugins/node/index.js +1 -1
- package/dist/plugins/node-modules-inspector/index.d.ts +1 -1
- package/dist/plugins/node-modules-inspector/index.js +2 -2
- package/dist/plugins/nodemon/index.d.ts +1 -1
- package/dist/plugins/npm-package-json-lint/index.d.ts +1 -1
- package/dist/plugins/npm-package-json-lint/index.js +3 -3
- package/dist/plugins/nuxt/helpers.d.ts +15 -0
- package/dist/plugins/nuxt/helpers.js +133 -0
- package/dist/plugins/nuxt/index.d.ts +1 -4
- package/dist/plugins/nuxt/index.js +177 -35
- package/dist/plugins/nuxt/types.d.ts +50 -0
- package/dist/plugins/nx/index.d.ts +1 -1
- package/dist/plugins/nx/index.js +3 -3
- package/dist/plugins/nyc/index.d.ts +1 -1
- package/dist/plugins/nyc/index.js +2 -2
- package/dist/plugins/oclif/index.d.ts +1 -1
- package/dist/plugins/oclif/index.js +2 -2
- package/dist/plugins/openapi-ts/index.d.ts +3 -0
- package/dist/plugins/openapi-ts/index.js +22 -0
- package/dist/plugins/openapi-ts/types.d.ts +8 -0
- package/dist/plugins/openapi-ts/types.js +1 -0
- package/dist/plugins/oxlint/index.d.ts +1 -1
- package/dist/plugins/oxlint/index.js +1 -1
- package/dist/plugins/parcel/index.d.ts +1 -1
- package/dist/plugins/parcel/index.js +2 -2
- package/dist/plugins/payload/index.d.ts +3 -0
- package/dist/plugins/payload/index.js +29 -0
- package/dist/plugins/payload/types.d.ts +10 -0
- package/dist/plugins/payload/types.js +1 -0
- package/dist/plugins/playwright/index.d.ts +2 -2
- package/dist/plugins/playwright/index.js +5 -5
- package/dist/plugins/playwright-ct/index.d.ts +1 -1
- package/dist/plugins/playwright-ct/index.js +3 -3
- package/dist/plugins/playwright-test/index.d.ts +1 -1
- package/dist/plugins/playwright-test/index.js +1 -1
- package/dist/plugins/plop/index.d.ts +1 -1
- package/dist/plugins/plop/index.js +1 -1
- package/dist/plugins/pm2/index.d.ts +1 -1
- package/dist/plugins/pm2/index.js +3 -3
- package/dist/plugins/pnpm/index.d.ts +1 -1
- package/dist/plugins/pnpm/index.js +1 -1
- package/dist/plugins/postcss/index.d.ts +1 -1
- package/dist/plugins/postcss/index.js +3 -3
- package/dist/plugins/preconstruct/index.d.ts +1 -1
- package/dist/plugins/preconstruct/index.js +3 -3
- package/dist/plugins/prettier/index.d.ts +1 -1
- package/dist/plugins/prettier/index.js +2 -2
- package/dist/plugins/prisma/index.d.ts +1 -1
- package/dist/plugins/prisma/index.js +5 -5
- package/dist/plugins/qwik/index.d.ts +3 -0
- package/dist/plugins/qwik/index.js +47 -0
- package/dist/plugins/qwik/resolveFromAST.d.ts +3 -0
- package/dist/plugins/qwik/resolveFromAST.js +37 -0
- package/dist/plugins/react-cosmos/index.d.ts +1 -1
- package/dist/plugins/react-cosmos/index.js +3 -3
- package/dist/plugins/react-native/index.d.ts +1 -1
- package/dist/plugins/react-native/index.js +2 -2
- package/dist/plugins/react-router/index.d.ts +1 -1
- package/dist/plugins/react-router/index.js +5 -5
- package/dist/plugins/relay/index.d.ts +1 -1
- package/dist/plugins/relay/index.js +3 -3
- package/dist/plugins/release-it/index.d.ts +1 -1
- package/dist/plugins/release-it/index.js +2 -2
- package/dist/plugins/remark/index.d.ts +1 -1
- package/dist/plugins/remark/index.js +3 -3
- package/dist/plugins/remix/index.d.ts +1 -1
- package/dist/plugins/remix/index.js +1 -1
- package/dist/plugins/rollup/index.d.ts +1 -1
- package/dist/plugins/rollup/index.js +1 -1
- package/dist/plugins/rsbuild/index.d.ts +1 -1
- package/dist/plugins/rsbuild/index.js +2 -2
- package/dist/plugins/rslib/index.d.ts +1 -1
- package/dist/plugins/rslib/index.js +1 -1
- package/dist/plugins/rspack/index.d.ts +1 -1
- package/dist/plugins/rspack/index.js +2 -2
- package/dist/plugins/rstest/index.d.ts +1 -1
- package/dist/plugins/rstest/index.js +2 -2
- package/dist/plugins/semantic-release/index.d.ts +1 -1
- package/dist/plugins/semantic-release/index.js +3 -3
- package/dist/plugins/sentry/index.d.ts +1 -1
- package/dist/plugins/sentry/index.js +1 -1
- package/dist/plugins/simple-git-hooks/index.d.ts +1 -1
- package/dist/plugins/simple-git-hooks/index.js +2 -2
- package/dist/plugins/size-limit/index.d.ts +1 -1
- package/dist/plugins/size-limit/index.js +3 -3
- package/dist/plugins/sst/index.d.ts +1 -1
- package/dist/plugins/sst/index.js +2 -2
- package/dist/plugins/sst/resolveFromAST.d.ts +1 -1
- package/dist/plugins/sst/resolveFromAST.js +4 -4
- package/dist/plugins/starlight/index.d.ts +1 -1
- package/dist/plugins/starlight/index.js +4 -4
- package/dist/plugins/starlight/resolveFromAST.js +1 -1
- package/dist/plugins/storybook/index.d.ts +1 -1
- package/dist/plugins/storybook/index.js +3 -3
- package/dist/plugins/stryker/index.d.ts +1 -1
- package/dist/plugins/stryker/index.js +2 -2
- package/dist/plugins/stylelint/index.d.ts +1 -1
- package/dist/plugins/stylelint/index.js +3 -3
- package/dist/plugins/svelte/compiler.d.ts +1 -1
- package/dist/plugins/svelte/compiler.js +1 -1
- package/dist/plugins/svelte/index.d.ts +1 -1
- package/dist/plugins/svelte/index.js +3 -3
- package/dist/plugins/sveltekit/index.d.ts +1 -1
- package/dist/plugins/sveltekit/index.js +3 -3
- package/dist/plugins/svgo/index.d.ts +1 -1
- package/dist/plugins/svgo/index.js +1 -1
- package/dist/plugins/svgr/index.d.ts +1 -1
- package/dist/plugins/svgr/index.js +2 -2
- package/dist/plugins/swc/index.d.ts +1 -1
- package/dist/plugins/swc/index.js +5 -3
- package/dist/plugins/swc/types.d.ts +1 -0
- package/dist/plugins/syncpack/index.d.ts +1 -1
- package/dist/plugins/syncpack/index.js +2 -2
- package/dist/plugins/tailwind/index.d.ts +1 -1
- package/dist/plugins/tailwind/index.js +2 -2
- package/dist/plugins/tanstack-router/index.d.ts +1 -1
- package/dist/plugins/tanstack-router/index.js +3 -3
- package/dist/plugins/taskfile/index.d.ts +1 -1
- package/dist/plugins/taskfile/index.js +3 -3
- package/dist/plugins/travis/index.d.ts +1 -1
- package/dist/plugins/travis/index.js +1 -1
- package/dist/plugins/ts-node/index.d.ts +1 -1
- package/dist/plugins/tsdown/index.d.ts +1 -1
- package/dist/plugins/tsdown/index.js +14 -9
- package/dist/plugins/tsdown/types.d.ts +1 -1
- package/dist/plugins/tsup/index.d.ts +1 -1
- package/dist/plugins/tsup/index.js +2 -2
- package/dist/plugins/tsx/index.d.ts +1 -1
- package/dist/plugins/tsx/index.js +2 -2
- package/dist/plugins/typedoc/index.d.ts +1 -1
- package/dist/plugins/typedoc/index.js +2 -2
- package/dist/plugins/typescript/index.d.ts +1 -1
- package/dist/plugins/typescript/index.js +10 -4
- package/dist/plugins/unbuild/index.d.ts +1 -1
- package/dist/plugins/unbuild/index.js +2 -2
- package/dist/plugins/unocss/index.d.ts +1 -1
- package/dist/plugins/unocss/index.js +2 -2
- package/dist/plugins/vercel-og/index.d.ts +1 -1
- package/dist/plugins/vercel-og/index.js +1 -1
- package/dist/plugins/vike/index.d.ts +1 -1
- package/dist/plugins/vike/index.js +1 -1
- package/dist/plugins/vite/helpers.d.ts +1 -1
- package/dist/plugins/vite/helpers.js +4 -4
- package/dist/plugins/vite/index.d.ts +1 -1
- package/dist/plugins/vite/index.js +5 -5
- package/dist/plugins/vite/visitors/importMetaGlob.d.ts +1 -1
- package/dist/plugins/vite/visitors/importMetaGlob.js +4 -4
- package/dist/plugins/vitepress/index.d.ts +1 -1
- package/dist/plugins/vitepress/index.js +1 -1
- package/dist/plugins/vitest/helpers.d.ts +1 -1
- package/dist/plugins/vitest/index.d.ts +2 -2
- package/dist/plugins/vitest/index.js +19 -12
- package/dist/plugins/vitest/types.d.ts +1 -0
- package/dist/plugins/vue/compiler.d.ts +1 -1
- package/dist/plugins/vue/compiler.js +1 -1
- package/dist/plugins/vue/index.d.ts +1 -1
- package/dist/plugins/vue/index.js +4 -4
- package/dist/plugins/webdriver-io/index.d.ts +1 -1
- package/dist/plugins/webdriver-io/index.js +2 -2
- package/dist/plugins/webpack/index.d.ts +2 -2
- package/dist/plugins/webpack/index.js +5 -5
- package/dist/plugins/webpack/visitors/requireContext.d.ts +1 -1
- package/dist/plugins/webpack/visitors/requireContext.js +6 -5
- package/dist/plugins/wireit/index.d.ts +1 -1
- package/dist/plugins/wireit/index.js +1 -1
- package/dist/plugins/wrangler/index.d.ts +1 -1
- package/dist/plugins/wrangler/index.js +3 -3
- package/dist/plugins/xo/index.d.ts +1 -1
- package/dist/plugins/xo/index.js +2 -2
- package/dist/plugins/xo/types.d.ts +1 -1
- package/dist/plugins/yarn/index.d.ts +1 -1
- package/dist/plugins/yarn/index.js +5 -4
- package/dist/plugins/yorkie/index.d.ts +1 -1
- package/dist/plugins/yorkie/index.js +2 -2
- package/dist/plugins/zx/index.d.ts +1 -1
- package/dist/plugins/zx/index.js +2 -2
- package/dist/plugins/zx/visitors/zx.d.ts +1 -1
- package/dist/plugins/zx/visitors/zx.js +2 -2
- package/dist/plugins.d.ts +3 -3
- package/dist/plugins.js +2 -2
- package/dist/reporters/codeclimate.d.ts +1 -1
- package/dist/reporters/codeclimate.js +2 -2
- package/dist/reporters/codeowners.d.ts +1 -1
- package/dist/reporters/codeowners.js +3 -3
- package/dist/reporters/compact.d.ts +1 -1
- package/dist/reporters/compact.js +2 -2
- package/dist/reporters/disclosure.d.ts +1 -1
- package/dist/reporters/disclosure.js +1 -1
- package/dist/reporters/github-actions.d.ts +1 -1
- package/dist/reporters/github-actions.js +4 -4
- package/dist/reporters/index.d.ts +8 -8
- package/dist/reporters/index.js +8 -8
- package/dist/reporters/json.d.ts +1 -1
- package/dist/reporters/json.js +4 -4
- package/dist/reporters/markdown.d.ts +1 -1
- package/dist/reporters/markdown.js +2 -2
- package/dist/reporters/symbols.d.ts +1 -1
- package/dist/reporters/symbols.js +2 -2
- package/dist/reporters/trace.d.ts +4 -4
- package/dist/reporters/trace.js +4 -4
- package/dist/reporters/util/configuration-hints.d.ts +2 -2
- package/dist/reporters/util/configuration-hints.js +4 -4
- package/dist/reporters/util/util.d.ts +3 -3
- package/dist/reporters/util/util.js +3 -3
- package/dist/reporters/watch.d.ts +3 -3
- package/dist/reporters/watch.js +3 -3
- package/dist/run.d.ts +12 -12
- package/dist/run.js +13 -13
- package/dist/schema/configuration.d.ts +45 -0
- 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.d.ts +3 -3
- package/dist/session/build-maps.js +3 -3
- package/dist/session/file-descriptor.d.ts +2 -2
- package/dist/session/file-descriptor.js +3 -3
- package/dist/session/index.d.ts +12 -12
- package/dist/session/index.js +7 -7
- package/dist/session/package-json-descriptor.d.ts +2 -2
- package/dist/session/package-json-descriptor.js +1 -1
- package/dist/session/session.d.ts +7 -7
- package/dist/session/session.js +3 -3
- package/dist/session/types.d.ts +2 -2
- package/dist/types/PluginNames.d.ts +2 -2
- package/dist/types/PluginNames.js +3 -0
- package/dist/types/args.d.ts +1 -1
- package/dist/types/config.d.ts +11 -11
- package/dist/types/exports.d.ts +1 -1
- package/dist/types/issues.d.ts +2 -2
- package/dist/types/module-graph.d.ts +2 -2
- package/dist/types/package-json.d.ts +1 -1
- package/dist/types/project.d.ts +2 -2
- package/dist/types.d.ts +2 -2
- package/dist/typescript/SourceFileManager.d.ts +1 -1
- package/dist/typescript/SourceFileManager.js +4 -4
- package/dist/typescript/ast-helpers.d.ts +3 -3
- package/dist/typescript/ast-helpers.js +7 -8
- package/dist/typescript/create-hosts.d.ts +3 -3
- package/dist/typescript/create-hosts.js +2 -2
- package/dist/typescript/get-imports-and-exports.d.ts +3 -3
- package/dist/typescript/get-imports-and-exports.js +24 -15
- package/dist/typescript/has-refs-in-file.d.ts +1 -1
- package/dist/typescript/has-refs-in-file.js +2 -2
- package/dist/typescript/pragmas/custom.d.ts +2 -2
- package/dist/typescript/pragmas/custom.js +4 -4
- package/dist/typescript/pragmas/index.d.ts +2 -2
- package/dist/typescript/pragmas/index.js +2 -2
- package/dist/typescript/pragmas/typescript.d.ts +2 -2
- package/dist/typescript/pragmas/typescript.js +1 -1
- package/dist/typescript/resolve-module-names.d.ts +1 -1
- package/dist/typescript/resolve-module-names.js +6 -6
- package/dist/typescript/visitors/dynamic-imports/importCall.d.ts +1 -1
- package/dist/typescript/visitors/dynamic-imports/importCall.js +3 -3
- package/dist/typescript/visitors/dynamic-imports/importType.d.ts +1 -1
- package/dist/typescript/visitors/dynamic-imports/importType.js +2 -2
- package/dist/typescript/visitors/dynamic-imports/index.d.ts +2 -2
- package/dist/typescript/visitors/dynamic-imports/index.js +7 -7
- package/dist/typescript/visitors/dynamic-imports/jsDocType.d.ts +2 -2
- package/dist/typescript/visitors/dynamic-imports/jsDocType.js +2 -2
- package/dist/typescript/visitors/dynamic-imports/moduleRegister.d.ts +1 -1
- package/dist/typescript/visitors/dynamic-imports/moduleRegister.js +3 -3
- package/dist/typescript/visitors/dynamic-imports/requireCall.d.ts +1 -1
- package/dist/typescript/visitors/dynamic-imports/requireCall.js +4 -4
- package/dist/typescript/visitors/dynamic-imports/resolveCall.d.ts +1 -1
- package/dist/typescript/visitors/dynamic-imports/resolveCall.js +3 -3
- package/dist/typescript/visitors/dynamic-imports/urlConstructor.d.ts +1 -1
- package/dist/typescript/visitors/dynamic-imports/urlConstructor.js +2 -2
- package/dist/typescript/visitors/exports/exportAssignment.d.ts +1 -1
- package/dist/typescript/visitors/exports/exportAssignment.js +4 -4
- package/dist/typescript/visitors/exports/exportDeclaration.d.ts +1 -1
- package/dist/typescript/visitors/exports/exportDeclaration.js +3 -3
- package/dist/typescript/visitors/exports/exportKeyword.d.ts +1 -1
- package/dist/typescript/visitors/exports/exportKeyword.js +5 -5
- package/dist/typescript/visitors/exports/exportsAccessExpression.d.ts +1 -1
- package/dist/typescript/visitors/exports/exportsAccessExpression.js +3 -3
- package/dist/typescript/visitors/exports/index.d.ts +1 -1
- package/dist/typescript/visitors/exports/index.js +5 -5
- package/dist/typescript/visitors/exports/moduleExportsAccessExpression.d.ts +1 -1
- package/dist/typescript/visitors/exports/moduleExportsAccessExpression.js +4 -4
- package/dist/typescript/visitors/helpers.d.ts +1 -1
- package/dist/typescript/visitors/imports/importDeclaration.d.ts +1 -1
- package/dist/typescript/visitors/imports/importDeclaration.js +3 -3
- package/dist/typescript/visitors/imports/importEqualsDeclaration.d.ts +1 -1
- package/dist/typescript/visitors/imports/importEqualsDeclaration.js +3 -3
- package/dist/typescript/visitors/imports/index.d.ts +1 -1
- package/dist/typescript/visitors/imports/index.js +3 -3
- package/dist/typescript/visitors/imports/reExportDeclaration.d.ts +1 -1
- package/dist/typescript/visitors/imports/reExportDeclaration.js +2 -2
- package/dist/typescript/visitors/index.d.ts +3 -3
- package/dist/typescript/visitors/scripts/bun.d.ts +1 -1
- package/dist/typescript/visitors/scripts/bun.js +3 -3
- package/dist/typescript/visitors/scripts/index.d.ts +2 -2
- package/dist/typescript/visitors/scripts/index.js +1 -1
- package/dist/util/Performance.js +2 -2
- package/dist/util/catalog.d.ts +2 -2
- package/dist/util/catalog.js +3 -3
- package/dist/util/codeowners.js +2 -2
- package/dist/util/create-input-handler.d.ts +6 -6
- package/dist/util/create-input-handler.js +7 -7
- package/dist/util/create-options.d.ts +52 -22
- package/dist/util/create-options.js +13 -13
- package/dist/util/create-workspace-graph.d.ts +1 -1
- package/dist/util/create-workspace-graph.js +1 -1
- package/dist/util/file-entry-cache.js +4 -4
- package/dist/util/fs.d.ts +2 -2
- package/dist/util/fs.js +4 -4
- package/dist/util/get-included-issue-types.d.ts +1 -1
- package/dist/util/get-included-issue-types.js +2 -2
- package/dist/util/git.js +1 -1
- package/dist/util/glob-core.d.ts +2 -2
- package/dist/util/glob-core.js +58 -40
- package/dist/util/glob.js +4 -4
- package/dist/util/input.d.ts +2 -2
- package/dist/util/input.js +1 -1
- package/dist/util/issue-initializers.d.ts +1 -1
- package/dist/util/issue-initializers.js +1 -1
- package/dist/util/jiti.js +1 -1
- package/dist/util/load-config.d.ts +1 -1
- package/dist/util/load-config.js +3 -3
- package/dist/util/load-tsconfig.js +2 -2
- package/dist/util/loader.js +14 -6
- package/dist/util/map-workspaces.d.ts +1 -1
- package/dist/util/map-workspaces.js +4 -4
- package/dist/util/module-graph.d.ts +1 -1
- package/dist/util/modules.js +2 -2
- package/dist/util/package-json.d.ts +1 -1
- package/dist/util/package-json.js +10 -0
- package/dist/util/package-name.d.ts +1 -1
- package/dist/util/package-name.js +1 -1
- package/dist/util/plugin.d.ts +2 -2
- package/dist/util/plugin.js +5 -5
- package/dist/util/remove-export.js +1 -1
- package/dist/util/reporter.d.ts +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/table.js +1 -1
- package/dist/util/tag.d.ts +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 +5 -5
- package/dist/util/trace.d.ts +1 -1
- package/dist/util/watch.d.ts +10 -10
- package/dist/util/watch.js +8 -7
- package/dist/util/workspace-file-filter.js +2 -2
- package/dist/util/workspace-selectors.d.ts +1 -1
- package/dist/util/workspace-selectors.js +4 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +65 -65
- package/schema.json +12 -0
- package/vendor/bash-parser/README.md +0 -7
- package/vendor/bash-parser/index.d.ts +0 -79
- package/vendor/bash-parser/index.js +0 -58
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import parseArgs from 'minimist';
|
|
2
|
-
import { toBinary } from
|
|
3
|
-
import { isValidBinary } from
|
|
4
|
-
import { resolveDlx } from
|
|
2
|
+
import { toBinary } from "../../util/input.js";
|
|
3
|
+
import { isValidBinary } from "../../util/modules.js";
|
|
4
|
+
import { resolveDlx } from "./pnpx.js";
|
|
5
5
|
const commands = [
|
|
6
6
|
'add',
|
|
7
7
|
'approve-builds',
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { BinaryResolver, BinaryResolverOptions } from '../../types/config.
|
|
2
|
-
export declare const resolveDlx: (args: string[], options: BinaryResolverOptions) => import("../../util/input.
|
|
1
|
+
import type { BinaryResolver, BinaryResolverOptions } from '../../types/config.ts';
|
|
2
|
+
export declare const resolveDlx: (args: string[], options: BinaryResolverOptions) => import("../../util/input.ts").Input[];
|
|
3
3
|
export declare const resolve: BinaryResolver;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import parseArgs from 'minimist';
|
|
2
|
-
import { toDependency } from
|
|
3
|
-
import { stripVersionFromSpecifier } from
|
|
2
|
+
import { toDependency } from "../../util/input.js";
|
|
3
|
+
import { stripVersionFromSpecifier } from "../../util/modules.js";
|
|
4
4
|
export const resolveDlx = (args, options) => {
|
|
5
5
|
const parsed = parseArgs(args, {
|
|
6
6
|
boolean: ['silent'],
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { BinaryResolver } from '../../types/config.
|
|
1
|
+
import type { BinaryResolver } from '../../types/config.ts';
|
|
2
2
|
export declare const resolve: BinaryResolver;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import parseArgs from 'minimist';
|
|
2
|
-
import { isBinary, isDependency, toBinary, toDependency } from
|
|
3
|
-
import { stripVersionFromSpecifier } from
|
|
4
|
-
import { join } from
|
|
5
|
-
import { argsFrom } from
|
|
2
|
+
import { isBinary, isDependency, toBinary, toDependency } from "../../util/input.js";
|
|
3
|
+
import { stripVersionFromSpecifier } from "../../util/modules.js";
|
|
4
|
+
import { join } from "../../util/path.js";
|
|
5
|
+
import { argsFrom } from "../util.js";
|
|
6
6
|
const commands = [
|
|
7
7
|
'add',
|
|
8
8
|
'bin',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { BinaryResolver } from '../types/config.
|
|
1
|
+
import type { BinaryResolver } from '../types/config.ts';
|
|
2
2
|
export declare const resolve: BinaryResolver;
|
package/dist/binaries/plugins.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import parseArgs from 'minimist';
|
|
2
|
-
import { pluginArgsMap } from
|
|
3
|
-
import { compact } from
|
|
4
|
-
import { toBinary, toConfig, toDeferResolve, toDeferResolveEntry, toEntry } from
|
|
5
|
-
import { extractBinary } from
|
|
6
|
-
import { dirname } from
|
|
7
|
-
import { resolve as fallbackResolve } from
|
|
2
|
+
import { pluginArgsMap } from "../plugins.js";
|
|
3
|
+
import { compact } from "../util/array.js";
|
|
4
|
+
import { toBinary, toConfig, toDeferResolve, toDeferResolveEntry, toEntry } from "../util/input.js";
|
|
5
|
+
import { extractBinary } from "../util/modules.js";
|
|
6
|
+
import { dirname } from "../util/path.js";
|
|
7
|
+
import { resolve as fallbackResolve } from "./fallback.js";
|
|
8
8
|
const isGlobLikeMatch = /(^!|[*+\\(|{^$])/;
|
|
9
9
|
const isGlobLike = (value) => isGlobLikeMatch.test(value);
|
|
10
10
|
const nodeLoadersArgs = { import: ['r', 'experimental-loader', 'require', 'loader'] };
|
package/dist/cli.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { fix } from
|
|
2
|
-
import { run } from
|
|
3
|
-
import parseArgs, { helpText } from
|
|
4
|
-
import { createOptions } from
|
|
5
|
-
import { getKnownErrors, hasErrorCause, isConfigurationError, isKnownError, isLoaderError, isModuleNotFoundError, } from
|
|
6
|
-
import { logError, logWarning } from
|
|
7
|
-
import { perfObserver } from
|
|
8
|
-
import { runPreprocessors, runReporters } from
|
|
9
|
-
import { prettyMilliseconds } from
|
|
10
|
-
import { version } from
|
|
1
|
+
import { fix } from "./IssueFixer.js";
|
|
2
|
+
import { run } from "./run.js";
|
|
3
|
+
import parseArgs, { helpText } from "./util/cli-arguments.js";
|
|
4
|
+
import { createOptions } from "./util/create-options.js";
|
|
5
|
+
import { getKnownErrors, hasErrorCause, isConfigurationError, isKnownError, isLoaderError, isModuleNotFoundError, } from "./util/errors.js";
|
|
6
|
+
import { logError, logWarning } from "./util/log.js";
|
|
7
|
+
import { perfObserver } from "./util/Performance.js";
|
|
8
|
+
import { runPreprocessors, runReporters } from "./util/reporter.js";
|
|
9
|
+
import { prettyMilliseconds } from "./util/string.js";
|
|
10
|
+
import { version } from "./version.js";
|
|
11
11
|
let args = {};
|
|
12
12
|
try {
|
|
13
13
|
args = parseArgs();
|
|
@@ -56,7 +56,7 @@ const main = async () => {
|
|
|
56
56
|
};
|
|
57
57
|
const finalData = await runPreprocessors(args.preprocessor ?? [], initialData);
|
|
58
58
|
if (options.isFix)
|
|
59
|
-
await fix(finalData.issues, options);
|
|
59
|
+
await fix(finalData.issues, finalData.counters, options);
|
|
60
60
|
await runReporters(args.reporter ?? ['symbols'], finalData);
|
|
61
61
|
const totalErrorCount = Object.keys(finalData.report)
|
|
62
62
|
.filter(reportGroup => finalData.report[reportGroup] && options.rules[reportGroup] === 'error')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { RawConfiguration } from '../types/config.
|
|
2
|
-
import type { DependencySet } from '../types/workspace.
|
|
3
|
-
import type { AsyncCompilers, CompilerAsync, CompilerSync, Compilers, RawSyncCompilers, SyncCompilers } from './types.
|
|
1
|
+
import type { RawConfiguration } from '../types/config.ts';
|
|
2
|
+
import type { DependencySet } from '../types/workspace.ts';
|
|
3
|
+
import type { AsyncCompilers, CompilerAsync, CompilerSync, Compilers, RawSyncCompilers, SyncCompilers } from './types.ts';
|
|
4
4
|
export declare const normalizeCompilerExtension: (ext: string) => string;
|
|
5
5
|
export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
6
6
|
syncCompilers: Record<string, true | CompilerSync>;
|
|
@@ -355,6 +355,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
355
355
|
entry?: string | string[] | undefined;
|
|
356
356
|
project?: string | string[] | undefined;
|
|
357
357
|
} | undefined;
|
|
358
|
+
'openapi-ts'?: string | boolean | string[] | {
|
|
359
|
+
config?: string | string[] | undefined;
|
|
360
|
+
entry?: string | string[] | undefined;
|
|
361
|
+
project?: string | string[] | undefined;
|
|
362
|
+
} | undefined;
|
|
358
363
|
oxlint?: string | boolean | string[] | {
|
|
359
364
|
config?: string | string[] | undefined;
|
|
360
365
|
entry?: string | string[] | undefined;
|
|
@@ -365,6 +370,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
365
370
|
entry?: string | string[] | undefined;
|
|
366
371
|
project?: string | string[] | undefined;
|
|
367
372
|
} | undefined;
|
|
373
|
+
payload?: string | boolean | string[] | {
|
|
374
|
+
config?: string | string[] | undefined;
|
|
375
|
+
entry?: string | string[] | undefined;
|
|
376
|
+
project?: string | string[] | undefined;
|
|
377
|
+
} | undefined;
|
|
368
378
|
playwright?: string | boolean | string[] | {
|
|
369
379
|
config?: string | string[] | undefined;
|
|
370
380
|
entry?: string | string[] | undefined;
|
|
@@ -415,6 +425,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
415
425
|
entry?: string | string[] | undefined;
|
|
416
426
|
project?: string | string[] | undefined;
|
|
417
427
|
} | undefined;
|
|
428
|
+
qwik?: string | boolean | string[] | {
|
|
429
|
+
config?: string | string[] | undefined;
|
|
430
|
+
entry?: string | string[] | undefined;
|
|
431
|
+
project?: string | string[] | undefined;
|
|
432
|
+
} | undefined;
|
|
418
433
|
'react-cosmos'?: string | boolean | string[] | {
|
|
419
434
|
config?: string | string[] | undefined;
|
|
420
435
|
entry?: string | string[] | undefined;
|
|
@@ -1031,6 +1046,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
1031
1046
|
entry?: string | string[] | undefined;
|
|
1032
1047
|
project?: string | string[] | undefined;
|
|
1033
1048
|
} | undefined;
|
|
1049
|
+
'openapi-ts'?: string | boolean | string[] | {
|
|
1050
|
+
config?: string | string[] | undefined;
|
|
1051
|
+
entry?: string | string[] | undefined;
|
|
1052
|
+
project?: string | string[] | undefined;
|
|
1053
|
+
} | undefined;
|
|
1034
1054
|
oxlint?: string | boolean | string[] | {
|
|
1035
1055
|
config?: string | string[] | undefined;
|
|
1036
1056
|
entry?: string | string[] | undefined;
|
|
@@ -1041,6 +1061,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
1041
1061
|
entry?: string | string[] | undefined;
|
|
1042
1062
|
project?: string | string[] | undefined;
|
|
1043
1063
|
} | undefined;
|
|
1064
|
+
payload?: string | boolean | string[] | {
|
|
1065
|
+
config?: string | string[] | undefined;
|
|
1066
|
+
entry?: string | string[] | undefined;
|
|
1067
|
+
project?: string | string[] | undefined;
|
|
1068
|
+
} | undefined;
|
|
1044
1069
|
playwright?: string | boolean | string[] | {
|
|
1045
1070
|
config?: string | string[] | undefined;
|
|
1046
1071
|
entry?: string | string[] | undefined;
|
|
@@ -1091,6 +1116,11 @@ export declare const partitionCompilers: (rawLocalConfig: RawConfiguration) => {
|
|
|
1091
1116
|
entry?: string | string[] | undefined;
|
|
1092
1117
|
project?: string | string[] | undefined;
|
|
1093
1118
|
} | undefined;
|
|
1119
|
+
qwik?: string | boolean | string[] | {
|
|
1120
|
+
config?: string | string[] | undefined;
|
|
1121
|
+
entry?: string | string[] | undefined;
|
|
1122
|
+
project?: string | string[] | undefined;
|
|
1123
|
+
} | undefined;
|
|
1094
1124
|
'react-cosmos'?: string | boolean | string[] | {
|
|
1095
1125
|
config?: string | string[] | undefined;
|
|
1096
1126
|
entry?: string | string[] | undefined;
|
package/dist/compilers/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import MDX from
|
|
2
|
-
import SCSS from
|
|
1
|
+
import MDX from "./mdx.js";
|
|
2
|
+
import SCSS from "./scss.js";
|
|
3
3
|
const isAsyncCompiler = (fn) => (fn ? fn.constructor.name === 'AsyncFunction' : false);
|
|
4
4
|
export const normalizeCompilerExtension = (ext) => ext.replace(/^\.*/, '.');
|
|
5
5
|
export const partitionCompilers = (rawLocalConfig) => {
|
package/dist/compilers/mdx.d.ts
CHANGED
package/dist/compilers/mdx.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fencedCodeBlockMatcher,
|
|
1
|
+
import { fencedCodeBlockMatcher, frontmatterMatcher, inlineCodeMatcher } from "./compilers.js";
|
|
2
2
|
const mdxDependencies = [
|
|
3
3
|
'@mdx-js/esbuild',
|
|
4
4
|
'@mdx-js/loader',
|
|
@@ -11,5 +11,12 @@ const mdxDependencies = [
|
|
|
11
11
|
'remark-mdx',
|
|
12
12
|
];
|
|
13
13
|
const condition = (hasDependency) => mdxDependencies.some(hasDependency);
|
|
14
|
-
const
|
|
14
|
+
const mdxImportMatcher = /^import[^'"]+['"][^'"]+['"]/gm;
|
|
15
|
+
const compiler = (text) => [
|
|
16
|
+
...text
|
|
17
|
+
.replace(frontmatterMatcher, '')
|
|
18
|
+
.replace(fencedCodeBlockMatcher, '')
|
|
19
|
+
.replace(inlineCodeMatcher, '')
|
|
20
|
+
.matchAll(mdxImportMatcher),
|
|
21
|
+
].join('\n');
|
|
15
22
|
export default { condition, compiler };
|
package/dist/compilers/scss.d.ts
CHANGED
package/dist/compilers/scss.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs';
|
|
2
|
-
import { basename, dirname, join } from
|
|
2
|
+
import { basename, dirname, join } from "../util/path.js";
|
|
3
3
|
const condition = (hasDependency) => hasDependency('sass') || hasDependency('sass-embedded') || hasDependency('node-sass');
|
|
4
4
|
const importMatcher = /@(?:use|import|forward)\s+['"](pkg:)?([^'"]+)['"]/g;
|
|
5
5
|
const resolvePartial = (specifier, containingFile) => {
|
package/dist/constants.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare const ANONYMOUS = "__anonymous";
|
|
|
4
4
|
export declare const KNIP_CONFIG_LOCATIONS: string[];
|
|
5
5
|
export declare const DEFAULT_EXTENSIONS: string[];
|
|
6
6
|
export declare const IS_DTS: RegExp;
|
|
7
|
-
export declare const GLOBAL_IGNORE_PATTERNS: string[];
|
|
7
|
+
export declare const GLOBAL_IGNORE_PATTERNS: readonly string[];
|
|
8
8
|
export declare const PUBLIC_TAG = "@public";
|
|
9
9
|
export declare const INTERNAL_TAG = "@internal";
|
|
10
10
|
export declare const BETA_TAG = "@beta";
|
package/dist/constants.js
CHANGED
|
@@ -13,7 +13,7 @@ export const KNIP_CONFIG_LOCATIONS = [
|
|
|
13
13
|
];
|
|
14
14
|
export const DEFAULT_EXTENSIONS = ['.js', '.mjs', '.cjs', '.jsx', '.ts', '.tsx', '.mts', '.cts'];
|
|
15
15
|
export const IS_DTS = /\.d\.(c|m)?ts$/;
|
|
16
|
-
export const GLOBAL_IGNORE_PATTERNS = ['**/node_modules/**', '.yarn'];
|
|
16
|
+
export const GLOBAL_IGNORE_PATTERNS = ['**/node_modules/**', '.yarn', '.git'];
|
|
17
17
|
export const PUBLIC_TAG = '@public';
|
|
18
18
|
export const INTERNAL_TAG = '@internal';
|
|
19
19
|
export const BETA_TAG = '@beta';
|
package/dist/graph/analyze.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { CatalogCounselor } from '../CatalogCounselor.
|
|
2
|
-
import type { ConfigurationChief } from '../ConfigurationChief.
|
|
3
|
-
import type { ConsoleStreamer } from '../ConsoleStreamer.
|
|
4
|
-
import type { DependencyDeputy } from '../DependencyDeputy.
|
|
5
|
-
import type { IssueCollector } from '../IssueCollector.
|
|
6
|
-
import type { PrincipalFactory } from '../PrincipalFactory.
|
|
7
|
-
import type { ModuleGraph } from '../types/module-graph.
|
|
8
|
-
import type { MainOptions } from '../util/create-options.
|
|
1
|
+
import type { CatalogCounselor } from '../CatalogCounselor.ts';
|
|
2
|
+
import type { ConfigurationChief } from '../ConfigurationChief.ts';
|
|
3
|
+
import type { ConsoleStreamer } from '../ConsoleStreamer.ts';
|
|
4
|
+
import type { DependencyDeputy } from '../DependencyDeputy.ts';
|
|
5
|
+
import type { IssueCollector } from '../IssueCollector.ts';
|
|
6
|
+
import type { PrincipalFactory } from '../PrincipalFactory.ts';
|
|
7
|
+
import type { ModuleGraph } from '../types/module-graph.ts';
|
|
8
|
+
import type { MainOptions } from '../util/create-options.ts';
|
|
9
9
|
interface AnalyzeOptions {
|
|
10
10
|
analyzedFiles: Set<string>;
|
|
11
11
|
counselor: CatalogCounselor;
|
package/dist/graph/analyze.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createGraphExplorer } from
|
|
2
|
-
import { getIssueType, hasStrictlyEnumReferences } from
|
|
3
|
-
import traceReporter from
|
|
4
|
-
import { getPackageNameFromModuleSpecifier } from
|
|
5
|
-
import { findMatch } from
|
|
6
|
-
import { getShouldIgnoreHandler, getShouldIgnoreTagHandler } from
|
|
1
|
+
import { createGraphExplorer } from "../graph-explorer/explorer.js";
|
|
2
|
+
import { getIssueType, hasStrictlyEnumReferences } from "../graph-explorer/utils.js";
|
|
3
|
+
import traceReporter from "../reporters/trace.js";
|
|
4
|
+
import { getPackageNameFromModuleSpecifier } from "../util/modules.js";
|
|
5
|
+
import { findMatch } from "../util/regex.js";
|
|
6
|
+
import { getShouldIgnoreHandler, getShouldIgnoreTagHandler } from "../util/tag.js";
|
|
7
7
|
export const analyze = async ({ analyzedFiles, counselor, chief, collector, deputy, entryPaths, factory, graph, streamer, unreferencedFiles, options, }) => {
|
|
8
8
|
const shouldIgnore = getShouldIgnoreHandler(options.isProduction);
|
|
9
9
|
const shouldIgnoreTags = getShouldIgnoreTagHandler(options.tags);
|
package/dist/graph/build.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { CatalogCounselor } from '../CatalogCounselor.
|
|
2
|
-
import type { ConfigurationChief, Workspace } from '../ConfigurationChief.
|
|
3
|
-
import type { ConsoleStreamer } from '../ConsoleStreamer.
|
|
4
|
-
import type { DependencyDeputy } from '../DependencyDeputy.
|
|
5
|
-
import type { IssueCollector } from '../IssueCollector.
|
|
6
|
-
import type { PrincipalFactory } from '../PrincipalFactory.
|
|
7
|
-
import type { ProjectPrincipal } from '../ProjectPrincipal.
|
|
8
|
-
import type { ModuleGraph } from '../types/module-graph.
|
|
9
|
-
import type { MainOptions } from '../util/create-options.
|
|
1
|
+
import type { CatalogCounselor } from '../CatalogCounselor.ts';
|
|
2
|
+
import type { ConfigurationChief, Workspace } from '../ConfigurationChief.ts';
|
|
3
|
+
import type { ConsoleStreamer } from '../ConsoleStreamer.ts';
|
|
4
|
+
import type { DependencyDeputy } from '../DependencyDeputy.ts';
|
|
5
|
+
import type { IssueCollector } from '../IssueCollector.ts';
|
|
6
|
+
import type { PrincipalFactory } from '../PrincipalFactory.ts';
|
|
7
|
+
import type { ProjectPrincipal } from '../ProjectPrincipal.ts';
|
|
8
|
+
import type { ModuleGraph } from '../types/module-graph.ts';
|
|
9
|
+
import type { MainOptions } from '../util/create-options.ts';
|
|
10
10
|
interface BuildOptions {
|
|
11
11
|
chief: ConfigurationChief;
|
|
12
12
|
collector: IssueCollector;
|
package/dist/graph/build.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { _getInputsFromScripts } from
|
|
2
|
-
import { getCompilerExtensions, getIncludedCompilers, normalizeCompilerExtension } from
|
|
3
|
-
import { DEFAULT_EXTENSIONS, FOREIGN_FILE_EXTENSIONS, IS_DTS } from
|
|
4
|
-
import { partition } from
|
|
5
|
-
import { createInputHandler } from
|
|
6
|
-
import { debugLog, debugLogArray } from
|
|
7
|
-
import { _glob, _syncGlob, negate, prependDirToPattern as prependDir } from
|
|
8
|
-
import { isAlias, isConfig, isDeferResolveEntry, isDeferResolveProductionEntry, isEntry, isIgnore, isProductionEntry, isProject, toProductionEntry, } from
|
|
9
|
-
import { loadTSConfig } from
|
|
10
|
-
import { createFileNode, updateImportMap } from
|
|
11
|
-
import { getPackageNameFromModuleSpecifier, isStartsLikePackageName, sanitizeSpecifier } from
|
|
12
|
-
import { perfObserver } from
|
|
13
|
-
import { getEntrySpecifiersFromManifest, getManifestImportDependencies } from
|
|
14
|
-
import { dirname, extname, isAbsolute, join, relative, toRelative } from
|
|
15
|
-
import { augmentWorkspace, getModuleSourcePathHandler, getToSourcePathsHandler } from
|
|
16
|
-
import { WorkspaceWorker } from
|
|
1
|
+
import { _getInputsFromScripts } from "../binaries/index.js";
|
|
2
|
+
import { getCompilerExtensions, getIncludedCompilers, normalizeCompilerExtension } from "../compilers/index.js";
|
|
3
|
+
import { DEFAULT_EXTENSIONS, FOREIGN_FILE_EXTENSIONS, IS_DTS } from "../constants.js";
|
|
4
|
+
import { partition } from "../util/array.js";
|
|
5
|
+
import { createInputHandler } from "../util/create-input-handler.js";
|
|
6
|
+
import { debugLog, debugLogArray } from "../util/debug.js";
|
|
7
|
+
import { _glob, _syncGlob, negate, prependDirToPattern as prependDir } from "../util/glob.js";
|
|
8
|
+
import { isAlias, isConfig, isDeferResolveEntry, isDeferResolveProductionEntry, isEntry, isIgnore, isProductionEntry, isProject, toProductionEntry, } from "../util/input.js";
|
|
9
|
+
import { loadTSConfig } from "../util/load-tsconfig.js";
|
|
10
|
+
import { createFileNode, updateImportMap } from "../util/module-graph.js";
|
|
11
|
+
import { getPackageNameFromModuleSpecifier, isStartsLikePackageName, sanitizeSpecifier } from "../util/modules.js";
|
|
12
|
+
import { perfObserver } from "../util/Performance.js";
|
|
13
|
+
import { getEntrySpecifiersFromManifest, getManifestImportDependencies } from "../util/package-json.js";
|
|
14
|
+
import { dirname, extname, isAbsolute, join, relative, toRelative } from "../util/path.js";
|
|
15
|
+
import { augmentWorkspace, getModuleSourcePathHandler, getToSourcePathsHandler } from "../util/to-source-path.js";
|
|
16
|
+
import { WorkspaceWorker } from "../WorkspaceWorker.js";
|
|
17
17
|
export async function build({ chief, collector, counselor, deputy, factory, isGitIgnored, streamer, workspaces, options, }) {
|
|
18
18
|
const configFilesMap = new Map();
|
|
19
19
|
const enabledPluginsStore = new Map();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ModuleGraph } from '../types/module-graph.
|
|
2
|
-
import type { UsageResult } from './operations/get-usage.
|
|
3
|
-
import type { DefinitionResult } from './operations/resolve-definition.
|
|
1
|
+
import type { ModuleGraph } from '../types/module-graph.ts';
|
|
2
|
+
import type { UsageResult } from './operations/get-usage.ts';
|
|
3
|
+
import type { DefinitionResult } from './operations/resolve-definition.ts';
|
|
4
4
|
export declare const invalidateCache: (graph: ModuleGraph) => void;
|
|
5
5
|
export declare const getCachedDefinition: (graph: ModuleGraph, filePath: string, identifier: string) => DefinitionResult | null | undefined;
|
|
6
6
|
export declare const setCachedDefinition: (graph: ModuleGraph, filePath: string, identifier: string, result: DefinitionResult | null) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ModuleGraph } from '../types/module-graph.
|
|
1
|
+
import type { ModuleGraph } from '../types/module-graph.ts';
|
|
2
2
|
export declare const createGraphExplorer: (graph: ModuleGraph, entryPaths: Set<string>) => {
|
|
3
3
|
isReferenced: (filePath: string, identifier: string, options: {
|
|
4
4
|
includeEntryExports: boolean;
|
|
@@ -7,12 +7,12 @@ export declare const createGraphExplorer: (graph: ModuleGraph, entryPaths: Set<s
|
|
|
7
7
|
buildExportsTree: (options: {
|
|
8
8
|
filePath?: string;
|
|
9
9
|
identifier?: string;
|
|
10
|
-
}) => import("./operations/build-exports-tree.
|
|
11
|
-
getDependencyUsage: (pattern?: string | RegExp) => Map<string, import("./operations/get-dependency-usage.
|
|
12
|
-
resolveDefinition: (filePath: string, identifier: string) => import("./operations/resolve-definition.
|
|
13
|
-
getUsage: (filePath: string, identifier: string) => import("./operations/get-usage.
|
|
14
|
-
findCycles: (filePath: string, maxDepth?: number) => import("../session/types.
|
|
15
|
-
getContention: (filePath: string) => Map<string, import("../session/types.
|
|
10
|
+
}) => import("./operations/build-exports-tree.ts").ExportsTreeNode[];
|
|
11
|
+
getDependencyUsage: (pattern?: string | RegExp) => Map<string, import("./operations/get-dependency-usage.ts").DependencyNodes>;
|
|
12
|
+
resolveDefinition: (filePath: string, identifier: string) => import("./operations/resolve-definition.ts").DefinitionResult | null;
|
|
13
|
+
getUsage: (filePath: string, identifier: string) => import("./operations/get-usage.ts").UsageResult;
|
|
14
|
+
findCycles: (filePath: string, maxDepth?: number) => import("../session/types.ts").Cycle[];
|
|
15
|
+
getContention: (filePath: string) => Map<string, import("../session/types.ts").ContentionDetails>;
|
|
16
16
|
invalidateCache: () => void;
|
|
17
17
|
};
|
|
18
18
|
export type GraphExplorer = ReturnType<typeof createGraphExplorer>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { invalidateCache as invalidateCacheInternal } from
|
|
2
|
-
import { buildExportsTree } from
|
|
3
|
-
import { findCycles } from
|
|
4
|
-
import { getContention } from
|
|
5
|
-
import { getDependencyUsage } from
|
|
6
|
-
import { getUsage } from
|
|
7
|
-
import { hasStrictlyNsReferences } from
|
|
8
|
-
import { isReferenced } from
|
|
9
|
-
import { resolveDefinition } from
|
|
1
|
+
import { invalidateCache as invalidateCacheInternal } from "./cache.js";
|
|
2
|
+
import { buildExportsTree } from "./operations/build-exports-tree.js";
|
|
3
|
+
import { findCycles } from "./operations/find-cycles.js";
|
|
4
|
+
import { getContention } from "./operations/get-contention.js";
|
|
5
|
+
import { getDependencyUsage } from "./operations/get-dependency-usage.js";
|
|
6
|
+
import { getUsage } from "./operations/get-usage.js";
|
|
7
|
+
import { hasStrictlyNsReferences } from "./operations/has-strictly-ns-references.js";
|
|
8
|
+
import { isReferenced } from "./operations/is-referenced.js";
|
|
9
|
+
import { resolveDefinition } from "./operations/resolve-definition.js";
|
|
10
10
|
export const createGraphExplorer = (graph, entryPaths) => {
|
|
11
11
|
return {
|
|
12
12
|
isReferenced: (filePath, identifier, options) => isReferenced(graph, entryPaths, filePath, identifier, options),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Identifier, ModuleGraph } from '../../types/module-graph.
|
|
2
|
-
import type { Via } from '../walk-down.
|
|
1
|
+
import type { Identifier, ModuleGraph } from '../../types/module-graph.ts';
|
|
2
|
+
import type { Via } from '../walk-down.ts';
|
|
3
3
|
export interface ExportsTreeNode {
|
|
4
4
|
filePath: string;
|
|
5
5
|
identifier: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CONTINUE } from
|
|
2
|
-
import { walkDown } from
|
|
1
|
+
import { CONTINUE } from "../constants.js";
|
|
2
|
+
import { walkDown } from "../walk-down.js";
|
|
3
3
|
export const buildExportsTree = (graph, entryPaths, options) => {
|
|
4
4
|
const traces = [];
|
|
5
5
|
const processFile = (filePath, file) => {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { Cycle } from '../../session/types.
|
|
2
|
-
import type { ModuleGraph } from '../../types/module-graph.
|
|
1
|
+
import type { Cycle } from '../../session/types.ts';
|
|
2
|
+
import type { ModuleGraph } from '../../types/module-graph.ts';
|
|
3
3
|
export declare const findCycles: (graph: ModuleGraph, filePath: string, maxDepth?: number) => Cycle[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ContentionDetails } from '../../session/types.
|
|
2
|
-
import type { ModuleGraph } from '../../types/module-graph.
|
|
1
|
+
import type { ContentionDetails } from '../../session/types.ts';
|
|
2
|
+
import type { ModuleGraph } from '../../types/module-graph.ts';
|
|
3
3
|
export declare const getContention: (graph: ModuleGraph, filePath: string) => Map<string, ContentionDetails>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IMPORT_STAR } from
|
|
2
|
-
import { getExportedIdentifiers } from
|
|
3
|
-
import { forEachAliasReExport, forEachPassThroughReExport, getStarReExportSources } from
|
|
1
|
+
import { IMPORT_STAR } from "../../constants.js";
|
|
2
|
+
import { getExportedIdentifiers } from "../utils.js";
|
|
3
|
+
import { forEachAliasReExport, forEachPassThroughReExport, getStarReExportSources } from "../visitors.js";
|
|
4
4
|
export const getContention = (graph, filePath) => {
|
|
5
5
|
const node = graph.get(filePath);
|
|
6
6
|
if (!node)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getPackageNameFromModuleSpecifier } from
|
|
1
|
+
import { getPackageNameFromModuleSpecifier } from "../../util/modules.js";
|
|
2
2
|
export const getDependencyUsage = (graph, pattern) => {
|
|
3
3
|
const result = new Map();
|
|
4
4
|
const isMatch = (packageName, binaryName) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Identifier, ModuleGraph, Position } from '../../types/module-graph.
|
|
2
|
-
import { type Via } from '../walk-down.
|
|
1
|
+
import type { Identifier, ModuleGraph, Position } from '../../types/module-graph.ts';
|
|
2
|
+
import { type Via } from '../walk-down.ts';
|
|
3
3
|
export interface UsageLocation extends Position {
|
|
4
4
|
filePath: string;
|
|
5
5
|
identifier: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IMPORT_STAR } from
|
|
2
|
-
import { getCachedUsage, setCachedUsage } from
|
|
3
|
-
import { CONTINUE } from
|
|
4
|
-
import { findImportRef } from
|
|
5
|
-
import { walkDown } from
|
|
1
|
+
import { IMPORT_STAR } from "../../constants.js";
|
|
2
|
+
import { getCachedUsage, setCachedUsage } from "../cache.js";
|
|
3
|
+
import { CONTINUE } from "../constants.js";
|
|
4
|
+
import { findImportRef } from "../utils.js";
|
|
5
|
+
import { walkDown } from "../walk-down.js";
|
|
6
6
|
export const getUsage = (graph, entryPaths, filePath, identifier) => {
|
|
7
7
|
const cached = getCachedUsage(graph, filePath, identifier);
|
|
8
8
|
if (cached)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ImportMaps, ModuleGraph } from '../../types/module-graph.
|
|
1
|
+
import type { ImportMaps, ModuleGraph } from '../../types/module-graph.ts';
|
|
2
2
|
export declare const hasStrictlyNsReferences: (graph: ModuleGraph, filePath: string, importsForExport: ImportMaps | undefined, identifier: string) => [boolean, string?];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getAliasReExportMap, getPassThroughReExportSources, getStarReExportSources } from
|
|
1
|
+
import { getAliasReExportMap, getPassThroughReExportSources, getStarReExportSources } from "../visitors.js";
|
|
2
2
|
export const hasStrictlyNsReferences = (graph, filePath, importsForExport, identifier) => {
|
|
3
3
|
const seen = new Set();
|
|
4
4
|
const walkDown = (path, importMaps, id) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Identifier, ModuleGraph } from '../../types/module-graph.
|
|
1
|
+
import type { Identifier, ModuleGraph } from '../../types/module-graph.ts';
|
|
2
2
|
export declare const isReferenced: (graph: ModuleGraph, entryPaths: Set<string>, filePath: string, id: Identifier, options: {
|
|
3
3
|
includeEntryExports: boolean;
|
|
4
4
|
}) => [boolean, string | undefined];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OPAQUE } from
|
|
2
|
-
import { getAliasReExportMap, getNamespaceReExportSources, getPassThroughReExportSources, getStarReExportSources, } from
|
|
1
|
+
import { OPAQUE } from "../../constants.js";
|
|
2
|
+
import { getAliasReExportMap, getNamespaceReExportSources, getPassThroughReExportSources, getStarReExportSources, } from "../visitors.js";
|
|
3
3
|
export const isReferenced = (graph, entryPaths, filePath, id, options) => {
|
|
4
4
|
const seen = new Set();
|
|
5
5
|
const walkDown = (path, id) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ReExportKind } from '../../session/types.
|
|
2
|
-
import type { Export, Identifier, ModuleGraph } from '../../types/module-graph.
|
|
1
|
+
import type { ReExportKind } from '../../session/types.ts';
|
|
2
|
+
import type { Export, Identifier, ModuleGraph } from '../../types/module-graph.ts';
|
|
3
3
|
interface TraversalStep {
|
|
4
4
|
filePath: string;
|
|
5
5
|
identifier: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getCachedDefinition, setCachedDefinition } from
|
|
2
|
-
import { CONTINUE, STOP } from
|
|
3
|
-
import { walkUp } from
|
|
1
|
+
import { getCachedDefinition, setCachedDefinition } from "../cache.js";
|
|
2
|
+
import { CONTINUE, STOP } from "../constants.js";
|
|
3
|
+
import { walkUp } from "../walk-up.js";
|
|
4
4
|
export const resolveDefinition = (graph, filePath, identifier) => {
|
|
5
5
|
const cached = getCachedDefinition(graph, filePath, identifier);
|
|
6
6
|
if (cached !== undefined)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Import, ImportMaps, ModuleGraph } from '../types/module-graph.
|
|
1
|
+
import type { Import, ImportMaps, ModuleGraph } from '../types/module-graph.ts';
|
|
2
2
|
export declare const getExportedIdentifiers: (graph: ModuleGraph, filePath: string, visited?: Set<string>) => Map<string, boolean>;
|
|
3
3
|
export declare const hasStrictlyEnumReferences: (importsForExport: ImportMaps | undefined, identifier: string) => boolean;
|
|
4
4
|
export declare const getIssueType: (hasOnlyNsReference: boolean, isType: boolean) => "exports" | "nsExports" | "types" | "nsTypes";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getCachedExportedIdentifiers, setCachedExportedIdentifiers } from
|
|
2
|
-
import { forEachAliasReExport, forEachNamespaceReExport, forEachPassThroughReExport, getStarReExportSources, } from
|
|
1
|
+
import { getCachedExportedIdentifiers, setCachedExportedIdentifiers } from "./cache.js";
|
|
2
|
+
import { forEachAliasReExport, forEachNamespaceReExport, forEachPassThroughReExport, getStarReExportSources, } from "./visitors.js";
|
|
3
3
|
export const getExportedIdentifiers = (graph, filePath, visited = new Set()) => {
|
|
4
4
|
if (visited.has(filePath))
|
|
5
5
|
return new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ImportMaps } from '../types/module-graph.
|
|
1
|
+
import type { ImportMaps } from '../types/module-graph.ts';
|
|
2
2
|
type PassThroughReExportCallback = (identifier: string, sources: Set<string>) => boolean | void;
|
|
3
3
|
type AliasReExportCallback = (identifier: string, alias: string, sources: Set<string>) => boolean | void;
|
|
4
4
|
type NamespaceReExportCallback = (namespace: string, sources: Set<string>) => boolean | void;
|