knip 5.85.0 → 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 +155 -143
- 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.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.js +1 -1
- 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 +23 -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 -136
- package/dist/plugins/index.js +140 -136
- 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 +4 -4
- 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 +1 -1
- package/dist/plugins/payload/index.js +2 -2
- 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 +4 -4
- 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 +15 -7
- 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 +4 -4
- 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 +12 -12
- package/dist/schema/configuration.d.ts +30 -0
- package/dist/schema/configuration.js +2 -2
- package/dist/schema/plugins.d.ts +10 -0
- package/dist/schema/plugins.js +2 -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 +2 -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 +2 -2
- 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 +42 -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.js +21 -27
- 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 +64 -64
- package/schema.json +8 -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
package/dist/reporters/trace.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import pc from 'picocolors';
|
|
2
|
-
import { toRelative } from
|
|
3
|
-
import { toRegexOrString } from
|
|
4
|
-
import { Table } from
|
|
5
|
-
import { formatTrace } from
|
|
2
|
+
import { toRelative } from "../util/path.js";
|
|
3
|
+
import { toRegexOrString } from "../util/regex.js";
|
|
4
|
+
import { Table } from "../util/table.js";
|
|
5
|
+
import { formatTrace } from "../util/trace.js";
|
|
6
6
|
export default ({ graph, explorer, options, workspaceFilePathFilter }) => {
|
|
7
7
|
if (options.traceDependency) {
|
|
8
8
|
const pattern = toRegexOrString(options.traceDependency);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Results } from '../../run.
|
|
2
|
-
import type { ConfigurationHint, ConfigurationHintType, ReporterOptions } from '../../types/issues.
|
|
1
|
+
import type { Results } from '../../run.ts';
|
|
2
|
+
import type { ConfigurationHint, ConfigurationHintType, ReporterOptions } from '../../types/issues.ts';
|
|
3
3
|
interface PrintHintOptions {
|
|
4
4
|
type: ConfigurationHintType;
|
|
5
5
|
identifier: string | RegExp;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { relative, toRelative } from
|
|
2
|
-
import { Table } from
|
|
3
|
-
import { byPathDepth } from
|
|
4
|
-
import { bright, dim, getColoredTitle, getDimmedTitle } from
|
|
1
|
+
import { relative, toRelative } from "../../util/path.js";
|
|
2
|
+
import { Table } from "../../util/table.js";
|
|
3
|
+
import { byPathDepth } from "../../util/workspace.js";
|
|
4
|
+
import { bright, dim, getColoredTitle, getDimmedTitle } from "./util.js";
|
|
5
5
|
const getWorkspaceName = (hint) => hint.workspaceName &&
|
|
6
6
|
hint.workspaceName !== '.' &&
|
|
7
7
|
hint.type !== 'top-level-unconfigured' &&
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ISSUE_TYPE_TITLE } from '../../constants.
|
|
2
|
-
import type { Issue, IssueSeverity, IssueSymbol, IssueType } from '../../types/issues.
|
|
3
|
-
import { Table } from '../../util/table.
|
|
1
|
+
import { ISSUE_TYPE_TITLE } from '../../constants.ts';
|
|
2
|
+
import type { Issue, IssueSeverity, IssueSymbol, IssueType } from '../../types/issues.ts';
|
|
3
|
+
import { Table } from '../../util/table.ts';
|
|
4
4
|
export declare const dim: import("picocolors/types.js").Formatter;
|
|
5
5
|
export declare const bright: import("picocolors/types.js").Formatter;
|
|
6
6
|
export declare const getIssueTypeTitle: (reportType: keyof typeof ISSUE_TYPE_TITLE) => "Unused files" | "Unused dependencies" | "Unused devDependencies" | "Referenced optional peerDependencies" | "Unlisted dependencies" | "Unlisted binaries" | "Unresolved imports" | "Unused exports" | "Exports in used namespace" | "Unused exported types" | "Exported types in used namespace" | "Unused exported enum members" | "Unused exported class members" | "Duplicate exports" | "Unused catalog entries";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import picocolors from 'picocolors';
|
|
2
|
-
import { ISSUE_TYPE_TITLE, SYMBOL_TYPE } from
|
|
3
|
-
import { relative } from
|
|
4
|
-
import { Table } from
|
|
2
|
+
import { ISSUE_TYPE_TITLE, SYMBOL_TYPE } from "../../constants.js";
|
|
3
|
+
import { relative } from "../../util/path.js";
|
|
4
|
+
import { Table } from "../../util/table.js";
|
|
5
5
|
const plain = (text) => text;
|
|
6
6
|
export const dim = picocolors.gray;
|
|
7
7
|
export const bright = picocolors.whiteBright;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ConsoleStreamer } from '../ConsoleStreamer.
|
|
2
|
-
import type { Issues } from '../types/issues.
|
|
3
|
-
import type { MainOptions } from '../util/create-options.
|
|
1
|
+
import type { ConsoleStreamer } from '../ConsoleStreamer.ts';
|
|
2
|
+
import type { Issues } from '../types/issues.ts';
|
|
3
|
+
import type { MainOptions } from '../util/create-options.ts';
|
|
4
4
|
interface WatchReporter {
|
|
5
5
|
issues: Issues;
|
|
6
6
|
streamer: ConsoleStreamer;
|
package/dist/reporters/watch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import picocolors from 'picocolors';
|
|
2
|
-
import { perfObserver } from
|
|
3
|
-
import { prettyMilliseconds } from
|
|
4
|
-
import { getIssueTypeTitle, getTableForType } from
|
|
2
|
+
import { perfObserver } from "../util/Performance.js";
|
|
3
|
+
import { prettyMilliseconds } from "../util/string.js";
|
|
4
|
+
import { getIssueTypeTitle, getTableForType } from "./util/util.js";
|
|
5
5
|
export default (options, { issues, streamer, duration, size }) => {
|
|
6
6
|
const reportMultipleGroups = Object.values(options.includedIssueTypes).filter(Boolean).length > 1;
|
|
7
7
|
let totalIssues = 0;
|
package/dist/run.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ConsoleStreamer } from './ConsoleStreamer.
|
|
2
|
-
import type { MainOptions } from './util/create-options.
|
|
1
|
+
import { ConsoleStreamer } from './ConsoleStreamer.ts';
|
|
2
|
+
import type { MainOptions } from './util/create-options.ts';
|
|
3
3
|
export type Results = Awaited<ReturnType<typeof run>>['results'];
|
|
4
4
|
export declare const run: (options: MainOptions) => Promise<{
|
|
5
5
|
results: {
|
|
6
|
-
issues: import("./types/issues.
|
|
7
|
-
counters: import("./types/issues.
|
|
8
|
-
tagHints: Set<import("./types/issues.
|
|
9
|
-
configurationHints: import("./types/issues.
|
|
6
|
+
issues: import("./types/issues.ts").Issues;
|
|
7
|
+
counters: import("./types/issues.ts").Counters;
|
|
8
|
+
tagHints: Set<import("./types/issues.ts").TagHint>;
|
|
9
|
+
configurationHints: import("./types/issues.ts").ConfigurationHint[];
|
|
10
10
|
selectedWorkspaces: string[] | undefined;
|
|
11
11
|
includedWorkspaceDirs: string[];
|
|
12
12
|
enabledPlugins: {
|
|
@@ -15,17 +15,17 @@ export declare const run: (options: MainOptions) => Promise<{
|
|
|
15
15
|
};
|
|
16
16
|
session: {
|
|
17
17
|
listener: import("fs").WatchListener<string | Buffer<ArrayBufferLike>>;
|
|
18
|
-
handleFileChanges: (changes: import("./util/watch.
|
|
18
|
+
handleFileChanges: (changes: import("./util/watch.ts").WatchChange[]) => Promise<{
|
|
19
19
|
duration: number;
|
|
20
20
|
mem: number;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
getEntryPaths: () => Set<string>;
|
|
23
|
-
getGraph: () => import("./types/module-graph.
|
|
23
|
+
getGraph: () => import("./types/module-graph.ts").ModuleGraph;
|
|
24
24
|
getIssues: () => {
|
|
25
|
-
issues: import("./types/issues.
|
|
26
|
-
counters: import("./types/issues.
|
|
27
|
-
tagHints: Set<import("./types/issues.
|
|
28
|
-
configurationHints: import("./types/issues.
|
|
25
|
+
issues: import("./types/issues.ts").Issues;
|
|
26
|
+
counters: import("./types/issues.ts").Counters;
|
|
27
|
+
tagHints: Set<import("./types/issues.ts").TagHint>;
|
|
28
|
+
configurationHints: import("./types/issues.ts").ConfigurationHint[];
|
|
29
29
|
};
|
|
30
30
|
} | undefined;
|
|
31
31
|
streamer: ConsoleStreamer;
|
package/dist/run.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { watch } from 'node:fs';
|
|
2
|
-
import { CatalogCounselor } from
|
|
3
|
-
import { ConfigurationChief } from
|
|
4
|
-
import { ConsoleStreamer } from
|
|
5
|
-
import { DependencyDeputy } from
|
|
6
|
-
import { analyze } from
|
|
7
|
-
import { build } from
|
|
8
|
-
import { IssueCollector } from
|
|
9
|
-
import { PrincipalFactory } from
|
|
10
|
-
import watchReporter from
|
|
11
|
-
import { debugLogObject } from
|
|
12
|
-
import { getGitIgnoredHandler } from
|
|
13
|
-
import { getSessionHandler } from
|
|
2
|
+
import { CatalogCounselor } from "./CatalogCounselor.js";
|
|
3
|
+
import { ConfigurationChief } from "./ConfigurationChief.js";
|
|
4
|
+
import { ConsoleStreamer } from "./ConsoleStreamer.js";
|
|
5
|
+
import { DependencyDeputy } from "./DependencyDeputy.js";
|
|
6
|
+
import { analyze } from "./graph/analyze.js";
|
|
7
|
+
import { build } from "./graph/build.js";
|
|
8
|
+
import { IssueCollector } from "./IssueCollector.js";
|
|
9
|
+
import { PrincipalFactory } from "./PrincipalFactory.js";
|
|
10
|
+
import watchReporter from "./reporters/watch.js";
|
|
11
|
+
import { debugLogObject } from "./util/debug.js";
|
|
12
|
+
import { getGitIgnoredHandler } from "./util/glob-core.js";
|
|
13
|
+
import { getSessionHandler } from "./util/watch.js";
|
|
14
14
|
export const run = async (options) => {
|
|
15
15
|
debugLogObject('*', 'Unresolved configuration', options);
|
|
16
16
|
debugLogObject('*', 'Included issue types', options.includedIssueTypes);
|
|
@@ -352,6 +352,11 @@ export declare const workspaceConfigurationSchema: z.ZodMiniObject<{
|
|
|
352
352
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
353
353
|
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
354
354
|
}, z.core.$strip>]>>;
|
|
355
|
+
'openapi-ts': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
356
|
+
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
357
|
+
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
358
|
+
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
359
|
+
}, z.core.$strip>]>>;
|
|
355
360
|
oxlint: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
356
361
|
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
357
362
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
@@ -417,6 +422,11 @@ export declare const workspaceConfigurationSchema: z.ZodMiniObject<{
|
|
|
417
422
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
418
423
|
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
419
424
|
}, z.core.$strip>]>>;
|
|
425
|
+
qwik: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
426
|
+
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
427
|
+
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
428
|
+
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
429
|
+
}, z.core.$strip>]>>;
|
|
420
430
|
'react-cosmos': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
421
431
|
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
422
432
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
@@ -1044,6 +1054,11 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
|
|
|
1044
1054
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1045
1055
|
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1046
1056
|
}, z.core.$strip>]>>;
|
|
1057
|
+
'openapi-ts': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
1058
|
+
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1059
|
+
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1060
|
+
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1061
|
+
}, z.core.$strip>]>>;
|
|
1047
1062
|
oxlint: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
1048
1063
|
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1049
1064
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
@@ -1109,6 +1124,11 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
|
|
|
1109
1124
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1110
1125
|
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1111
1126
|
}, z.core.$strip>]>>;
|
|
1127
|
+
qwik: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
1128
|
+
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1129
|
+
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1130
|
+
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1131
|
+
}, z.core.$strip>]>>;
|
|
1112
1132
|
'react-cosmos': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
1113
1133
|
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1114
1134
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
@@ -1725,6 +1745,11 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
|
|
|
1725
1745
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1726
1746
|
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1727
1747
|
}, z.core.$strip>]>>;
|
|
1748
|
+
'openapi-ts': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
1749
|
+
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1750
|
+
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1751
|
+
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1752
|
+
}, z.core.$strip>]>>;
|
|
1728
1753
|
oxlint: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
1729
1754
|
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1730
1755
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
@@ -1790,6 +1815,11 @@ export declare const knipConfigurationSchema: z.ZodMiniObject<{
|
|
|
1790
1815
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1791
1816
|
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1792
1817
|
}, z.core.$strip>]>>;
|
|
1818
|
+
qwik: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
1819
|
+
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1820
|
+
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1821
|
+
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1822
|
+
}, z.core.$strip>]>>;
|
|
1793
1823
|
'react-cosmos': z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
1794
1824
|
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1795
1825
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod/mini';
|
|
2
|
-
import { SYMBOL_TYPE } from
|
|
3
|
-
import { globSchema, pluginsSchema } from
|
|
2
|
+
import { SYMBOL_TYPE } from "../constants.js";
|
|
3
|
+
import { globSchema, pluginsSchema } from "./plugins.js";
|
|
4
4
|
const pathsSchema = z.record(z.string(), z.array(z.string()));
|
|
5
5
|
const syncCompilerSchema = z.union([z.literal(true), z.custom()]);
|
|
6
6
|
const asyncCompilerSchema = z.custom();
|
package/dist/schema/plugins.d.ts
CHANGED
|
@@ -356,6 +356,11 @@ export declare const pluginsSchema: z.ZodMiniObject<{
|
|
|
356
356
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
357
357
|
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
358
358
|
}, z.core.$strip>]>;
|
|
359
|
+
'openapi-ts': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
360
|
+
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
361
|
+
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
362
|
+
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
363
|
+
}, z.core.$strip>]>;
|
|
359
364
|
oxlint: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
360
365
|
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
361
366
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
@@ -421,6 +426,11 @@ export declare const pluginsSchema: z.ZodMiniObject<{
|
|
|
421
426
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
422
427
|
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
423
428
|
}, z.core.$strip>]>;
|
|
429
|
+
qwik: z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
430
|
+
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
431
|
+
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
432
|
+
project: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
433
|
+
}, z.core.$strip>]>;
|
|
424
434
|
'react-cosmos': z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>, z.ZodMiniObject<{
|
|
425
435
|
config: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
426
436
|
entry: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
package/dist/schema/plugins.js
CHANGED
|
@@ -80,6 +80,7 @@ export const pluginsSchema = z.object({
|
|
|
80
80
|
nx: pluginSchema,
|
|
81
81
|
nyc: pluginSchema,
|
|
82
82
|
oclif: pluginSchema,
|
|
83
|
+
'openapi-ts': pluginSchema,
|
|
83
84
|
oxlint: pluginSchema,
|
|
84
85
|
parcel: pluginSchema,
|
|
85
86
|
payload: pluginSchema,
|
|
@@ -93,6 +94,7 @@ export const pluginsSchema = z.object({
|
|
|
93
94
|
preconstruct: pluginSchema,
|
|
94
95
|
prettier: pluginSchema,
|
|
95
96
|
prisma: pluginSchema,
|
|
97
|
+
qwik: pluginSchema,
|
|
96
98
|
'react-cosmos': pluginSchema,
|
|
97
99
|
'react-native': pluginSchema,
|
|
98
100
|
'react-router': pluginSchema,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { GraphExplorer } from '../graph-explorer/explorer.
|
|
2
|
-
import type { FileNode, ModuleGraph } from '../types/module-graph.
|
|
3
|
-
import type { Export, ImportLookup, InternalImport } from './types.
|
|
1
|
+
import type { GraphExplorer } from '../graph-explorer/explorer.ts';
|
|
2
|
+
import type { FileNode, ModuleGraph } from '../types/module-graph.ts';
|
|
3
|
+
import type { Export, ImportLookup, InternalImport } from './types.ts';
|
|
4
4
|
export declare const buildImportLookup: (fileNode: FileNode) => ImportLookup;
|
|
5
5
|
export declare const buildExportsMap: (fileNode: FileNode, filePath: string, graph: ModuleGraph, entryPaths: Set<string>, explorer: GraphExplorer, importLookup: ImportLookup) => Map<string, Export>;
|
|
6
6
|
export declare const buildInternalImports: (fileNode: FileNode, explorer: GraphExplorer, importLookup: ImportLookup) => InternalImport[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IMPORT_STAR } from
|
|
2
|
-
import { getExportedIdentifiers } from
|
|
3
|
-
import { forEachAliasReExport, forEachNamespaceReExport, forEachPassThroughReExport, getStarReExportSources, } from
|
|
1
|
+
import { IMPORT_STAR } from "../constants.js";
|
|
2
|
+
import { getExportedIdentifiers } from "../graph-explorer/utils.js";
|
|
3
|
+
import { forEachAliasReExport, forEachNamespaceReExport, forEachPassThroughReExport, getStarReExportSources, } from "../graph-explorer/visitors.js";
|
|
4
4
|
const FALLBACK_LOCATION = { identifier: undefined, pos: 0, line: 0, col: 0 };
|
|
5
5
|
export const buildImportLookup = (fileNode) => {
|
|
6
6
|
const imports = new Map();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ModuleGraph } from '../types/module-graph.
|
|
2
|
-
import type { File } from './types.
|
|
1
|
+
import type { ModuleGraph } from '../types/module-graph.ts';
|
|
2
|
+
import type { File } from './types.ts';
|
|
3
3
|
export interface FileDescriptorOptions {
|
|
4
4
|
isShowContention?: boolean;
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createGraphExplorer } from
|
|
2
|
-
import { toAbsolute } from
|
|
3
|
-
import { buildExportsMap, buildImportLookup, buildInternalImports } from
|
|
1
|
+
import { createGraphExplorer } from "../graph-explorer/explorer.js";
|
|
2
|
+
import { toAbsolute } from "../util/path.js";
|
|
3
|
+
import { buildExportsMap, buildImportLookup, buildInternalImports } from "./build-maps.js";
|
|
4
4
|
export const buildFileDescriptor = (filePath, cwd, graph, entryPaths, options = {}) => {
|
|
5
5
|
const absolutePath = toAbsolute(filePath, cwd);
|
|
6
6
|
const node = graph.get(absolutePath);
|
package/dist/session/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { IMPORT_STAR, KNIP_CONFIG_LOCATIONS, SIDE_EFFECTS } from '../constants.
|
|
2
|
-
export type { DependencyNode, DependencyNodes } from '../graph-explorer/operations/get-dependency-usage.
|
|
3
|
-
export { finalizeConfigurationHints } from '../reporters/util/configuration-hints.
|
|
4
|
-
export { getIssuePrefix } from '../reporters/util/util.
|
|
5
|
-
export type { Results } from '../run.
|
|
6
|
-
export type { Issue, Issues, IssueType, Rules } from '../types/issues.
|
|
7
|
-
export type { PackageJson } from '../types/package-json.
|
|
8
|
-
export { createOptions, type MainOptions } from '../util/create-options.
|
|
9
|
-
export { buildFileDescriptor, type FileDescriptorOptions } from './file-descriptor.
|
|
10
|
-
export { buildPackageJsonDescriptor, type PackageJsonFile } from './package-json-descriptor.
|
|
11
|
-
export { createSession, type Session } from './session.
|
|
12
|
-
export type { ContentionDetails, Export, File, SourceLocation } from './types.
|
|
1
|
+
export { IMPORT_STAR, KNIP_CONFIG_LOCATIONS, SIDE_EFFECTS } from '../constants.ts';
|
|
2
|
+
export type { DependencyNode, DependencyNodes } from '../graph-explorer/operations/get-dependency-usage.ts';
|
|
3
|
+
export { finalizeConfigurationHints } from '../reporters/util/configuration-hints.ts';
|
|
4
|
+
export { getIssuePrefix } from '../reporters/util/util.ts';
|
|
5
|
+
export type { Results } from '../run.ts';
|
|
6
|
+
export type { Issue, Issues, IssueType, Rules } from '../types/issues.ts';
|
|
7
|
+
export type { PackageJson } from '../types/package-json.ts';
|
|
8
|
+
export { createOptions, type MainOptions } from '../util/create-options.ts';
|
|
9
|
+
export { buildFileDescriptor, type FileDescriptorOptions } from './file-descriptor.ts';
|
|
10
|
+
export { buildPackageJsonDescriptor, type PackageJsonFile } from './package-json-descriptor.ts';
|
|
11
|
+
export { createSession, type Session } from './session.ts';
|
|
12
|
+
export type { ContentionDetails, Export, File, SourceLocation } from './types.ts';
|
package/dist/session/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { IMPORT_STAR, KNIP_CONFIG_LOCATIONS, SIDE_EFFECTS } from
|
|
2
|
-
export { finalizeConfigurationHints } from
|
|
3
|
-
export { getIssuePrefix } from
|
|
4
|
-
export { createOptions } from
|
|
5
|
-
export { buildFileDescriptor } from
|
|
6
|
-
export { buildPackageJsonDescriptor } from
|
|
7
|
-
export { createSession } from
|
|
1
|
+
export { IMPORT_STAR, KNIP_CONFIG_LOCATIONS, SIDE_EFFECTS } from "../constants.js";
|
|
2
|
+
export { finalizeConfigurationHints } from "../reporters/util/configuration-hints.js";
|
|
3
|
+
export { getIssuePrefix } from "../reporters/util/util.js";
|
|
4
|
+
export { createOptions } from "../util/create-options.js";
|
|
5
|
+
export { buildFileDescriptor } from "./file-descriptor.js";
|
|
6
|
+
export { buildPackageJsonDescriptor } from "./package-json-descriptor.js";
|
|
7
|
+
export { createSession } from "./session.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DependencyNodes } from '../graph-explorer/operations/get-dependency-usage.
|
|
2
|
-
import type { ModuleGraph } from '../types/module-graph.
|
|
1
|
+
import type { DependencyNodes } from '../graph-explorer/operations/get-dependency-usage.ts';
|
|
2
|
+
import type { ModuleGraph } from '../types/module-graph.ts';
|
|
3
3
|
export interface PackageJsonFile {
|
|
4
4
|
dependenciesUsage: Map<string, DependencyNodes>;
|
|
5
5
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createGraphExplorer } from
|
|
1
|
+
import { createGraphExplorer } from "../graph-explorer/explorer.js";
|
|
2
2
|
export const buildPackageJsonDescriptor = (graph, entryPaths) => {
|
|
3
3
|
const explorer = createGraphExplorer(graph, entryPaths);
|
|
4
4
|
return {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { CollectorIssues } from '../IssueCollector.
|
|
2
|
-
import { type Results } from '../run.
|
|
3
|
-
import type { MainOptions } from '../util/create-options.
|
|
4
|
-
import type { WatchChange } from '../util/watch.
|
|
5
|
-
import { type FileDescriptorOptions } from './file-descriptor.
|
|
6
|
-
import { type PackageJsonFile } from './package-json-descriptor.
|
|
7
|
-
import type { File } from './types.
|
|
1
|
+
import type { CollectorIssues } from '../IssueCollector.ts';
|
|
2
|
+
import { type Results } from '../run.ts';
|
|
3
|
+
import type { MainOptions } from '../util/create-options.ts';
|
|
4
|
+
import type { WatchChange } from '../util/watch.ts';
|
|
5
|
+
import { type FileDescriptorOptions } from './file-descriptor.ts';
|
|
6
|
+
import { type PackageJsonFile } from './package-json-descriptor.ts';
|
|
7
|
+
import type { File } from './types.ts';
|
|
8
8
|
type WatchUpdate = {
|
|
9
9
|
duration: number;
|
|
10
10
|
mem: number;
|
package/dist/session/session.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { run } from
|
|
2
|
-
import { buildFileDescriptor } from
|
|
3
|
-
import { buildPackageJsonDescriptor } from
|
|
1
|
+
import { run } from "../run.js";
|
|
2
|
+
import { buildFileDescriptor } from "./file-descriptor.js";
|
|
3
|
+
import { buildPackageJsonDescriptor } from "./package-json-descriptor.js";
|
|
4
4
|
export const createSession = async (options) => {
|
|
5
5
|
const { session, results } = await run(options);
|
|
6
6
|
if (!session)
|
package/dist/session/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { RE_EXPORT_KIND } from '../graph-explorer/constants.
|
|
2
|
-
import type { Import, Position } from '../types/module-graph.
|
|
1
|
+
import type { RE_EXPORT_KIND } from '../graph-explorer/constants.ts';
|
|
2
|
+
import type { Import, Position } from '../types/module-graph.ts';
|
|
3
3
|
export interface SourceLocation extends Position {
|
|
4
4
|
filePath: string;
|
|
5
5
|
identifier: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type PluginName = 'angular' | 'astro' | 'astro-db' | 'astro-og-canvas' | 'ava' | 'babel' | 'biome' | 'bumpp' | 'bun' | 'c8' | 'capacitor' | 'changelogen' | 'changelogithub' | 'changesets' | 'commitizen' | 'commitlint' | 'convex' | 'create-typescript-app' | 'cspell' | 'cucumber' | 'cypress' | 'danger' | 'dependency-cruiser' | 'docusaurus' | 'dotenv' | 'drizzle' | 'eleventy' | 'eslint' | 'execa' | 'expo' | 'expressive-code' | 'gatsby' | 'github-action' | 'github-actions' | 'glob' | 'graphql-codegen' | 'hardhat' | 'husky' | 'i18next-parser' | 'jest' | 'karma' | 'knex' | 'ladle' | 'lefthook' | 'lint-staged' | 'linthtml' | 'lockfile-lint' | 'lost-pixel' | 'markdownlint' | 'mdx' | 'mdxlint' | 'metro' | 'mocha' | 'moonrepo' | 'msw' | 'nano-staged' | 'nest' | 'netlify' | 'next' | 'next-intl' | 'next-mdx' | 'nitro' | 'node' | 'node-modules-inspector' | 'nodemon' | 'npm-package-json-lint' | 'nuxt' | 'nx' | 'nyc' | 'oclif' | 'oxlint' | 'parcel' | 'payload' | 'playwright' | 'playwright-ct' | 'playwright-test' | 'plop' | 'pm2' | 'pnpm' | 'postcss' | 'preconstruct' | 'prettier' | 'prisma' | 'react-cosmos' | 'react-native' | 'react-router' | 'relay' | 'release-it' | 'remark' | 'remix' | 'rollup' | 'rsbuild' | 'rslib' | 'rspack' | 'rstest' | 'semantic-release' | 'sentry' | 'simple-git-hooks' | 'size-limit' | 'sst' | 'starlight' | 'storybook' | 'stryker' | 'stylelint' | 'svelte' | 'sveltekit' | 'svgo' | 'svgr' | 'swc' | 'syncpack' | 'tailwind' | 'tanstack-router' | 'taskfile' | 'travis' | 'ts-node' | 'tsdown' | 'tsup' | 'tsx' | 'typedoc' | 'typescript' | 'unbuild' | 'unocss' | 'vercel-og' | 'vike' | 'vite' | 'vitepress' | 'vitest' | 'vue' | 'webdriver-io' | 'webpack' | 'wireit' | 'wrangler' | 'xo' | 'yarn' | 'yorkie' | 'zx';
|
|
2
|
-
export declare const pluginNames: readonly ["angular", "astro", "astro-db", "astro-og-canvas", "ava", "babel", "biome", "bumpp", "bun", "c8", "capacitor", "changelogen", "changelogithub", "changesets", "commitizen", "commitlint", "convex", "create-typescript-app", "cspell", "cucumber", "cypress", "danger", "dependency-cruiser", "docusaurus", "dotenv", "drizzle", "eleventy", "eslint", "execa", "expo", "expressive-code", "gatsby", "github-action", "github-actions", "glob", "graphql-codegen", "hardhat", "husky", "i18next-parser", "jest", "karma", "knex", "ladle", "lefthook", "lint-staged", "linthtml", "lockfile-lint", "lost-pixel", "markdownlint", "mdx", "mdxlint", "metro", "mocha", "moonrepo", "msw", "nano-staged", "nest", "netlify", "next", "next-intl", "next-mdx", "nitro", "node", "node-modules-inspector", "nodemon", "npm-package-json-lint", "nuxt", "nx", "nyc", "oclif", "oxlint", "parcel", "payload", "playwright", "playwright-ct", "playwright-test", "plop", "pm2", "pnpm", "postcss", "preconstruct", "prettier", "prisma", "react-cosmos", "react-native", "react-router", "relay", "release-it", "remark", "remix", "rollup", "rsbuild", "rslib", "rspack", "rstest", "semantic-release", "sentry", "simple-git-hooks", "size-limit", "sst", "starlight", "storybook", "stryker", "stylelint", "svelte", "sveltekit", "svgo", "svgr", "swc", "syncpack", "tailwind", "tanstack-router", "taskfile", "travis", "ts-node", "tsdown", "tsup", "tsx", "typedoc", "typescript", "unbuild", "unocss", "vercel-og", "vike", "vite", "vitepress", "vitest", "vue", "webdriver-io", "webpack", "wireit", "wrangler", "xo", "yarn", "yorkie", "zx"];
|
|
1
|
+
export type PluginName = 'angular' | 'astro' | 'astro-db' | 'astro-og-canvas' | 'ava' | 'babel' | 'biome' | 'bumpp' | 'bun' | 'c8' | 'capacitor' | 'changelogen' | 'changelogithub' | 'changesets' | 'commitizen' | 'commitlint' | 'convex' | 'create-typescript-app' | 'cspell' | 'cucumber' | 'cypress' | 'danger' | 'dependency-cruiser' | 'docusaurus' | 'dotenv' | 'drizzle' | 'eleventy' | 'eslint' | 'execa' | 'expo' | 'expressive-code' | 'gatsby' | 'github-action' | 'github-actions' | 'glob' | 'graphql-codegen' | 'hardhat' | 'husky' | 'i18next-parser' | 'jest' | 'karma' | 'knex' | 'ladle' | 'lefthook' | 'lint-staged' | 'linthtml' | 'lockfile-lint' | 'lost-pixel' | 'markdownlint' | 'mdx' | 'mdxlint' | 'metro' | 'mocha' | 'moonrepo' | 'msw' | 'nano-staged' | 'nest' | 'netlify' | 'next' | 'next-intl' | 'next-mdx' | 'nitro' | 'node' | 'node-modules-inspector' | 'nodemon' | 'npm-package-json-lint' | 'nuxt' | 'nx' | 'nyc' | 'oclif' | 'openapi-ts' | 'oxlint' | 'parcel' | 'payload' | 'playwright' | 'playwright-ct' | 'playwright-test' | 'plop' | 'pm2' | 'pnpm' | 'postcss' | 'preconstruct' | 'prettier' | 'prisma' | 'qwik' | 'react-cosmos' | 'react-native' | 'react-router' | 'relay' | 'release-it' | 'remark' | 'remix' | 'rollup' | 'rsbuild' | 'rslib' | 'rspack' | 'rstest' | 'semantic-release' | 'sentry' | 'simple-git-hooks' | 'size-limit' | 'sst' | 'starlight' | 'storybook' | 'stryker' | 'stylelint' | 'svelte' | 'sveltekit' | 'svgo' | 'svgr' | 'swc' | 'syncpack' | 'tailwind' | 'tanstack-router' | 'taskfile' | 'travis' | 'ts-node' | 'tsdown' | 'tsup' | 'tsx' | 'typedoc' | 'typescript' | 'unbuild' | 'unocss' | 'vercel-og' | 'vike' | 'vite' | 'vitepress' | 'vitest' | 'vue' | 'webdriver-io' | 'webpack' | 'wireit' | 'wrangler' | 'xo' | 'yarn' | 'yorkie' | 'zx';
|
|
2
|
+
export declare const pluginNames: readonly ["angular", "astro", "astro-db", "astro-og-canvas", "ava", "babel", "biome", "bumpp", "bun", "c8", "capacitor", "changelogen", "changelogithub", "changesets", "commitizen", "commitlint", "convex", "create-typescript-app", "cspell", "cucumber", "cypress", "danger", "dependency-cruiser", "docusaurus", "dotenv", "drizzle", "eleventy", "eslint", "execa", "expo", "expressive-code", "gatsby", "github-action", "github-actions", "glob", "graphql-codegen", "hardhat", "husky", "i18next-parser", "jest", "karma", "knex", "ladle", "lefthook", "lint-staged", "linthtml", "lockfile-lint", "lost-pixel", "markdownlint", "mdx", "mdxlint", "metro", "mocha", "moonrepo", "msw", "nano-staged", "nest", "netlify", "next", "next-intl", "next-mdx", "nitro", "node", "node-modules-inspector", "nodemon", "npm-package-json-lint", "nuxt", "nx", "nyc", "oclif", "openapi-ts", "oxlint", "parcel", "payload", "playwright", "playwright-ct", "playwright-test", "plop", "pm2", "pnpm", "postcss", "preconstruct", "prettier", "prisma", "qwik", "react-cosmos", "react-native", "react-router", "relay", "release-it", "remark", "remix", "rollup", "rsbuild", "rslib", "rspack", "rstest", "semantic-release", "sentry", "simple-git-hooks", "size-limit", "sst", "starlight", "storybook", "stryker", "stylelint", "svelte", "sveltekit", "svgo", "svgr", "swc", "syncpack", "tailwind", "tanstack-router", "taskfile", "travis", "ts-node", "tsdown", "tsup", "tsx", "typedoc", "typescript", "unbuild", "unocss", "vercel-og", "vike", "vite", "vitepress", "vitest", "vue", "webdriver-io", "webpack", "wireit", "wrangler", "xo", "yarn", "yorkie", "zx"];
|
|
@@ -69,6 +69,7 @@ export const pluginNames = [
|
|
|
69
69
|
'nx',
|
|
70
70
|
'nyc',
|
|
71
71
|
'oclif',
|
|
72
|
+
'openapi-ts',
|
|
72
73
|
'oxlint',
|
|
73
74
|
'parcel',
|
|
74
75
|
'payload',
|
|
@@ -82,6 +83,7 @@ export const pluginNames = [
|
|
|
82
83
|
'preconstruct',
|
|
83
84
|
'prettier',
|
|
84
85
|
'prisma',
|
|
86
|
+
'qwik',
|
|
85
87
|
'react-cosmos',
|
|
86
88
|
'react-native',
|
|
87
89
|
'react-router',
|
package/dist/types/args.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ParsedArgs } from 'minimist';
|
|
2
|
-
import type { Input } from '../util/input.
|
|
2
|
+
import type { Input } from '../util/input.ts';
|
|
3
3
|
export type ConfigArg = boolean | (string | [string, (id: string) => string])[];
|
|
4
4
|
export type Args = {
|
|
5
5
|
binaries?: string[];
|
package/dist/types/config.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type ts from 'typescript';
|
|
2
2
|
import type { z } from 'zod/mini';
|
|
3
|
-
import type { AsyncCompilers, CompilerSync, HasDependency, SyncCompilers } from '../compilers/types.
|
|
4
|
-
import type { knipConfigurationSchema, workspaceConfigurationSchema } from '../schema/configuration.
|
|
5
|
-
import type { pluginSchema } from '../schema/plugins.
|
|
6
|
-
import type { ImportVisitor, ScriptVisitor } from '../typescript/visitors/index.
|
|
7
|
-
import type { ParsedCLIArgs } from '../util/cli-arguments.
|
|
8
|
-
import type { Input } from '../util/input.
|
|
9
|
-
import type { Args } from './args.
|
|
10
|
-
import type { IssueType, SymbolType } from './issues.
|
|
11
|
-
import type { Tags } from './options.
|
|
12
|
-
import type { PluginName } from './PluginNames.
|
|
13
|
-
import type { PackageJson } from './package-json.
|
|
3
|
+
import type { AsyncCompilers, CompilerSync, HasDependency, SyncCompilers } from '../compilers/types.ts';
|
|
4
|
+
import type { knipConfigurationSchema, workspaceConfigurationSchema } from '../schema/configuration.ts';
|
|
5
|
+
import type { pluginSchema } from '../schema/plugins.ts';
|
|
6
|
+
import type { ImportVisitor, ScriptVisitor } from '../typescript/visitors/index.ts';
|
|
7
|
+
import type { ParsedCLIArgs } from '../util/cli-arguments.ts';
|
|
8
|
+
import type { Input } from '../util/input.ts';
|
|
9
|
+
import type { Args } from './args.ts';
|
|
10
|
+
import type { IssueType, SymbolType } from './issues.ts';
|
|
11
|
+
import type { Tags } from './options.ts';
|
|
12
|
+
import type { PluginName } from './PluginNames.ts';
|
|
13
|
+
import type { PackageJson } from './package-json.ts';
|
|
14
14
|
export interface GetInputsFromScriptsOptions extends BaseOptions {
|
|
15
15
|
knownBinsOnly?: boolean;
|
|
16
16
|
containingFilePath: string;
|
package/dist/types/exports.d.ts
CHANGED
package/dist/types/issues.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SYMBOL_TYPE } from '../constants.
|
|
2
|
-
import type { Fixes } from './exports.
|
|
1
|
+
import type { SYMBOL_TYPE } from '../constants.ts';
|
|
2
|
+
import type { Fixes } from './exports.ts';
|
|
3
3
|
export type SymbolType = (typeof SYMBOL_TYPE)[keyof typeof SYMBOL_TYPE];
|
|
4
4
|
export interface IssueSymbol {
|
|
5
5
|
symbol: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Fix, Fixes } from './exports.
|
|
2
|
-
import type { IssueSymbol, SymbolType } from './issues.
|
|
1
|
+
import type { Fix, Fixes } from './exports.ts';
|
|
2
|
+
import type { IssueSymbol, SymbolType } from './issues.ts';
|
|
3
3
|
export type Identifier = string;
|
|
4
4
|
type FilePath = string;
|
|
5
5
|
type NamespaceOrAlias = string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PluginMap, WorkspaceConfiguration } from './config.
|
|
1
|
+
import type { PluginMap, WorkspaceConfiguration } from './config.ts';
|
|
2
2
|
type Primitive = null | undefined | string | number | boolean | symbol | bigint;
|
|
3
3
|
type LiteralUnion<LiteralType, BaseType extends Primitive> = LiteralType | (BaseType & Record<never, never>);
|
|
4
4
|
type Dependencies = Record<string, string>;
|
package/dist/types/project.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type ts from 'typescript';
|
|
2
|
-
import type { AsyncCompilers, SyncCompilers } from '../compilers/types.
|
|
3
|
-
import type { ToSourceFilePath } from '../util/to-source-path.
|
|
2
|
+
import type { AsyncCompilers, SyncCompilers } from '../compilers/types.ts';
|
|
3
|
+
import type { ToSourceFilePath } from '../util/to-source-path.ts';
|
|
4
4
|
export type Paths = ts.CompilerOptions['paths'];
|
|
5
5
|
export type PrincipalOptions = {
|
|
6
6
|
dir: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { RawConfigurationOrFn as KnipConfig, WorkspaceProjectConfig } from './types/config.
|
|
2
|
-
export type { Preprocessor, Reporter, ReporterOptions } from './types/issues.
|
|
1
|
+
export type { RawConfigurationOrFn as KnipConfig, WorkspaceProjectConfig } from './types/config.ts';
|
|
2
|
+
export type { Preprocessor, Reporter, ReporterOptions } from './types/issues.ts';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ts from 'typescript';
|
|
2
|
-
import type { AsyncCompilers, SyncCompilers } from '../compilers/types.
|
|
2
|
+
import type { AsyncCompilers, SyncCompilers } from '../compilers/types.ts';
|
|
3
3
|
interface SourceFileManagerOptions {
|
|
4
4
|
isSkipLibs: boolean;
|
|
5
5
|
compilers: [SyncCompilers, AsyncCompilers];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import ts from 'typescript';
|
|
2
|
-
import { FOREIGN_FILE_EXTENSIONS } from
|
|
3
|
-
import { debugLog } from
|
|
4
|
-
import { extname, isInNodeModules, isInternal } from
|
|
5
|
-
import { isDeclarationFileExtension } from
|
|
2
|
+
import { FOREIGN_FILE_EXTENSIONS } from "../constants.js";
|
|
3
|
+
import { debugLog } from "../util/debug.js";
|
|
4
|
+
import { extname, isInNodeModules, isInternal } from "../util/path.js";
|
|
5
|
+
import { isDeclarationFileExtension } from "./ast-helpers.js";
|
|
6
6
|
export class SourceFileManager {
|
|
7
7
|
isSkipLibs;
|
|
8
8
|
sourceFileCache = new Map();
|