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
package/dist/util/input.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Counters, Issues, Rules } from '../types/issues.
|
|
1
|
+
import type { Counters, Issues, Rules } from '../types/issues.ts';
|
|
2
2
|
export declare const initIssues: () => Issues;
|
|
3
3
|
export declare const initCounters: () => Counters;
|
|
4
4
|
export declare const defaultRules: Rules;
|
package/dist/util/jiti.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ParsedCLIArgs } from './cli-arguments.
|
|
1
|
+
import type { ParsedCLIArgs } from './cli-arguments.ts';
|
|
2
2
|
export declare function loadResolvedConfigFile(configPath: string, options: ParsedCLIArgs): Promise<any>;
|
package/dist/util/load-config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { debugLogObject } from
|
|
2
|
-
import { ConfigurationError } from
|
|
3
|
-
import { _load } from
|
|
1
|
+
import { debugLogObject } from "./debug.js";
|
|
2
|
+
import { ConfigurationError } from "./errors.js";
|
|
3
|
+
import { _load } from "./loader.js";
|
|
4
4
|
const unwrapFunction = async (maybeFunction, options) => {
|
|
5
5
|
if (typeof maybeFunction === 'function') {
|
|
6
6
|
try {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ts from 'typescript';
|
|
2
|
-
import { isFile } from
|
|
3
|
-
import { dirname } from
|
|
2
|
+
import { isFile } from "./fs.js";
|
|
3
|
+
import { dirname } from "./path.js";
|
|
4
4
|
export const loadTSConfig = async (tsConfigFilePath) => {
|
|
5
5
|
if (isFile(tsConfigFilePath)) {
|
|
6
6
|
const config = ts.readConfigFile(tsConfigFilePath, ts.sys.readFile);
|
package/dist/util/loader.js
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
|
|
2
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
3
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
4
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
return path;
|
|
8
|
+
};
|
|
9
|
+
import { LoaderError } from "./errors.js";
|
|
10
|
+
import { loadFile, loadJSON, loadJSONC, loadTOML, loadYAML, parseJSONC, parseYAML } from "./fs.js";
|
|
11
|
+
import { jiti } from "./jiti.js";
|
|
12
|
+
import { timerify } from "./Performance.js";
|
|
13
|
+
import { extname, isInternal } from "./path.js";
|
|
6
14
|
const load = async (filePath) => {
|
|
7
15
|
try {
|
|
8
16
|
const ext = extname(filePath);
|
|
@@ -28,7 +36,7 @@ const load = async (filePath) => {
|
|
|
28
36
|
return await loadJSONC(filePath);
|
|
29
37
|
}
|
|
30
38
|
if ('Bun' in globalThis) {
|
|
31
|
-
const imported = await import(filePath);
|
|
39
|
+
const imported = await import(__rewriteRelativeImportExtension(filePath));
|
|
32
40
|
return imported.default ?? imported;
|
|
33
41
|
}
|
|
34
42
|
if (ext === '.toml') {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { WorkspacePackage } from '../types/package-json.
|
|
1
|
+
import type { WorkspacePackage } from '../types/package-json.ts';
|
|
2
2
|
type Packages = Map<string, WorkspacePackage>;
|
|
3
3
|
type WorkspacePkgNames = Set<string>;
|
|
4
4
|
export default function mapWorkspaces(cwd: string, workspaces: string[]): Promise<[Packages, WorkspacePkgNames]>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { readFile } from 'node:fs/promises';
|
|
2
2
|
import fg from 'fast-glob';
|
|
3
|
-
import { partition } from
|
|
4
|
-
import { ConfigurationError } from
|
|
5
|
-
import { getPackageName } from
|
|
6
|
-
import { join } from
|
|
3
|
+
import { partition } from "./array.js";
|
|
4
|
+
import { ConfigurationError } from "./errors.js";
|
|
5
|
+
import { getPackageName } from "./package-name.js";
|
|
6
|
+
import { join } from "./path.js";
|
|
7
7
|
export default async function mapWorkspaces(cwd, workspaces) {
|
|
8
8
|
const [negatedPatterns, patterns] = partition(workspaces, p => p.match(/^!/));
|
|
9
9
|
const packages = new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FileNode, IdToFileMap, IdToNsToFileMap, ImportMap, ImportMaps, ModuleGraph } from '../types/module-graph.
|
|
1
|
+
import type { FileNode, IdToFileMap, IdToNsToFileMap, ImportMap, ImportMaps, ModuleGraph } from '../types/module-graph.ts';
|
|
2
2
|
export declare const updateImportMap: (file: FileNode, importMap: ImportMap, graph: ModuleGraph) => void;
|
|
3
3
|
export declare const createFileNode: () => FileNode;
|
|
4
4
|
export declare const createImports: () => ImportMaps;
|
package/dist/util/modules.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { isAbsolute, isInNodeModules, toPosix } from './path.js';
|
|
1
|
+
import { DT_SCOPE, PROTOCOL_VIRTUAL } from "../constants.js";
|
|
2
|
+
import { isAbsolute, isInNodeModules, toPosix } from "./path.js";
|
|
4
3
|
export const getPackageNameFromModuleSpecifier = (moduleSpecifier) => {
|
|
5
4
|
if (!isStartsLikePackageName(moduleSpecifier))
|
|
6
5
|
return;
|
|
@@ -53,7 +52,7 @@ const CHAR_COLON = 58;
|
|
|
53
52
|
const CHAR_HASH = 35;
|
|
54
53
|
const CHAR_QUESTION = 63;
|
|
55
54
|
export const sanitizeSpecifier = (specifier) => {
|
|
56
|
-
if (
|
|
55
|
+
if (specifier.startsWith('node:') ||
|
|
57
56
|
isAbsolute(specifier) ||
|
|
58
57
|
specifier.charCodeAt(0) === CHAR_COLON ||
|
|
59
58
|
specifier.startsWith(PROTOCOL_VIRTUAL)) {
|
|
@@ -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/path.js
CHANGED
|
@@ -5,7 +5,7 @@ export const dirname = path.posix.dirname;
|
|
|
5
5
|
export const extname = path.posix.extname;
|
|
6
6
|
export const basename = path.posix.basename;
|
|
7
7
|
export const join = path.posix.join;
|
|
8
|
-
export const toPosix = (value) => value.split(path.sep).join(path.posix.sep);
|
|
8
|
+
export const toPosix = isWin ? (value) => value.split(path.sep).join(path.posix.sep) : (value) => value;
|
|
9
9
|
export const resolve = path.posix.resolve;
|
|
10
10
|
export const relative = (from, to) => {
|
|
11
11
|
if (to.startsWith(from)) {
|
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.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
declare const createSyncModuleResolver: (extensions: string[]) => (specifier: string, basePath: string) => string | undefined;
|
|
2
|
-
export declare const
|
|
3
|
-
export
|
|
2
|
+
export declare const resolveModuleSync: (specifier: string, basePath: string) => string | undefined;
|
|
3
|
+
export { createSyncModuleResolver };
|
|
4
4
|
export declare const _resolveSync: (specifier: string, baseDir: string) => string | undefined;
|
|
5
|
-
export {};
|
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',
|
|
@@ -13,6 +13,7 @@ const createSyncModuleResolver = (extensions) => {
|
|
|
13
13
|
'.cjs': ['.cjs', '.cts'],
|
|
14
14
|
},
|
|
15
15
|
conditionNames: ['require', 'import', 'node', 'default'],
|
|
16
|
+
nodePath: false,
|
|
16
17
|
});
|
|
17
18
|
return function resolveSync(specifier, basePath) {
|
|
18
19
|
try {
|
|
@@ -23,13 +24,13 @@ const createSyncModuleResolver = (extensions) => {
|
|
|
23
24
|
catch (_error) { }
|
|
24
25
|
};
|
|
25
26
|
};
|
|
26
|
-
const resolveModuleSync = createSyncModuleResolver([...DEFAULT_EXTENSIONS, '.json', '.jsonc']);
|
|
27
|
-
export
|
|
28
|
-
export const _createSyncModuleResolver = extensions => timerify(createSyncModuleResolver(extensions), 'resolveModuleSync');
|
|
27
|
+
export const resolveModuleSync = createSyncModuleResolver([...DEFAULT_EXTENSIONS, '.json', '.jsonc']);
|
|
28
|
+
export { createSyncModuleResolver };
|
|
29
29
|
const createSyncResolver = (extensions) => {
|
|
30
30
|
const resolver = new ResolverFactory({
|
|
31
31
|
extensions,
|
|
32
32
|
conditionNames: ['require', 'import', 'node', 'default'],
|
|
33
|
+
nodePath: false,
|
|
33
34
|
});
|
|
34
35
|
return function resolveSync(specifier, baseDir) {
|
|
35
36
|
try {
|
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;
|
|
@@ -30,9 +30,10 @@ export const getSessionHandler = async (options, { analyzedFiles, analyzeSourceF
|
|
|
30
30
|
continue;
|
|
31
31
|
switch (change.type) {
|
|
32
32
|
case 'added':
|
|
33
|
-
added.add(filePath);
|
|
34
33
|
principal.addProjectPath(filePath);
|
|
35
34
|
principal.deletedFiles.delete(filePath);
|
|
35
|
+
if (principal.projectPaths.has(filePath))
|
|
36
|
+
added.add(filePath);
|
|
36
37
|
debugLog(workspace.name, `Watcher: + ${relativePath}`);
|
|
37
38
|
break;
|
|
38
39
|
case 'deleted':
|
|
@@ -106,8 +107,9 @@ export const getSessionHandler = async (options, { analyzedFiles, analyzeSourceF
|
|
|
106
107
|
const workspace = chief.findWorkspaceByFilePath(filePath);
|
|
107
108
|
if (workspace) {
|
|
108
109
|
const principal = factory.getPrincipalByPackageName(workspace.pkgName);
|
|
109
|
-
if (principal)
|
|
110
|
+
if (principal && (principal.projectPaths.has(filePath) || graph.has(filePath))) {
|
|
110
111
|
analyzeSourceFile(filePath, principal);
|
|
112
|
+
}
|
|
111
113
|
}
|
|
112
114
|
}
|
|
113
115
|
}
|
|
@@ -131,8 +133,9 @@ export const getSessionHandler = async (options, { analyzedFiles, analyzeSourceF
|
|
|
131
133
|
const listener = (eventType, filePath) => {
|
|
132
134
|
debugLog('*', `(raw) ${eventType} ${filePath}`);
|
|
133
135
|
if (typeof filePath === 'string') {
|
|
134
|
-
const
|
|
135
|
-
|
|
136
|
+
const normalizedPath = toPosix(filePath);
|
|
137
|
+
const type = eventType === 'rename' ? (isFile(options.cwd, normalizedPath) ? 'added' : 'deleted') : 'modified';
|
|
138
|
+
handleFileChanges([{ type, filePath: normalizedPath }]);
|
|
136
139
|
}
|
|
137
140
|
};
|
|
138
141
|
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.87.0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '5.
|
|
1
|
+
export const version = '5.87.0';
|