knip 5.85.0 → 5.87.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 +161 -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 +13 -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 +84 -50
- 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/plugins.d.ts +1 -1
- package/dist/binaries/plugins.js +6 -6
- package/dist/binaries/resolvers/bun.d.ts +2 -0
- package/dist/binaries/{package-manager → resolvers}/bun.js +4 -6
- package/dist/binaries/{package-manager → resolvers}/bunx.d.ts +2 -2
- package/dist/binaries/{package-manager → resolvers}/bunx.js +4 -4
- package/dist/binaries/resolvers/find.d.ts +2 -0
- package/dist/binaries/resolvers/find.js +19 -0
- package/dist/binaries/resolvers/index.d.ts +11 -0
- package/dist/binaries/resolvers/index.js +18 -0
- package/dist/binaries/resolvers/npm.d.ts +2 -0
- package/dist/binaries/resolvers/npx.d.ts +2 -0
- package/dist/binaries/{package-manager → resolvers}/npx.js +4 -4
- package/dist/binaries/resolvers/pnpm.d.ts +2 -0
- package/dist/binaries/{package-manager → resolvers}/pnpm.js +4 -3
- package/dist/binaries/{package-manager → resolvers}/pnpx.d.ts +2 -2
- package/dist/binaries/{package-manager → resolvers}/pnpx.js +2 -2
- package/dist/binaries/resolvers/yarn.d.ts +2 -0
- package/dist/binaries/{package-manager → resolvers}/yarn.js +4 -4
- package/dist/cli.js +11 -11
- package/dist/compilers/compilers.d.ts +1 -1
- package/dist/compilers/index.d.ts +33 -3
- package/dist/compilers/index.js +2 -2
- package/dist/compilers/mdx.d.ts +1 -1
- package/dist/compilers/mdx.js +9 -2
- package/dist/compilers/scss.d.ts +1 -1
- package/dist/compilers/scss.js +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/graph/analyze.d.ts +8 -8
- package/dist/graph/analyze.js +8 -6
- package/dist/graph/build.d.ts +9 -9
- package/dist/graph/build.js +19 -17
- 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 +7 -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 +10 -3
- package/dist/plugins/changesets/types.d.ts +1 -0
- 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 +139 -136
- package/dist/plugins/index.js +142 -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 +13 -11
- package/dist/plugins/nx/types.d.ts +1 -0
- 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 +13 -0
- package/dist/plugins/oxfmt/index.d.ts +3 -0
- package/dist/plugins/oxfmt/index.js +16 -0
- package/dist/plugins/oxlint/index.d.ts +1 -1
- package/dist/plugins/oxlint/index.js +2 -2
- 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 +45 -0
- package/dist/schema/configuration.js +2 -2
- package/dist/schema/plugins.d.ts +15 -0
- package/dist/schema/plugins.js +3 -0
- package/dist/session/build-maps.d.ts +3 -3
- package/dist/session/build-maps.js +3 -3
- package/dist/session/file-descriptor.d.ts +2 -2
- package/dist/session/file-descriptor.js +3 -3
- package/dist/session/index.d.ts +12 -12
- package/dist/session/index.js +7 -7
- package/dist/session/package-json-descriptor.d.ts +2 -2
- package/dist/session/package-json-descriptor.js +1 -1
- package/dist/session/session.d.ts +7 -7
- package/dist/session/session.js +3 -3
- package/dist/session/types.d.ts +2 -2
- package/dist/types/PluginNames.d.ts +2 -2
- package/dist/types/PluginNames.js +3 -0
- package/dist/types/args.d.ts +1 -1
- package/dist/types/config.d.ts +11 -11
- package/dist/types/exports.d.ts +1 -1
- package/dist/types/issues.d.ts +2 -2
- package/dist/types/module-graph.d.ts +2 -2
- package/dist/types/package-json.d.ts +1 -1
- package/dist/types/project.d.ts +2 -2
- package/dist/types.d.ts +2 -2
- package/dist/typescript/SourceFileManager.d.ts +1 -1
- package/dist/typescript/SourceFileManager.js +4 -4
- package/dist/typescript/ast-helpers.d.ts +3 -3
- package/dist/typescript/ast-helpers.js +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 +7 -7
- 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.d.ts +3 -5
- package/dist/util/Performance.js +37 -20
- 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 +8 -8
- package/dist/util/create-options.d.ts +52 -22
- package/dist/util/create-options.js +13 -13
- package/dist/util/create-workspace-graph.d.ts +1 -1
- package/dist/util/create-workspace-graph.js +1 -1
- package/dist/util/file-entry-cache.js +4 -4
- package/dist/util/fs.d.ts +2 -2
- package/dist/util/fs.js +4 -4
- package/dist/util/get-included-issue-types.d.ts +1 -1
- package/dist/util/get-included-issue-types.js +2 -2
- package/dist/util/git.js +1 -1
- package/dist/util/glob-core.js +55 -36
- 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 +3 -4
- 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/path.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.d.ts +2 -3
- package/dist/util/resolve.js +7 -6
- 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 +12 -9
- 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 +12 -0
- package/dist/binaries/package-manager/bun.d.ts +0 -2
- package/dist/binaries/package-manager/index.d.ts +0 -10
- package/dist/binaries/package-manager/index.js +0 -16
- package/dist/binaries/package-manager/npm.d.ts +0 -2
- package/dist/binaries/package-manager/npx.d.ts +0 -2
- package/dist/binaries/package-manager/pnpm.d.ts +0 -2
- package/dist/binaries/package-manager/yarn.d.ts +0 -2
- 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/binaries/{package-manager → resolvers}/npm.js +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import ts from 'typescript';
|
|
2
|
-
import { IMPORT_FLAGS } from
|
|
3
|
-
import { isPropertyAccessCall } from
|
|
4
|
-
import { _syncGlob } from
|
|
5
|
-
import { dirname, isAbsolute, join } from
|
|
2
|
+
import { IMPORT_FLAGS } from "../../../constants.js";
|
|
3
|
+
import { isPropertyAccessCall } from "../../../typescript/ast-helpers.js";
|
|
4
|
+
import { _syncGlob } from "../../../util/glob.js";
|
|
5
|
+
import { dirname, isAbsolute, join } from "../../../util/path.js";
|
|
6
6
|
export const requireContextCall = sourceFile => {
|
|
7
7
|
return node => {
|
|
8
8
|
if (!isPropertyAccessCall(node, 'require.context'))
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { toProductionEntry } from
|
|
2
|
-
import { hasDependency } from
|
|
1
|
+
import { toProductionEntry } from "../../util/input.js";
|
|
2
|
+
import { hasDependency } from "../../util/plugin.js";
|
|
3
3
|
const title = 'Wrangler';
|
|
4
4
|
const enablers = ['wrangler'];
|
|
5
5
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
6
|
-
const config = ['wrangler.{json,toml}'];
|
|
6
|
+
const config = ['wrangler.{json,jsonc,toml}'];
|
|
7
7
|
const resolveConfig = async (config) => {
|
|
8
8
|
return (config.main ? [config.main] : []).map(id => toProductionEntry(id));
|
|
9
9
|
};
|
package/dist/plugins/xo/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { hasDependency } from
|
|
2
|
-
import { getInputs } from
|
|
1
|
+
import { hasDependency } from "../../util/plugin.js";
|
|
2
|
+
import { getInputs } from "../eslint/helpers.js";
|
|
3
3
|
const title = 'xo';
|
|
4
4
|
const enablers = ['xo'];
|
|
5
5
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isFile } from
|
|
2
|
-
import { toEntry } from
|
|
1
|
+
import { isFile } from "../../util/fs.js";
|
|
2
|
+
import { toEntry } from "../../util/input.js";
|
|
3
3
|
const title = 'Yarn';
|
|
4
4
|
const enablers = 'This plugin is enabled when a `yarn.lock` file is found in the root folder.';
|
|
5
5
|
const isEnabled = async ({ cwd }) => isFile(cwd, 'yarn.lock');
|
|
@@ -10,9 +10,10 @@ const resolveConfig = config => {
|
|
|
10
10
|
const inputs = entry.map(id => toEntry(id));
|
|
11
11
|
if (Array.isArray(config.plugins)) {
|
|
12
12
|
for (const plugin of config.plugins) {
|
|
13
|
-
if (plugin
|
|
13
|
+
if (typeof plugin === 'string')
|
|
14
|
+
inputs.push(toEntry(plugin));
|
|
15
|
+
else if (typeof plugin.path === 'string')
|
|
14
16
|
inputs.push(toEntry(plugin.path));
|
|
15
|
-
}
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
if (config.yarnPath) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toDependency } from
|
|
2
|
-
import { hasDependency } from
|
|
1
|
+
import { toDependency } from "../../util/input.js";
|
|
2
|
+
import { hasDependency } from "../../util/plugin.js";
|
|
3
3
|
const title = 'yorkie';
|
|
4
4
|
const enablers = ['yorkie'];
|
|
5
5
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
package/dist/plugins/zx/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { hasDependency } from
|
|
2
|
-
import zxVisitor from
|
|
1
|
+
import { hasDependency } from "../../util/plugin.js";
|
|
2
|
+
import zxVisitor from "./visitors/zx.js";
|
|
3
3
|
const title = 'zx';
|
|
4
4
|
const enablers = ['zx'];
|
|
5
5
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import ts from 'typescript';
|
|
2
|
-
declare const _default: (sourceFile: ts.SourceFile) => (node: ts.Node, options: import("../../../types/config.
|
|
2
|
+
declare const _default: (sourceFile: ts.SourceFile) => (node: ts.Node, options: import("../../../types/config.ts").GetImportsAndExportsOptions) => string | string[] | undefined;
|
|
3
3
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ts from 'typescript';
|
|
2
|
-
import { stripQuotes } from
|
|
3
|
-
import { scriptVisitor as visit } from
|
|
2
|
+
import { stripQuotes } from "../../../typescript/ast-helpers.js";
|
|
3
|
+
import { scriptVisitor as visit } from "../../../typescript/visitors/index.js";
|
|
4
4
|
export default visit(sourceFile => ts.getShebang(sourceFile.text) === '#!/usr/bin/env zx', node => {
|
|
5
5
|
if (ts.isTaggedTemplateExpression(node) && node.tag.getText() === '$') {
|
|
6
6
|
return stripQuotes(node.template.getText());
|
package/dist/plugins.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Args } from './types/args.
|
|
2
|
-
import type { Entries, PluginMap } from './types/config.
|
|
3
|
-
import type { PluginName } from './types/PluginNames.
|
|
1
|
+
import type { Args } from './types/args.ts';
|
|
2
|
+
import type { Entries, PluginMap } from './types/config.ts';
|
|
3
|
+
import type { PluginName } from './types/PluginNames.ts';
|
|
4
4
|
declare const PMap: PluginMap;
|
|
5
5
|
declare const PluginEntries: Entries;
|
|
6
6
|
declare const pluginArgsMap: Map<string, [PluginName, Args]>;
|
package/dist/plugins.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { parseArgs } from 'node:util';
|
|
2
|
-
import { Plugins } from
|
|
3
|
-
import { timerify } from
|
|
2
|
+
import { Plugins } from "./plugins/index.js";
|
|
3
|
+
import { timerify } from "./util/Performance.js";
|
|
4
4
|
const PMap = Plugins;
|
|
5
5
|
const { values } = parseArgs({ strict: false, options: { performance: { type: 'boolean' } } });
|
|
6
6
|
const isEnabled = !!values.performance;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createHash } from 'node:crypto';
|
|
2
|
-
import { toRelative } from
|
|
3
|
-
import { getIssuePrefix, getIssueTypeTitle } from
|
|
2
|
+
import { toRelative } from "../util/path.js";
|
|
3
|
+
import { getIssuePrefix, getIssueTypeTitle } from "./util/util.js";
|
|
4
4
|
export default async ({ report, issues, cwd }) => {
|
|
5
5
|
const entries = [];
|
|
6
6
|
for (const [type, isReportType] of Object.entries(report)) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createOwnershipEngine } from
|
|
2
|
-
import { relative, resolve } from
|
|
3
|
-
import { getColoredTitle, getIssueLine, getIssueTypeTitle } from
|
|
1
|
+
import { createOwnershipEngine } from "../util/codeowners.js";
|
|
2
|
+
import { relative, resolve } from "../util/path.js";
|
|
3
|
+
import { getColoredTitle, getIssueLine, getIssueTypeTitle } from "./util/util.js";
|
|
4
4
|
const logIssueRecord = (issues, cwd) => {
|
|
5
5
|
const sortedByFilePath = issues.sort((a, b) => (a.owner < b.owner ? -1 : 1));
|
|
6
6
|
for (const { filePath, symbols, owner, parentSymbol } of sortedByFilePath) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toRelative } from
|
|
2
|
-
import { getColoredTitle, getIssueLine, getIssueTypeTitle } from
|
|
1
|
+
import { toRelative } from "../util/path.js";
|
|
2
|
+
import { getColoredTitle, getIssueLine, getIssueTypeTitle } from "./util/util.js";
|
|
3
3
|
const logIssueSet = (issues, cwd) => {
|
|
4
4
|
for (const filePath of issues.sort())
|
|
5
5
|
console.log(toRelative(filePath, cwd));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getIssueTypeTitle, getTableForType } from
|
|
1
|
+
import { getIssueTypeTitle, getTableForType } from "./util/util.js";
|
|
2
2
|
export default ({ report, issues, cwd }) => {
|
|
3
3
|
const reportMultipleGroups = Object.values(report).filter(Boolean).length > 1;
|
|
4
4
|
for (let [reportType, isReportType] of Object.entries(report)) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ReporterOptions } from '../types/issues.
|
|
1
|
+
import type { ReporterOptions } from '../types/issues.ts';
|
|
2
2
|
declare const _default: ({ report, issues, cwd, configurationHints, isDisableConfigHints, isTreatConfigHintsAsErrors, configFilePath, }: ReporterOptions) => void;
|
|
3
3
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ISSUE_TYPE_TITLE } from
|
|
2
|
-
import { relative } from
|
|
3
|
-
import { hintPrinters } from
|
|
4
|
-
import { getIssueTypeTitle } from
|
|
1
|
+
import { ISSUE_TYPE_TITLE } from "../constants.js";
|
|
2
|
+
import { relative } from "../util/path.js";
|
|
3
|
+
import { hintPrinters } from "./util/configuration-hints.js";
|
|
4
|
+
import { getIssueTypeTitle } from "./util/util.js";
|
|
5
5
|
const createGitHubActionsLogger = () => {
|
|
6
6
|
const formatAnnotation = (level, message, options) => {
|
|
7
7
|
const params = [`file=${options.file}`];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
symbols: (options: import("../types.
|
|
3
|
-
compact: ({ report, issues, isShowProgress, cwd }: import("../types.
|
|
4
|
-
codeowners: ({ report, issues, isShowProgress, options, cwd }: import("../types.
|
|
5
|
-
disclosure: ({ report, issues, cwd }: import("../types.
|
|
6
|
-
codeclimate: ({ report, issues, cwd }: import("../types.
|
|
7
|
-
json: ({ report, issues, options, cwd }: import("../types.
|
|
8
|
-
markdown: ({ report, issues, cwd }: import("../types.
|
|
9
|
-
'github-actions': ({ report, issues, cwd, configurationHints, isDisableConfigHints, isTreatConfigHintsAsErrors, configFilePath, }: import("../types.
|
|
2
|
+
symbols: (options: import("../types.ts").ReporterOptions) => void;
|
|
3
|
+
compact: ({ report, issues, isShowProgress, cwd }: import("../types.ts").ReporterOptions) => void;
|
|
4
|
+
codeowners: ({ report, issues, isShowProgress, options, cwd }: import("../types.ts").ReporterOptions) => void;
|
|
5
|
+
disclosure: ({ report, issues, cwd }: import("../types.ts").ReporterOptions) => void;
|
|
6
|
+
codeclimate: ({ report, issues, cwd }: import("../types.ts").ReporterOptions) => Promise<void>;
|
|
7
|
+
json: ({ report, issues, options, cwd }: import("../types.ts").ReporterOptions) => Promise<void>;
|
|
8
|
+
markdown: ({ report, issues, cwd }: import("../types.ts").ReporterOptions) => void;
|
|
9
|
+
'github-actions': ({ report, issues, cwd, configurationHints, isDisableConfigHints, isTreatConfigHintsAsErrors, configFilePath, }: import("../types.ts").ReporterOptions) => void;
|
|
10
10
|
};
|
|
11
11
|
export default _default;
|
package/dist/reporters/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import codeclimate from
|
|
2
|
-
import codeowners from
|
|
3
|
-
import compact from
|
|
4
|
-
import disclosure from
|
|
5
|
-
import githubActions from
|
|
6
|
-
import json from
|
|
7
|
-
import markdown from
|
|
8
|
-
import symbols from
|
|
1
|
+
import codeclimate from "./codeclimate.js";
|
|
2
|
+
import codeowners from "./codeowners.js";
|
|
3
|
+
import compact from "./compact.js";
|
|
4
|
+
import disclosure from "./disclosure.js";
|
|
5
|
+
import githubActions from "./github-actions.js";
|
|
6
|
+
import json from "./json.js";
|
|
7
|
+
import markdown from "./markdown.js";
|
|
8
|
+
import symbols from "./symbols.js";
|
|
9
9
|
export default {
|
|
10
10
|
symbols,
|
|
11
11
|
compact,
|
package/dist/reporters/json.d.ts
CHANGED
package/dist/reporters/json.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createOwnershipEngine } from
|
|
2
|
-
import { isFile } from
|
|
3
|
-
import { relative, resolve } from
|
|
4
|
-
import { convert } from
|
|
1
|
+
import { createOwnershipEngine } from "../util/codeowners.js";
|
|
2
|
+
import { isFile } from "../util/fs.js";
|
|
3
|
+
import { relative, resolve } from "../util/path.js";
|
|
4
|
+
import { convert } from "./util/util.js";
|
|
5
5
|
export default async ({ report, issues, options, cwd }) => {
|
|
6
6
|
let opts = {};
|
|
7
7
|
try {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { relative, toRelative } from
|
|
2
|
-
import { getIssueTypeTitle } from
|
|
1
|
+
import { relative, toRelative } from "../util/path.js";
|
|
2
|
+
import { getIssueTypeTitle } from "./util/util.js";
|
|
3
3
|
export default ({ report, issues, cwd }) => {
|
|
4
4
|
console.log('# Knip report\n');
|
|
5
5
|
const getFilePath = (issue) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { printConfigurationHints } from
|
|
2
|
-
import { dim, getColoredTitle, getIssueTypeTitle, getTableForType } from
|
|
1
|
+
import { printConfigurationHints } from "./util/configuration-hints.js";
|
|
2
|
+
import { dim, getColoredTitle, getIssueTypeTitle, getTableForType } from "./util/util.js";
|
|
3
3
|
export default (options) => {
|
|
4
4
|
const { report, issues, isDisableConfigHints, isShowProgress } = options;
|
|
5
5
|
const reportMultipleGroups = Object.values(report).filter(Boolean).length > 1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { GraphExplorer } from '../graph-explorer/explorer.
|
|
2
|
-
import type { ModuleGraph } from '../types/module-graph.
|
|
3
|
-
import type { MainOptions } from '../util/create-options.
|
|
4
|
-
import type { WorkspaceFilePathFilter } from '../util/workspace-file-filter.
|
|
1
|
+
import type { GraphExplorer } from '../graph-explorer/explorer.ts';
|
|
2
|
+
import type { ModuleGraph } from '../types/module-graph.ts';
|
|
3
|
+
import type { MainOptions } from '../util/create-options.ts';
|
|
4
|
+
import type { WorkspaceFilePathFilter } from '../util/workspace-file-filter.ts';
|
|
5
5
|
interface TraceReporterOptions {
|
|
6
6
|
graph: ModuleGraph;
|
|
7
7
|
explorer: GraphExplorer;
|
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);
|