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/util/modules.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isBuiltin } from 'node:module';
|
|
2
|
-
import { DT_SCOPE, PROTOCOL_VIRTUAL } from
|
|
3
|
-
import { isAbsolute, isInNodeModules, toPosix } from
|
|
2
|
+
import { DT_SCOPE, PROTOCOL_VIRTUAL } from "../constants.js";
|
|
3
|
+
import { isAbsolute, isInNodeModules, toPosix } from "./path.js";
|
|
4
4
|
export const getPackageNameFromModuleSpecifier = (moduleSpecifier) => {
|
|
5
5
|
if (!isStartsLikePackageName(moduleSpecifier))
|
|
6
6
|
return;
|
|
@@ -75,6 +75,16 @@ export const getEntrySpecifiersFromManifest = (manifest) => {
|
|
|
75
75
|
entryPaths.add(expanded);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
+
if (manifest.imports) {
|
|
79
|
+
for (const [key, value] of Object.entries(manifest.imports)) {
|
|
80
|
+
if (!key.startsWith('#'))
|
|
81
|
+
continue;
|
|
82
|
+
for (const item of getEntriesFromExports(value)) {
|
|
83
|
+
if (item.startsWith('.') && !item.includes('*'))
|
|
84
|
+
entryPaths.add(item);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
78
88
|
return entryPaths;
|
|
79
89
|
};
|
|
80
90
|
export const getManifestImportDependencies = (manifest) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PackageJson } from '../types/package-json.
|
|
1
|
+
import type { PackageJson } from '../types/package-json.ts';
|
|
2
2
|
export declare function getPackageName(pkg: PackageJson, pathname: string): string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { basename, dirname } from
|
|
1
|
+
import { basename, dirname } from "./path.js";
|
|
2
2
|
const getPkgName = (parent, base) => (parent.charAt(0) === '@' ? `${parent}/${base}` : base);
|
|
3
3
|
const getName = (dir) => (dir ? getPkgName(basename(dirname(dir)), basename(dir)) : undefined);
|
|
4
4
|
export function getPackageName(pkg, pathname) {
|
package/dist/util/plugin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { _load as load } from './loader.
|
|
2
|
-
import type { Plugin, PluginOptions, RawPluginConfiguration } from '../types/config.
|
|
1
|
+
export { _load as load } from './loader.ts';
|
|
2
|
+
import type { Plugin, PluginOptions, RawPluginConfiguration } from '../types/config.ts';
|
|
3
3
|
export declare const hasDependency: (dependencies: Set<string>, values: (string | RegExp)[]) => boolean;
|
|
4
4
|
export declare const normalizePluginConfig: (pluginConfig: RawPluginConfiguration) => boolean | {
|
|
5
5
|
config: string[] | null;
|
package/dist/util/plugin.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { _load as load } from
|
|
2
|
-
import { arrayify } from
|
|
3
|
-
import { _load as load } from
|
|
4
|
-
import { get } from
|
|
5
|
-
import { basename } from
|
|
1
|
+
export { _load as load } from "./loader.js";
|
|
2
|
+
import { arrayify } from "./array.js";
|
|
3
|
+
import { _load as load } from "./loader.js";
|
|
4
|
+
import { get } from "./object.js";
|
|
5
|
+
import { basename } from "./path.js";
|
|
6
6
|
export const hasDependency = (dependencies, values) => values.some(value => {
|
|
7
7
|
if (typeof value === 'string') {
|
|
8
8
|
return dependencies.has(value);
|
package/dist/util/reporter.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ReporterOptions } from '../types/issues.
|
|
1
|
+
import type { ReporterOptions } from '../types/issues.ts';
|
|
2
2
|
export declare const runPreprocessors: (processors: string[], data: ReporterOptions) => Promise<ReporterOptions>;
|
|
3
3
|
export declare const runReporters: (reporter: string[], options: ReporterOptions) => Promise<void>;
|
package/dist/util/reporter.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import internalReporters from
|
|
2
|
-
import { _load } from
|
|
3
|
-
import { isAbsolute, isInternal, resolve } from
|
|
1
|
+
import internalReporters from "../reporters/index.js";
|
|
2
|
+
import { _load } from "./loader.js";
|
|
3
|
+
import { isAbsolute, isInternal, resolve } from "./path.js";
|
|
4
4
|
export const runPreprocessors = async (processors, data) => {
|
|
5
5
|
const preprocessors = await Promise.all(processors.map(proc => _load(isInternal(proc) && !isAbsolute(proc) ? resolve(proc) : proc)));
|
|
6
6
|
return preprocessors.length === 0
|
package/dist/util/require.js
CHANGED
package/dist/util/resolve.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ResolverFactory } from 'oxc-resolver';
|
|
2
|
-
import { DEFAULT_EXTENSIONS } from
|
|
3
|
-
import { timerify } from
|
|
4
|
-
import { toPosix } from
|
|
2
|
+
import { DEFAULT_EXTENSIONS } from "../constants.js";
|
|
3
|
+
import { timerify } from "./Performance.js";
|
|
4
|
+
import { toPosix } from "./path.js";
|
|
5
5
|
const createSyncModuleResolver = (extensions) => {
|
|
6
6
|
const resolver = new ResolverFactory({
|
|
7
7
|
tsconfig: 'auto',
|
package/dist/util/table.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { stripVTControlCharacters } from 'node:util';
|
|
2
|
-
import { pad, truncate, truncateStart } from
|
|
2
|
+
import { pad, truncate, truncateStart } from "./string.js";
|
|
3
3
|
const DEFAULT_MAX_WIDTH = process.stdout.columns || 120;
|
|
4
4
|
const MIN_TRUNCATED_WIDTH = 4;
|
|
5
5
|
const COLUMN_SEPARATOR = ' ';
|
package/dist/util/tag.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Tags } from '../types/options.
|
|
1
|
+
import type { Tags } from '../types/options.ts';
|
|
2
2
|
export declare const splitTags: (rawTags: string[]) => Tags;
|
|
3
3
|
export declare const shouldIgnore: (jsDocTags: Set<string>, tags: Tags) => boolean;
|
|
4
4
|
export declare const getShouldIgnoreHandler: (isProduction: boolean) => (jsDocTags: Set<string>) => boolean;
|
package/dist/util/tag.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ALIAS_TAG, BETA_TAG, INTERNAL_TAG, PUBLIC_TAG } from
|
|
1
|
+
import { ALIAS_TAG, BETA_TAG, INTERNAL_TAG, PUBLIC_TAG } from "../constants.js";
|
|
2
2
|
export const splitTags = (rawTags) => {
|
|
3
3
|
const tags = rawTags.flatMap(tag => tag.split(','));
|
|
4
4
|
return tags.reduce(([incl, excl], tag) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CompilerOptions } from 'typescript';
|
|
2
|
-
import type { ConfigurationChief, Workspace } from '../ConfigurationChief.
|
|
2
|
+
import type { ConfigurationChief, Workspace } from '../ConfigurationChief.ts';
|
|
3
3
|
export declare const augmentWorkspace: (workspace: Workspace, dir: string, compilerOptions: CompilerOptions) => void;
|
|
4
4
|
export declare const getModuleSourcePathHandler: (chief: ConfigurationChief) => (filePath: string) => string | undefined;
|
|
5
5
|
export declare const getToSourcePathsHandler: (chief: ConfigurationChief) => (specifiers: Set<string>, dir: string, extensions: string | undefined, label: string) => Promise<string[]>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DEFAULT_EXTENSIONS } from
|
|
2
|
-
import { debugLog, debugLogArray } from
|
|
3
|
-
import { isDirectory } from
|
|
4
|
-
import { _glob, _syncGlob, prependDirToPattern } from
|
|
5
|
-
import { isAbsolute, isInternal, join, toRelative } from
|
|
1
|
+
import { DEFAULT_EXTENSIONS } from "../constants.js";
|
|
2
|
+
import { debugLog, debugLogArray } from "./debug.js";
|
|
3
|
+
import { isDirectory } from "./fs.js";
|
|
4
|
+
import { _glob, _syncGlob, prependDirToPattern } from "./glob.js";
|
|
5
|
+
import { isAbsolute, isInternal, join, toRelative } from "./path.js";
|
|
6
6
|
const defaultExtensions = `.{${DEFAULT_EXTENSIONS.map(ext => ext.slice(1)).join(',')}}`;
|
|
7
7
|
const hasTSExt = /(?<!\.d)\.(m|c)?tsx?$/;
|
|
8
8
|
const matchExt = /(\.d)?\.(m|c)?(j|t)s$/;
|
package/dist/util/trace.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ExportsTreeNode } from '../graph-explorer/operations/build-exports-tree.
|
|
1
|
+
import type { ExportsTreeNode } from '../graph-explorer/operations/build-exports-tree.ts';
|
|
2
2
|
export declare const formatTrace: (node: ExportsTreeNode, toRelative: (path: string) => string, isReferenced: boolean) => string;
|
package/dist/util/watch.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { WatchListener } from 'node:fs';
|
|
2
|
-
import type { ConfigurationChief } from '../ConfigurationChief.
|
|
3
|
-
import type { IssueCollector } from '../IssueCollector.
|
|
4
|
-
import type { PrincipalFactory } from '../PrincipalFactory.
|
|
5
|
-
import type { ProjectPrincipal } from '../ProjectPrincipal.
|
|
6
|
-
import type { Issues } from '../types/issues.
|
|
7
|
-
import type { ModuleGraph } from '../types/module-graph.
|
|
8
|
-
import type { MainOptions } from './create-options.
|
|
2
|
+
import type { ConfigurationChief } from '../ConfigurationChief.ts';
|
|
3
|
+
import type { IssueCollector } from '../IssueCollector.ts';
|
|
4
|
+
import type { PrincipalFactory } from '../PrincipalFactory.ts';
|
|
5
|
+
import type { ProjectPrincipal } from '../ProjectPrincipal.ts';
|
|
6
|
+
import type { Issues } from '../types/issues.ts';
|
|
7
|
+
import type { ModuleGraph } from '../types/module-graph.ts';
|
|
8
|
+
import type { MainOptions } from './create-options.ts';
|
|
9
9
|
export type OnFileChange = (options: {
|
|
10
10
|
issues: Issues;
|
|
11
11
|
duration?: number;
|
|
@@ -39,9 +39,9 @@ export declare const getSessionHandler: (options: MainOptions, { analyzedFiles,
|
|
|
39
39
|
getGraph: () => ModuleGraph;
|
|
40
40
|
getIssues: () => {
|
|
41
41
|
issues: Issues;
|
|
42
|
-
counters: import("../types/issues.
|
|
43
|
-
tagHints: Set<import("../types/issues.
|
|
44
|
-
configurationHints: import("../types/issues.
|
|
42
|
+
counters: import("../types/issues.ts").Counters;
|
|
43
|
+
tagHints: Set<import("../types/issues.ts").TagHint>;
|
|
44
|
+
configurationHints: import("../types/issues.ts").ConfigurationHint[];
|
|
45
45
|
};
|
|
46
46
|
}>;
|
|
47
47
|
export {};
|
package/dist/util/watch.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { readFileSync } from 'node:fs';
|
|
2
|
-
import { invalidateCache } from
|
|
3
|
-
import { debugLog } from
|
|
4
|
-
import { isFile } from
|
|
5
|
-
import { updateImportMap } from
|
|
6
|
-
import { toAbsolute, toRelative } from
|
|
2
|
+
import { invalidateCache } from "../graph-explorer/cache.js";
|
|
3
|
+
import { debugLog } from "./debug.js";
|
|
4
|
+
import { isFile } from "./fs.js";
|
|
5
|
+
import { updateImportMap } from "./module-graph.js";
|
|
6
|
+
import { toAbsolute, toPosix, toRelative } from "./path.js";
|
|
7
7
|
const createUpdate = (options) => {
|
|
8
8
|
const duration = performance.now() - options.startTime;
|
|
9
9
|
const mem = process.memoryUsage().heapUsed;
|
|
@@ -131,8 +131,9 @@ export const getSessionHandler = async (options, { analyzedFiles, analyzeSourceF
|
|
|
131
131
|
const listener = (eventType, filePath) => {
|
|
132
132
|
debugLog('*', `(raw) ${eventType} ${filePath}`);
|
|
133
133
|
if (typeof filePath === 'string') {
|
|
134
|
-
const
|
|
135
|
-
|
|
134
|
+
const normalizedPath = toPosix(filePath);
|
|
135
|
+
const type = eventType === 'rename' ? (isFile(options.cwd, normalizedPath) ? 'added' : 'deleted') : 'modified';
|
|
136
|
+
handleFileChanges([{ type, filePath: normalizedPath }]);
|
|
136
137
|
}
|
|
137
138
|
};
|
|
138
139
|
const getIssues = () => collector.getIssues();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ROOT_WORKSPACE_NAME } from
|
|
2
|
-
import { join } from
|
|
1
|
+
import { ROOT_WORKSPACE_NAME } from "../constants.js";
|
|
2
|
+
import { join } from "./path.js";
|
|
3
3
|
export const createWorkspaceFilePathFilter = (cwd, selectedWorkspaces, availableWorkspaceNames) => {
|
|
4
4
|
if (!selectedWorkspaces || !availableWorkspaceNames)
|
|
5
5
|
return () => true;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import picomatch from 'picomatch';
|
|
2
|
-
import { partition } from
|
|
3
|
-
import { ConfigurationError } from
|
|
4
|
-
import { isDirectory, isFile } from
|
|
5
|
-
import { join } from
|
|
2
|
+
import { partition } from "./array.js";
|
|
3
|
+
import { ConfigurationError } from "./errors.js";
|
|
4
|
+
import { isDirectory, isFile } from "./fs.js";
|
|
5
|
+
import { join } from "./path.js";
|
|
6
6
|
export function parseWorkspaceSelector(token, cwd) {
|
|
7
7
|
const trimmed = token.trim();
|
|
8
8
|
let isNegated = false;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "5.
|
|
1
|
+
export declare const version = "5.86.0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '5.
|
|
1
|
+
export const version = '5.86.0';
|
package/package.json
CHANGED
|
@@ -1,19 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "knip",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.86.0",
|
|
4
4
|
"description": "Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"analysis",
|
|
7
|
+
"analyze",
|
|
8
|
+
"class",
|
|
9
|
+
"cli",
|
|
10
|
+
"dead code",
|
|
11
|
+
"dependencies",
|
|
12
|
+
"detect",
|
|
13
|
+
"devDependencies",
|
|
14
|
+
"duplicate",
|
|
15
|
+
"entropy",
|
|
16
|
+
"enum",
|
|
17
|
+
"export",
|
|
18
|
+
"files",
|
|
19
|
+
"find",
|
|
20
|
+
"javascript",
|
|
21
|
+
"lint",
|
|
22
|
+
"maintenance",
|
|
23
|
+
"members",
|
|
24
|
+
"missing",
|
|
25
|
+
"monorepo",
|
|
26
|
+
"namespace",
|
|
27
|
+
"package",
|
|
28
|
+
"scan",
|
|
29
|
+
"types",
|
|
30
|
+
"typescript",
|
|
31
|
+
"unreferenced",
|
|
32
|
+
"unresolved",
|
|
33
|
+
"unused",
|
|
34
|
+
"workspace"
|
|
35
|
+
],
|
|
5
36
|
"homepage": "https://knip.dev",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/webpro-nl/knip.git",
|
|
9
|
-
"directory": "packages/knip"
|
|
10
|
-
},
|
|
11
37
|
"bugs": "https://github.com/webpro-nl/knip/issues",
|
|
12
38
|
"license": "ISC",
|
|
13
39
|
"author": {
|
|
14
40
|
"name": "Lars Kappert",
|
|
15
41
|
"email": "lars@webpro.nl"
|
|
16
42
|
},
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "git+https://github.com/webpro-nl/knip.git",
|
|
46
|
+
"directory": "packages/knip"
|
|
47
|
+
},
|
|
17
48
|
"funding": [
|
|
18
49
|
{
|
|
19
50
|
"type": "github",
|
|
@@ -24,6 +55,17 @@
|
|
|
24
55
|
"url": "https://opencollective.com/knip"
|
|
25
56
|
}
|
|
26
57
|
],
|
|
58
|
+
"bin": {
|
|
59
|
+
"knip": "bin/knip.js",
|
|
60
|
+
"knip-bun": "bin/knip-bun.js"
|
|
61
|
+
},
|
|
62
|
+
"files": [
|
|
63
|
+
"dist",
|
|
64
|
+
"schema.json",
|
|
65
|
+
"schema-jsonc.json"
|
|
66
|
+
],
|
|
67
|
+
"type": "module",
|
|
68
|
+
"types": "./dist/types.d.ts",
|
|
27
69
|
"exports": {
|
|
28
70
|
".": {
|
|
29
71
|
"types": "./dist/types.d.ts",
|
|
@@ -34,89 +76,47 @@
|
|
|
34
76
|
"default": "./dist/session/index.js"
|
|
35
77
|
}
|
|
36
78
|
},
|
|
37
|
-
"bin": {
|
|
38
|
-
"knip": "bin/knip.js",
|
|
39
|
-
"knip-bun": "bin/knip-bun.js"
|
|
40
|
-
},
|
|
41
|
-
"type": "module",
|
|
42
|
-
"types": "./dist/types.d.ts",
|
|
43
|
-
"files": [
|
|
44
|
-
"dist",
|
|
45
|
-
"vendor",
|
|
46
|
-
"schema.json",
|
|
47
|
-
"schema-jsonc.json"
|
|
48
|
-
],
|
|
49
79
|
"dependencies": {
|
|
50
80
|
"@nodelib/fs.walk": "^1.2.3",
|
|
51
81
|
"fast-glob": "^3.3.3",
|
|
52
82
|
"formatly": "^0.3.0",
|
|
53
83
|
"jiti": "^2.6.0",
|
|
54
|
-
"js-yaml": "^4.1.1",
|
|
55
84
|
"minimist": "^1.2.8",
|
|
56
|
-
"oxc-resolver": "^11.
|
|
85
|
+
"oxc-resolver": "^11.19.1",
|
|
57
86
|
"picocolors": "^1.1.1",
|
|
58
87
|
"picomatch": "^4.0.1",
|
|
59
88
|
"smol-toml": "^1.5.2",
|
|
60
89
|
"strip-json-comments": "5.0.3",
|
|
90
|
+
"unbash": "^2.2.0",
|
|
91
|
+
"yaml": "^2.8.2",
|
|
61
92
|
"zod": "^4.1.11"
|
|
62
93
|
},
|
|
63
|
-
"peerDependencies": {
|
|
64
|
-
"@types/node": ">=18",
|
|
65
|
-
"typescript": ">=5.0.4 <7"
|
|
66
|
-
},
|
|
67
94
|
"devDependencies": {
|
|
68
95
|
"@jest/types": "^29.6.3",
|
|
69
96
|
"@types/bun": "^1.3.3",
|
|
70
|
-
"@types/js-yaml": "^4.0.9",
|
|
71
97
|
"@types/minimist": "^1.2.5",
|
|
72
98
|
"@types/picomatch": "^4.0.1",
|
|
73
99
|
"@types/webpack": "^5.28.5",
|
|
74
100
|
"@wdio/types": "^9.20.0",
|
|
75
101
|
"codeclimate-types": "^0.3.1",
|
|
76
102
|
"glob-bin": "^1.0.0",
|
|
77
|
-
"
|
|
103
|
+
"prettier": "^3.8.1",
|
|
104
|
+
"tsx": "^4.21.0",
|
|
78
105
|
"typescript": "^5.8.3"
|
|
79
106
|
},
|
|
107
|
+
"peerDependencies": {
|
|
108
|
+
"@types/node": ">=18",
|
|
109
|
+
"typescript": ">=5.0.4 <7"
|
|
110
|
+
},
|
|
80
111
|
"engines": {
|
|
81
112
|
"node": ">=18.18.0"
|
|
82
113
|
},
|
|
83
114
|
"engineStrict": true,
|
|
84
|
-
"keywords": [
|
|
85
|
-
"analysis",
|
|
86
|
-
"analyze",
|
|
87
|
-
"class",
|
|
88
|
-
"cli",
|
|
89
|
-
"dead code",
|
|
90
|
-
"dependencies",
|
|
91
|
-
"detect",
|
|
92
|
-
"devDependencies",
|
|
93
|
-
"duplicate",
|
|
94
|
-
"entropy",
|
|
95
|
-
"enum",
|
|
96
|
-
"export",
|
|
97
|
-
"files",
|
|
98
|
-
"find",
|
|
99
|
-
"javascript",
|
|
100
|
-
"lint",
|
|
101
|
-
"maintenance",
|
|
102
|
-
"members",
|
|
103
|
-
"missing",
|
|
104
|
-
"monorepo",
|
|
105
|
-
"namespace",
|
|
106
|
-
"package",
|
|
107
|
-
"scan",
|
|
108
|
-
"types",
|
|
109
|
-
"typescript",
|
|
110
|
-
"unreferenced",
|
|
111
|
-
"unresolved",
|
|
112
|
-
"unused",
|
|
113
|
-
"workspace"
|
|
114
|
-
],
|
|
115
115
|
"scripts": {
|
|
116
|
-
"knip": "node ./
|
|
117
|
-
"knip:production": "node ./
|
|
118
|
-
"lint": "
|
|
119
|
-
"format": "
|
|
116
|
+
"knip": "node ./src/cli.ts --directory ../..",
|
|
117
|
+
"knip:production": "node ./src/cli.ts --directory ../.. --production --strict",
|
|
118
|
+
"lint": "oxlint",
|
|
119
|
+
"format": "oxfmt -c ../../.oxfmtrc.json --ignore-path ../../.prettierignore",
|
|
120
120
|
"test": "node scripts/run-test.ts",
|
|
121
121
|
"test:node": "tsx --test test/*.test.ts test/**/*.test.ts",
|
|
122
122
|
"test:bun": "bun test test/*.test.ts test/**/*.test.ts",
|
|
@@ -127,8 +127,8 @@
|
|
|
127
127
|
"build": "tsc",
|
|
128
128
|
"qa": "pnpm lint && pnpm build && pnpm knip && pnpm knip:production && pnpm run test",
|
|
129
129
|
"release": "release-it",
|
|
130
|
-
"create-plugin": "
|
|
131
|
-
"postcreate-plugin": "pnpm run build &&
|
|
132
|
-
"generate-plugin-defs": "node ./scripts/generate-plugin-defs.js &&
|
|
130
|
+
"create-plugin": "node ./scripts/create-new-plugin.ts",
|
|
131
|
+
"postcreate-plugin": "pnpm run build && (oxfmt schema.json schema-jsonc.json src/schema/plugins.ts || true)",
|
|
132
|
+
"generate-plugin-defs": "node ./scripts/generate-plugin-defs.js && (oxfmt src/plugins/index.ts src/types/PluginNames.ts src/schema/plugins.ts || true)"
|
|
133
133
|
}
|
|
134
134
|
}
|
package/schema.json
CHANGED
|
@@ -616,6 +616,10 @@
|
|
|
616
616
|
"title": "nyc plugin configuration (https://knip.dev/reference/plugins/nyc)",
|
|
617
617
|
"$ref": "#/definitions/plugin"
|
|
618
618
|
},
|
|
619
|
+
"openapi-ts": {
|
|
620
|
+
"title": "openapi-ts plugin configuration (https://knip.dev/reference/plugins/openapi-ts)",
|
|
621
|
+
"$ref": "#/definitions/plugin"
|
|
622
|
+
},
|
|
619
623
|
"oclif": {
|
|
620
624
|
"title": "oclif plugin configuration (https://knip.dev/reference/plugins/oclif)",
|
|
621
625
|
"$ref": "#/definitions/plugin"
|
|
@@ -664,6 +668,10 @@
|
|
|
664
668
|
"title": "Prisma plugin configuration (https://knip.dev/reference/plugins/prisma)",
|
|
665
669
|
"$ref": "#/definitions/plugin"
|
|
666
670
|
},
|
|
671
|
+
"qwik": {
|
|
672
|
+
"title": "qwik plugin configuration (https://knip.dev/reference/plugins/qwik)",
|
|
673
|
+
"$ref": "#/definitions/plugin"
|
|
674
|
+
},
|
|
667
675
|
"react-cosmos": {
|
|
668
676
|
"title": "react-cosmos plugin configuration (https://knip.dev/reference/plugins/react-cosmos)",
|
|
669
677
|
"$ref": "#/definitions/plugin"
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
```sh
|
|
2
|
-
git clone git@github.com:ericcornelissen/bash-parser.git
|
|
3
|
-
cd bash-parser
|
|
4
|
-
npm install
|
|
5
|
-
npm run build
|
|
6
|
-
npx esbuild src/index.js --outfile=$HOME/p/knip/knip/packages/knip/vendor/bash-parser/index.js --bundle --platform=node --format=esm --tree-shaking=true --minify
|
|
7
|
-
```
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
type Name = {
|
|
2
|
-
type: string;
|
|
3
|
-
text: string;
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
type CompoundList = {
|
|
7
|
-
type: 'CompoundList';
|
|
8
|
-
commands: Command[];
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
type Command = {
|
|
12
|
-
type: 'Command';
|
|
13
|
-
name?: Name;
|
|
14
|
-
suffix: Name[];
|
|
15
|
-
prefix?: Prefix[];
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export type Prefix = ExpansionNode | Assignment;
|
|
19
|
-
|
|
20
|
-
type LogicalExpression = {
|
|
21
|
-
type: 'LogicalExpression';
|
|
22
|
-
left: Command;
|
|
23
|
-
right: Command;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
type If = {
|
|
27
|
-
type: 'If';
|
|
28
|
-
clause: Node;
|
|
29
|
-
then: Node;
|
|
30
|
-
else?: Node;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
type For = {
|
|
34
|
-
type: 'For';
|
|
35
|
-
name: Name;
|
|
36
|
-
wordlist: Name[];
|
|
37
|
-
do: CompoundList;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
type Function_ = {
|
|
41
|
-
type: 'Function';
|
|
42
|
-
name: Name;
|
|
43
|
-
body: CompoundList;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
type Subshell = {
|
|
47
|
-
type: 'Subshell';
|
|
48
|
-
list: CompoundList;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export type ExpansionNode = {
|
|
52
|
-
expansion: Expansion[];
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
type Expansion = {
|
|
56
|
-
type: 'CommandExpansion';
|
|
57
|
-
commandAST: AST;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
type Pipeline = {
|
|
61
|
-
type: 'Pipeline';
|
|
62
|
-
commands: Command[];
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
export type Assignment = {
|
|
66
|
-
type: 'AssignmentWord';
|
|
67
|
-
text: string;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export type Node = CompoundList | Command | LogicalExpression | If | For | Function_ | Pipeline | Subshell;
|
|
71
|
-
|
|
72
|
-
export type AST = {
|
|
73
|
-
type: 'Script';
|
|
74
|
-
commands: Node[];
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
declare const parse: (s: string) => AST;
|
|
78
|
-
|
|
79
|
-
export default parse;
|