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.
Files changed (608) hide show
  1. package/dist/CacheConsultant.d.ts +2 -2
  2. package/dist/CacheConsultant.js +3 -3
  3. package/dist/CatalogCounselor.d.ts +3 -3
  4. package/dist/CatalogCounselor.js +5 -5
  5. package/dist/ConfigurationChief.d.ts +161 -143
  6. package/dist/ConfigurationChief.js +15 -16
  7. package/dist/ConsoleStreamer.d.ts +1 -1
  8. package/dist/DependencyDeputy.d.ts +6 -6
  9. package/dist/DependencyDeputy.js +13 -10
  10. package/dist/IssueCollector.d.ts +7 -7
  11. package/dist/IssueCollector.js +3 -3
  12. package/dist/IssueFixer.d.ts +3 -3
  13. package/dist/IssueFixer.js +17 -6
  14. package/dist/JsonCatalogPeeker.js +1 -1
  15. package/dist/PrincipalFactory.d.ts +3 -3
  16. package/dist/PrincipalFactory.js +3 -3
  17. package/dist/ProjectPrincipal.d.ts +9 -9
  18. package/dist/ProjectPrincipal.js +15 -9
  19. package/dist/WorkspaceWorker.d.ts +9 -9
  20. package/dist/WorkspaceWorker.js +17 -17
  21. package/dist/YamlCatalogPeeker.js +1 -1
  22. package/dist/binaries/bash-parser.d.ts +2 -2
  23. package/dist/binaries/bash-parser.js +84 -50
  24. package/dist/binaries/fallback.d.ts +1 -1
  25. package/dist/binaries/fallback.js +4 -6
  26. package/dist/binaries/index.d.ts +1 -1
  27. package/dist/binaries/index.js +3 -3
  28. package/dist/binaries/plugins.d.ts +1 -1
  29. package/dist/binaries/plugins.js +6 -6
  30. package/dist/binaries/resolvers/bun.d.ts +2 -0
  31. package/dist/binaries/{package-manager → resolvers}/bun.js +4 -6
  32. package/dist/binaries/{package-manager → resolvers}/bunx.d.ts +2 -2
  33. package/dist/binaries/{package-manager → resolvers}/bunx.js +4 -4
  34. package/dist/binaries/resolvers/find.d.ts +2 -0
  35. package/dist/binaries/resolvers/find.js +19 -0
  36. package/dist/binaries/resolvers/index.d.ts +11 -0
  37. package/dist/binaries/resolvers/index.js +18 -0
  38. package/dist/binaries/resolvers/npm.d.ts +2 -0
  39. package/dist/binaries/resolvers/npx.d.ts +2 -0
  40. package/dist/binaries/{package-manager → resolvers}/npx.js +4 -4
  41. package/dist/binaries/resolvers/pnpm.d.ts +2 -0
  42. package/dist/binaries/{package-manager → resolvers}/pnpm.js +4 -3
  43. package/dist/binaries/{package-manager → resolvers}/pnpx.d.ts +2 -2
  44. package/dist/binaries/{package-manager → resolvers}/pnpx.js +2 -2
  45. package/dist/binaries/resolvers/yarn.d.ts +2 -0
  46. package/dist/binaries/{package-manager → resolvers}/yarn.js +4 -4
  47. package/dist/cli.js +11 -11
  48. package/dist/compilers/compilers.d.ts +1 -1
  49. package/dist/compilers/index.d.ts +33 -3
  50. package/dist/compilers/index.js +2 -2
  51. package/dist/compilers/mdx.d.ts +1 -1
  52. package/dist/compilers/mdx.js +9 -2
  53. package/dist/compilers/scss.d.ts +1 -1
  54. package/dist/compilers/scss.js +1 -1
  55. package/dist/constants.d.ts +1 -1
  56. package/dist/constants.js +1 -1
  57. package/dist/graph/analyze.d.ts +8 -8
  58. package/dist/graph/analyze.js +8 -6
  59. package/dist/graph/build.d.ts +9 -9
  60. package/dist/graph/build.js +19 -17
  61. package/dist/graph-explorer/cache.d.ts +3 -3
  62. package/dist/graph-explorer/explorer.d.ts +7 -7
  63. package/dist/graph-explorer/explorer.js +9 -9
  64. package/dist/graph-explorer/operations/build-exports-tree.d.ts +2 -2
  65. package/dist/graph-explorer/operations/build-exports-tree.js +2 -2
  66. package/dist/graph-explorer/operations/find-cycles.d.ts +2 -2
  67. package/dist/graph-explorer/operations/get-contention.d.ts +2 -2
  68. package/dist/graph-explorer/operations/get-contention.js +3 -3
  69. package/dist/graph-explorer/operations/get-dependency-usage.d.ts +1 -1
  70. package/dist/graph-explorer/operations/get-dependency-usage.js +1 -1
  71. package/dist/graph-explorer/operations/get-usage.d.ts +2 -2
  72. package/dist/graph-explorer/operations/get-usage.js +5 -5
  73. package/dist/graph-explorer/operations/has-strictly-ns-references.d.ts +1 -1
  74. package/dist/graph-explorer/operations/has-strictly-ns-references.js +1 -1
  75. package/dist/graph-explorer/operations/is-referenced.d.ts +1 -1
  76. package/dist/graph-explorer/operations/is-referenced.js +2 -2
  77. package/dist/graph-explorer/operations/resolve-definition.d.ts +2 -2
  78. package/dist/graph-explorer/operations/resolve-definition.js +3 -3
  79. package/dist/graph-explorer/utils.d.ts +1 -1
  80. package/dist/graph-explorer/utils.js +2 -2
  81. package/dist/graph-explorer/visitors.d.ts +1 -1
  82. package/dist/graph-explorer/visitors.js +1 -1
  83. package/dist/graph-explorer/walk-down.d.ts +1 -1
  84. package/dist/graph-explorer/walk-down.js +2 -2
  85. package/dist/graph-explorer/walk-up.d.ts +2 -2
  86. package/dist/graph-explorer/walk-up.js +2 -2
  87. package/dist/index.d.ts +5 -5
  88. package/dist/index.js +3 -3
  89. package/dist/manifest/helpers.d.ts +1 -1
  90. package/dist/manifest/helpers.js +2 -2
  91. package/dist/manifest/index.d.ts +1 -1
  92. package/dist/manifest/index.js +3 -3
  93. package/dist/plugins/_template/index.d.ts +1 -1
  94. package/dist/plugins/_template/index.js +2 -2
  95. package/dist/plugins/angular/index.d.ts +1 -1
  96. package/dist/plugins/angular/index.js +4 -4
  97. package/dist/plugins/astro/compiler-mdx.js +1 -1
  98. package/dist/plugins/astro/compiler.js +1 -1
  99. package/dist/plugins/astro/index.d.ts +1 -1
  100. package/dist/plugins/astro/index.js +9 -6
  101. package/dist/plugins/astro/resolveFromAST.d.ts +1 -0
  102. package/dist/plugins/astro/resolveFromAST.js +18 -1
  103. package/dist/plugins/astro-db/index.d.ts +1 -1
  104. package/dist/plugins/astro-db/index.js +1 -1
  105. package/dist/plugins/astro-og-canvas/index.d.ts +1 -1
  106. package/dist/plugins/astro-og-canvas/index.js +2 -2
  107. package/dist/plugins/ava/index.d.ts +1 -1
  108. package/dist/plugins/ava/index.js +2 -2
  109. package/dist/plugins/babel/helpers.js +1 -1
  110. package/dist/plugins/babel/index.d.ts +3 -3
  111. package/dist/plugins/babel/index.js +7 -4
  112. package/dist/plugins/babel/types.d.ts +1 -1
  113. package/dist/plugins/biome/index.d.ts +1 -1
  114. package/dist/plugins/biome/index.js +4 -4
  115. package/dist/plugins/bumpp/index.d.ts +1 -1
  116. package/dist/plugins/bumpp/index.js +2 -2
  117. package/dist/plugins/bun/index.d.ts +1 -1
  118. package/dist/plugins/bun/index.js +8 -2
  119. package/dist/plugins/c8/index.d.ts +1 -1
  120. package/dist/plugins/c8/index.js +1 -1
  121. package/dist/plugins/capacitor/index.d.ts +1 -1
  122. package/dist/plugins/capacitor/index.js +3 -3
  123. package/dist/plugins/changelogen/index.d.ts +1 -1
  124. package/dist/plugins/changelogen/index.js +2 -2
  125. package/dist/plugins/changelogithub/index.d.ts +1 -1
  126. package/dist/plugins/changelogithub/index.js +2 -2
  127. package/dist/plugins/changesets/index.d.ts +1 -1
  128. package/dist/plugins/changesets/index.js +10 -3
  129. package/dist/plugins/changesets/types.d.ts +1 -0
  130. package/dist/plugins/commitizen/index.d.ts +1 -1
  131. package/dist/plugins/commitizen/index.js +2 -2
  132. package/dist/plugins/commitlint/index.d.ts +1 -1
  133. package/dist/plugins/commitlint/index.js +3 -3
  134. package/dist/plugins/convex/index.d.ts +1 -1
  135. package/dist/plugins/convex/index.js +1 -1
  136. package/dist/plugins/create-typescript-app/index.d.ts +1 -1
  137. package/dist/plugins/create-typescript-app/index.js +1 -1
  138. package/dist/plugins/cspell/index.d.ts +1 -1
  139. package/dist/plugins/cspell/index.js +2 -2
  140. package/dist/plugins/cucumber/index.d.ts +1 -1
  141. package/dist/plugins/cucumber/index.js +2 -2
  142. package/dist/plugins/cypress/helpers.d.ts +2 -2
  143. package/dist/plugins/cypress/helpers.js +2 -2
  144. package/dist/plugins/cypress/index.d.ts +1 -1
  145. package/dist/plugins/cypress/index.js +3 -3
  146. package/dist/plugins/danger/index.d.ts +1 -1
  147. package/dist/plugins/danger/index.js +1 -1
  148. package/dist/plugins/dependency-cruiser/index.d.ts +1 -1
  149. package/dist/plugins/dependency-cruiser/index.js +1 -1
  150. package/dist/plugins/docusaurus/helpers.d.ts +3 -3
  151. package/dist/plugins/docusaurus/helpers.js +2 -2
  152. package/dist/plugins/docusaurus/index.d.ts +1 -1
  153. package/dist/plugins/docusaurus/index.js +3 -3
  154. package/dist/plugins/docusaurus/types.d.ts +1 -1
  155. package/dist/plugins/dotenv/index.d.ts +1 -1
  156. package/dist/plugins/dotenv/index.js +1 -1
  157. package/dist/plugins/drizzle/index.d.ts +1 -1
  158. package/dist/plugins/drizzle/index.js +2 -2
  159. package/dist/plugins/eleventy/index.d.ts +1 -1
  160. package/dist/plugins/eleventy/index.js +6 -6
  161. package/dist/plugins/eleventy/types.d.ts +1 -1
  162. package/dist/plugins/eslint/helpers.d.ts +3 -3
  163. package/dist/plugins/eslint/helpers.js +5 -5
  164. package/dist/plugins/eslint/index.d.ts +1 -1
  165. package/dist/plugins/eslint/index.js +3 -3
  166. package/dist/plugins/execa/index.d.ts +1 -1
  167. package/dist/plugins/execa/index.js +2 -2
  168. package/dist/plugins/execa/visitors/execa.d.ts +1 -1
  169. package/dist/plugins/execa/visitors/execa.js +3 -3
  170. package/dist/plugins/expo/helpers.d.ts +2 -2
  171. package/dist/plugins/expo/helpers.js +3 -3
  172. package/dist/plugins/expo/index.d.ts +1 -1
  173. package/dist/plugins/expo/index.js +4 -4
  174. package/dist/plugins/expressive-code/index.d.ts +1 -1
  175. package/dist/plugins/expressive-code/index.js +1 -1
  176. package/dist/plugins/gatsby/index.d.ts +1 -1
  177. package/dist/plugins/gatsby/index.js +2 -2
  178. package/dist/plugins/github-action/index.d.ts +1 -1
  179. package/dist/plugins/github-action/index.js +4 -4
  180. package/dist/plugins/github-actions/index.d.ts +1 -1
  181. package/dist/plugins/github-actions/index.js +4 -4
  182. package/dist/plugins/glob/index.d.ts +1 -1
  183. package/dist/plugins/graphql-codegen/index.d.ts +1 -1
  184. package/dist/plugins/graphql-codegen/index.js +5 -5
  185. package/dist/plugins/hardhat/index.d.ts +1 -1
  186. package/dist/plugins/hardhat/index.js +2 -2
  187. package/dist/plugins/husky/index.d.ts +1 -1
  188. package/dist/plugins/husky/index.js +3 -3
  189. package/dist/plugins/i18next-parser/index.d.ts +1 -1
  190. package/dist/plugins/i18next-parser/index.js +1 -1
  191. package/dist/plugins/index.d.ts +139 -136
  192. package/dist/plugins/index.js +142 -136
  193. package/dist/plugins/jest/helpers.d.ts +2 -2
  194. package/dist/plugins/jest/helpers.js +2 -2
  195. package/dist/plugins/jest/index.d.ts +1 -1
  196. package/dist/plugins/jest/index.js +4 -4
  197. package/dist/plugins/karma/helpers.d.ts +2 -2
  198. package/dist/plugins/karma/helpers.js +2 -2
  199. package/dist/plugins/karma/index.d.ts +1 -1
  200. package/dist/plugins/karma/index.js +4 -4
  201. package/dist/plugins/knex/index.d.ts +1 -1
  202. package/dist/plugins/knex/index.js +3 -3
  203. package/dist/plugins/ladle/index.d.ts +1 -1
  204. package/dist/plugins/ladle/index.js +4 -4
  205. package/dist/plugins/lefthook/index.d.ts +1 -1
  206. package/dist/plugins/lefthook/index.js +5 -5
  207. package/dist/plugins/lint-staged/index.d.ts +1 -1
  208. package/dist/plugins/lint-staged/index.js +2 -2
  209. package/dist/plugins/linthtml/index.d.ts +1 -1
  210. package/dist/plugins/linthtml/index.js +3 -3
  211. package/dist/plugins/lockfile-lint/index.d.ts +1 -1
  212. package/dist/plugins/lockfile-lint/index.js +2 -2
  213. package/dist/plugins/lost-pixel/index.d.ts +1 -1
  214. package/dist/plugins/lost-pixel/index.js +1 -1
  215. package/dist/plugins/markdownlint/index.d.ts +1 -1
  216. package/dist/plugins/markdownlint/index.js +3 -3
  217. package/dist/plugins/mdx/index.d.ts +1 -1
  218. package/dist/plugins/mdx/index.js +2 -2
  219. package/dist/plugins/mdxlint/index.d.ts +1 -1
  220. package/dist/plugins/mdxlint/index.js +3 -3
  221. package/dist/plugins/metro/index.d.ts +1 -1
  222. package/dist/plugins/metro/index.js +4 -4
  223. package/dist/plugins/mocha/index.d.ts +1 -1
  224. package/dist/plugins/mocha/index.js +2 -2
  225. package/dist/plugins/moonrepo/index.d.ts +1 -1
  226. package/dist/plugins/moonrepo/index.js +1 -1
  227. package/dist/plugins/msw/index.d.ts +1 -1
  228. package/dist/plugins/msw/index.js +3 -3
  229. package/dist/plugins/nano-staged/index.d.ts +1 -1
  230. package/dist/plugins/nano-staged/index.js +1 -1
  231. package/dist/plugins/nest/index.d.ts +1 -1
  232. package/dist/plugins/nest/index.js +2 -2
  233. package/dist/plugins/netlify/helpers.d.ts +1 -1
  234. package/dist/plugins/netlify/index.d.ts +1 -1
  235. package/dist/plugins/netlify/index.js +4 -4
  236. package/dist/plugins/next/index.d.ts +1 -1
  237. package/dist/plugins/next/index.js +4 -4
  238. package/dist/plugins/next/resolveFromAST.js +1 -1
  239. package/dist/plugins/next-intl/index.d.ts +1 -1
  240. package/dist/plugins/next-intl/index.js +1 -1
  241. package/dist/plugins/next-mdx/index.d.ts +1 -1
  242. package/dist/plugins/next-mdx/index.js +3 -3
  243. package/dist/plugins/next-mdx/resolveFromAST.js +1 -1
  244. package/dist/plugins/nitro/index.d.ts +1 -1
  245. package/dist/plugins/nitro/index.js +3 -3
  246. package/dist/plugins/node/index.d.ts +1 -1
  247. package/dist/plugins/node/index.js +1 -1
  248. package/dist/plugins/node-modules-inspector/index.d.ts +1 -1
  249. package/dist/plugins/node-modules-inspector/index.js +2 -2
  250. package/dist/plugins/nodemon/index.d.ts +1 -1
  251. package/dist/plugins/npm-package-json-lint/index.d.ts +1 -1
  252. package/dist/plugins/npm-package-json-lint/index.js +3 -3
  253. package/dist/plugins/nuxt/helpers.d.ts +15 -0
  254. package/dist/plugins/nuxt/helpers.js +133 -0
  255. package/dist/plugins/nuxt/index.d.ts +1 -4
  256. package/dist/plugins/nuxt/index.js +177 -35
  257. package/dist/plugins/nuxt/types.d.ts +50 -0
  258. package/dist/plugins/nx/index.d.ts +1 -1
  259. package/dist/plugins/nx/index.js +13 -11
  260. package/dist/plugins/nx/types.d.ts +1 -0
  261. package/dist/plugins/nyc/index.d.ts +1 -1
  262. package/dist/plugins/nyc/index.js +2 -2
  263. package/dist/plugins/oclif/index.d.ts +1 -1
  264. package/dist/plugins/oclif/index.js +2 -2
  265. package/dist/plugins/openapi-ts/index.d.ts +3 -0
  266. package/dist/plugins/openapi-ts/index.js +13 -0
  267. package/dist/plugins/oxfmt/index.d.ts +3 -0
  268. package/dist/plugins/oxfmt/index.js +16 -0
  269. package/dist/plugins/oxlint/index.d.ts +1 -1
  270. package/dist/plugins/oxlint/index.js +2 -2
  271. package/dist/plugins/parcel/index.d.ts +1 -1
  272. package/dist/plugins/parcel/index.js +2 -2
  273. package/dist/plugins/payload/index.d.ts +1 -1
  274. package/dist/plugins/payload/index.js +2 -2
  275. package/dist/plugins/playwright/index.d.ts +2 -2
  276. package/dist/plugins/playwright/index.js +5 -5
  277. package/dist/plugins/playwright-ct/index.d.ts +1 -1
  278. package/dist/plugins/playwright-ct/index.js +3 -3
  279. package/dist/plugins/playwright-test/index.d.ts +1 -1
  280. package/dist/plugins/playwright-test/index.js +1 -1
  281. package/dist/plugins/plop/index.d.ts +1 -1
  282. package/dist/plugins/plop/index.js +1 -1
  283. package/dist/plugins/pm2/index.d.ts +1 -1
  284. package/dist/plugins/pm2/index.js +3 -3
  285. package/dist/plugins/pnpm/index.d.ts +1 -1
  286. package/dist/plugins/pnpm/index.js +1 -1
  287. package/dist/plugins/postcss/index.d.ts +1 -1
  288. package/dist/plugins/postcss/index.js +3 -3
  289. package/dist/plugins/preconstruct/index.d.ts +1 -1
  290. package/dist/plugins/preconstruct/index.js +3 -3
  291. package/dist/plugins/prettier/index.d.ts +1 -1
  292. package/dist/plugins/prettier/index.js +2 -2
  293. package/dist/plugins/prisma/index.d.ts +1 -1
  294. package/dist/plugins/prisma/index.js +5 -5
  295. package/dist/plugins/qwik/index.d.ts +3 -0
  296. package/dist/plugins/qwik/index.js +47 -0
  297. package/dist/plugins/qwik/resolveFromAST.d.ts +3 -0
  298. package/dist/plugins/qwik/resolveFromAST.js +37 -0
  299. package/dist/plugins/react-cosmos/index.d.ts +1 -1
  300. package/dist/plugins/react-cosmos/index.js +3 -3
  301. package/dist/plugins/react-native/index.d.ts +1 -1
  302. package/dist/plugins/react-native/index.js +2 -2
  303. package/dist/plugins/react-router/index.d.ts +1 -1
  304. package/dist/plugins/react-router/index.js +5 -5
  305. package/dist/plugins/relay/index.d.ts +1 -1
  306. package/dist/plugins/relay/index.js +3 -3
  307. package/dist/plugins/release-it/index.d.ts +1 -1
  308. package/dist/plugins/release-it/index.js +2 -2
  309. package/dist/plugins/remark/index.d.ts +1 -1
  310. package/dist/plugins/remark/index.js +3 -3
  311. package/dist/plugins/remix/index.d.ts +1 -1
  312. package/dist/plugins/remix/index.js +1 -1
  313. package/dist/plugins/rollup/index.d.ts +1 -1
  314. package/dist/plugins/rollup/index.js +1 -1
  315. package/dist/plugins/rsbuild/index.d.ts +1 -1
  316. package/dist/plugins/rsbuild/index.js +2 -2
  317. package/dist/plugins/rslib/index.d.ts +1 -1
  318. package/dist/plugins/rslib/index.js +1 -1
  319. package/dist/plugins/rspack/index.d.ts +1 -1
  320. package/dist/plugins/rspack/index.js +2 -2
  321. package/dist/plugins/rstest/index.d.ts +1 -1
  322. package/dist/plugins/rstest/index.js +2 -2
  323. package/dist/plugins/semantic-release/index.d.ts +1 -1
  324. package/dist/plugins/semantic-release/index.js +3 -3
  325. package/dist/plugins/sentry/index.d.ts +1 -1
  326. package/dist/plugins/sentry/index.js +1 -1
  327. package/dist/plugins/simple-git-hooks/index.d.ts +1 -1
  328. package/dist/plugins/simple-git-hooks/index.js +2 -2
  329. package/dist/plugins/size-limit/index.d.ts +1 -1
  330. package/dist/plugins/size-limit/index.js +3 -3
  331. package/dist/plugins/sst/index.d.ts +1 -1
  332. package/dist/plugins/sst/index.js +2 -2
  333. package/dist/plugins/sst/resolveFromAST.d.ts +1 -1
  334. package/dist/plugins/sst/resolveFromAST.js +4 -4
  335. package/dist/plugins/starlight/index.d.ts +1 -1
  336. package/dist/plugins/starlight/index.js +4 -4
  337. package/dist/plugins/starlight/resolveFromAST.js +1 -1
  338. package/dist/plugins/storybook/index.d.ts +1 -1
  339. package/dist/plugins/storybook/index.js +3 -3
  340. package/dist/plugins/stryker/index.d.ts +1 -1
  341. package/dist/plugins/stryker/index.js +2 -2
  342. package/dist/plugins/stylelint/index.d.ts +1 -1
  343. package/dist/plugins/stylelint/index.js +3 -3
  344. package/dist/plugins/svelte/compiler.d.ts +1 -1
  345. package/dist/plugins/svelte/compiler.js +1 -1
  346. package/dist/plugins/svelte/index.d.ts +1 -1
  347. package/dist/plugins/svelte/index.js +3 -3
  348. package/dist/plugins/sveltekit/index.d.ts +1 -1
  349. package/dist/plugins/sveltekit/index.js +3 -3
  350. package/dist/plugins/svgo/index.d.ts +1 -1
  351. package/dist/plugins/svgo/index.js +1 -1
  352. package/dist/plugins/svgr/index.d.ts +1 -1
  353. package/dist/plugins/svgr/index.js +2 -2
  354. package/dist/plugins/swc/index.d.ts +1 -1
  355. package/dist/plugins/swc/index.js +5 -3
  356. package/dist/plugins/swc/types.d.ts +1 -0
  357. package/dist/plugins/syncpack/index.d.ts +1 -1
  358. package/dist/plugins/syncpack/index.js +2 -2
  359. package/dist/plugins/tailwind/index.d.ts +1 -1
  360. package/dist/plugins/tailwind/index.js +2 -2
  361. package/dist/plugins/tanstack-router/index.d.ts +1 -1
  362. package/dist/plugins/tanstack-router/index.js +3 -3
  363. package/dist/plugins/taskfile/index.d.ts +1 -1
  364. package/dist/plugins/taskfile/index.js +3 -3
  365. package/dist/plugins/travis/index.d.ts +1 -1
  366. package/dist/plugins/travis/index.js +1 -1
  367. package/dist/plugins/ts-node/index.d.ts +1 -1
  368. package/dist/plugins/tsdown/index.d.ts +1 -1
  369. package/dist/plugins/tsdown/index.js +4 -4
  370. package/dist/plugins/tsup/index.d.ts +1 -1
  371. package/dist/plugins/tsup/index.js +2 -2
  372. package/dist/plugins/tsx/index.d.ts +1 -1
  373. package/dist/plugins/tsx/index.js +2 -2
  374. package/dist/plugins/typedoc/index.d.ts +1 -1
  375. package/dist/plugins/typedoc/index.js +2 -2
  376. package/dist/plugins/typescript/index.d.ts +1 -1
  377. package/dist/plugins/typescript/index.js +10 -4
  378. package/dist/plugins/unbuild/index.d.ts +1 -1
  379. package/dist/plugins/unbuild/index.js +2 -2
  380. package/dist/plugins/unocss/index.d.ts +1 -1
  381. package/dist/plugins/unocss/index.js +2 -2
  382. package/dist/plugins/vercel-og/index.d.ts +1 -1
  383. package/dist/plugins/vercel-og/index.js +1 -1
  384. package/dist/plugins/vike/index.d.ts +1 -1
  385. package/dist/plugins/vike/index.js +1 -1
  386. package/dist/plugins/vite/helpers.d.ts +1 -1
  387. package/dist/plugins/vite/helpers.js +4 -4
  388. package/dist/plugins/vite/index.d.ts +1 -1
  389. package/dist/plugins/vite/index.js +5 -5
  390. package/dist/plugins/vite/visitors/importMetaGlob.d.ts +1 -1
  391. package/dist/plugins/vite/visitors/importMetaGlob.js +4 -4
  392. package/dist/plugins/vitepress/index.d.ts +1 -1
  393. package/dist/plugins/vitepress/index.js +1 -1
  394. package/dist/plugins/vitest/helpers.d.ts +1 -1
  395. package/dist/plugins/vitest/index.d.ts +2 -2
  396. package/dist/plugins/vitest/index.js +15 -7
  397. package/dist/plugins/vitest/types.d.ts +1 -0
  398. package/dist/plugins/vue/compiler.d.ts +1 -1
  399. package/dist/plugins/vue/compiler.js +1 -1
  400. package/dist/plugins/vue/index.d.ts +1 -1
  401. package/dist/plugins/vue/index.js +4 -4
  402. package/dist/plugins/webdriver-io/index.d.ts +1 -1
  403. package/dist/plugins/webdriver-io/index.js +2 -2
  404. package/dist/plugins/webpack/index.d.ts +2 -2
  405. package/dist/plugins/webpack/index.js +5 -5
  406. package/dist/plugins/webpack/visitors/requireContext.d.ts +1 -1
  407. package/dist/plugins/webpack/visitors/requireContext.js +4 -4
  408. package/dist/plugins/wireit/index.d.ts +1 -1
  409. package/dist/plugins/wireit/index.js +1 -1
  410. package/dist/plugins/wrangler/index.d.ts +1 -1
  411. package/dist/plugins/wrangler/index.js +3 -3
  412. package/dist/plugins/xo/index.d.ts +1 -1
  413. package/dist/plugins/xo/index.js +2 -2
  414. package/dist/plugins/xo/types.d.ts +1 -1
  415. package/dist/plugins/yarn/index.d.ts +1 -1
  416. package/dist/plugins/yarn/index.js +5 -4
  417. package/dist/plugins/yorkie/index.d.ts +1 -1
  418. package/dist/plugins/yorkie/index.js +2 -2
  419. package/dist/plugins/zx/index.d.ts +1 -1
  420. package/dist/plugins/zx/index.js +2 -2
  421. package/dist/plugins/zx/visitors/zx.d.ts +1 -1
  422. package/dist/plugins/zx/visitors/zx.js +2 -2
  423. package/dist/plugins.d.ts +3 -3
  424. package/dist/plugins.js +2 -2
  425. package/dist/reporters/codeclimate.d.ts +1 -1
  426. package/dist/reporters/codeclimate.js +2 -2
  427. package/dist/reporters/codeowners.d.ts +1 -1
  428. package/dist/reporters/codeowners.js +3 -3
  429. package/dist/reporters/compact.d.ts +1 -1
  430. package/dist/reporters/compact.js +2 -2
  431. package/dist/reporters/disclosure.d.ts +1 -1
  432. package/dist/reporters/disclosure.js +1 -1
  433. package/dist/reporters/github-actions.d.ts +1 -1
  434. package/dist/reporters/github-actions.js +4 -4
  435. package/dist/reporters/index.d.ts +8 -8
  436. package/dist/reporters/index.js +8 -8
  437. package/dist/reporters/json.d.ts +1 -1
  438. package/dist/reporters/json.js +4 -4
  439. package/dist/reporters/markdown.d.ts +1 -1
  440. package/dist/reporters/markdown.js +2 -2
  441. package/dist/reporters/symbols.d.ts +1 -1
  442. package/dist/reporters/symbols.js +2 -2
  443. package/dist/reporters/trace.d.ts +4 -4
  444. package/dist/reporters/trace.js +4 -4
  445. package/dist/reporters/util/configuration-hints.d.ts +2 -2
  446. package/dist/reporters/util/configuration-hints.js +4 -4
  447. package/dist/reporters/util/util.d.ts +3 -3
  448. package/dist/reporters/util/util.js +3 -3
  449. package/dist/reporters/watch.d.ts +3 -3
  450. package/dist/reporters/watch.js +3 -3
  451. package/dist/run.d.ts +12 -12
  452. package/dist/run.js +12 -12
  453. package/dist/schema/configuration.d.ts +45 -0
  454. package/dist/schema/configuration.js +2 -2
  455. package/dist/schema/plugins.d.ts +15 -0
  456. package/dist/schema/plugins.js +3 -0
  457. package/dist/session/build-maps.d.ts +3 -3
  458. package/dist/session/build-maps.js +3 -3
  459. package/dist/session/file-descriptor.d.ts +2 -2
  460. package/dist/session/file-descriptor.js +3 -3
  461. package/dist/session/index.d.ts +12 -12
  462. package/dist/session/index.js +7 -7
  463. package/dist/session/package-json-descriptor.d.ts +2 -2
  464. package/dist/session/package-json-descriptor.js +1 -1
  465. package/dist/session/session.d.ts +7 -7
  466. package/dist/session/session.js +3 -3
  467. package/dist/session/types.d.ts +2 -2
  468. package/dist/types/PluginNames.d.ts +2 -2
  469. package/dist/types/PluginNames.js +3 -0
  470. package/dist/types/args.d.ts +1 -1
  471. package/dist/types/config.d.ts +11 -11
  472. package/dist/types/exports.d.ts +1 -1
  473. package/dist/types/issues.d.ts +2 -2
  474. package/dist/types/module-graph.d.ts +2 -2
  475. package/dist/types/package-json.d.ts +1 -1
  476. package/dist/types/project.d.ts +2 -2
  477. package/dist/types.d.ts +2 -2
  478. package/dist/typescript/SourceFileManager.d.ts +1 -1
  479. package/dist/typescript/SourceFileManager.js +4 -4
  480. package/dist/typescript/ast-helpers.d.ts +3 -3
  481. package/dist/typescript/ast-helpers.js +2 -2
  482. package/dist/typescript/create-hosts.d.ts +3 -3
  483. package/dist/typescript/create-hosts.js +2 -2
  484. package/dist/typescript/get-imports-and-exports.d.ts +3 -3
  485. package/dist/typescript/get-imports-and-exports.js +24 -15
  486. package/dist/typescript/has-refs-in-file.d.ts +1 -1
  487. package/dist/typescript/has-refs-in-file.js +2 -2
  488. package/dist/typescript/pragmas/custom.d.ts +2 -2
  489. package/dist/typescript/pragmas/custom.js +4 -4
  490. package/dist/typescript/pragmas/index.d.ts +2 -2
  491. package/dist/typescript/pragmas/index.js +2 -2
  492. package/dist/typescript/pragmas/typescript.d.ts +2 -2
  493. package/dist/typescript/pragmas/typescript.js +1 -1
  494. package/dist/typescript/resolve-module-names.d.ts +1 -1
  495. package/dist/typescript/resolve-module-names.js +7 -7
  496. package/dist/typescript/visitors/dynamic-imports/importCall.d.ts +1 -1
  497. package/dist/typescript/visitors/dynamic-imports/importCall.js +3 -3
  498. package/dist/typescript/visitors/dynamic-imports/importType.d.ts +1 -1
  499. package/dist/typescript/visitors/dynamic-imports/importType.js +2 -2
  500. package/dist/typescript/visitors/dynamic-imports/index.d.ts +2 -2
  501. package/dist/typescript/visitors/dynamic-imports/index.js +7 -7
  502. package/dist/typescript/visitors/dynamic-imports/jsDocType.d.ts +2 -2
  503. package/dist/typescript/visitors/dynamic-imports/jsDocType.js +2 -2
  504. package/dist/typescript/visitors/dynamic-imports/moduleRegister.d.ts +1 -1
  505. package/dist/typescript/visitors/dynamic-imports/moduleRegister.js +3 -3
  506. package/dist/typescript/visitors/dynamic-imports/requireCall.d.ts +1 -1
  507. package/dist/typescript/visitors/dynamic-imports/requireCall.js +4 -4
  508. package/dist/typescript/visitors/dynamic-imports/resolveCall.d.ts +1 -1
  509. package/dist/typescript/visitors/dynamic-imports/resolveCall.js +3 -3
  510. package/dist/typescript/visitors/dynamic-imports/urlConstructor.d.ts +1 -1
  511. package/dist/typescript/visitors/dynamic-imports/urlConstructor.js +2 -2
  512. package/dist/typescript/visitors/exports/exportAssignment.d.ts +1 -1
  513. package/dist/typescript/visitors/exports/exportAssignment.js +4 -4
  514. package/dist/typescript/visitors/exports/exportDeclaration.d.ts +1 -1
  515. package/dist/typescript/visitors/exports/exportDeclaration.js +3 -3
  516. package/dist/typescript/visitors/exports/exportKeyword.d.ts +1 -1
  517. package/dist/typescript/visitors/exports/exportKeyword.js +5 -5
  518. package/dist/typescript/visitors/exports/exportsAccessExpression.d.ts +1 -1
  519. package/dist/typescript/visitors/exports/exportsAccessExpression.js +3 -3
  520. package/dist/typescript/visitors/exports/index.d.ts +1 -1
  521. package/dist/typescript/visitors/exports/index.js +5 -5
  522. package/dist/typescript/visitors/exports/moduleExportsAccessExpression.d.ts +1 -1
  523. package/dist/typescript/visitors/exports/moduleExportsAccessExpression.js +4 -4
  524. package/dist/typescript/visitors/helpers.d.ts +1 -1
  525. package/dist/typescript/visitors/imports/importDeclaration.d.ts +1 -1
  526. package/dist/typescript/visitors/imports/importDeclaration.js +3 -3
  527. package/dist/typescript/visitors/imports/importEqualsDeclaration.d.ts +1 -1
  528. package/dist/typescript/visitors/imports/importEqualsDeclaration.js +3 -3
  529. package/dist/typescript/visitors/imports/index.d.ts +1 -1
  530. package/dist/typescript/visitors/imports/index.js +3 -3
  531. package/dist/typescript/visitors/imports/reExportDeclaration.d.ts +1 -1
  532. package/dist/typescript/visitors/imports/reExportDeclaration.js +2 -2
  533. package/dist/typescript/visitors/index.d.ts +3 -3
  534. package/dist/typescript/visitors/scripts/bun.d.ts +1 -1
  535. package/dist/typescript/visitors/scripts/bun.js +3 -3
  536. package/dist/typescript/visitors/scripts/index.d.ts +2 -2
  537. package/dist/typescript/visitors/scripts/index.js +1 -1
  538. package/dist/util/Performance.d.ts +3 -5
  539. package/dist/util/Performance.js +37 -20
  540. package/dist/util/catalog.d.ts +2 -2
  541. package/dist/util/catalog.js +3 -3
  542. package/dist/util/codeowners.js +2 -2
  543. package/dist/util/create-input-handler.d.ts +6 -6
  544. package/dist/util/create-input-handler.js +8 -8
  545. package/dist/util/create-options.d.ts +52 -22
  546. package/dist/util/create-options.js +13 -13
  547. package/dist/util/create-workspace-graph.d.ts +1 -1
  548. package/dist/util/create-workspace-graph.js +1 -1
  549. package/dist/util/file-entry-cache.js +4 -4
  550. package/dist/util/fs.d.ts +2 -2
  551. package/dist/util/fs.js +4 -4
  552. package/dist/util/get-included-issue-types.d.ts +1 -1
  553. package/dist/util/get-included-issue-types.js +2 -2
  554. package/dist/util/git.js +1 -1
  555. package/dist/util/glob-core.js +55 -36
  556. package/dist/util/glob.js +4 -4
  557. package/dist/util/input.d.ts +2 -2
  558. package/dist/util/input.js +1 -1
  559. package/dist/util/issue-initializers.d.ts +1 -1
  560. package/dist/util/issue-initializers.js +1 -1
  561. package/dist/util/jiti.js +1 -1
  562. package/dist/util/load-config.d.ts +1 -1
  563. package/dist/util/load-config.js +3 -3
  564. package/dist/util/load-tsconfig.js +2 -2
  565. package/dist/util/loader.js +14 -6
  566. package/dist/util/map-workspaces.d.ts +1 -1
  567. package/dist/util/map-workspaces.js +4 -4
  568. package/dist/util/module-graph.d.ts +1 -1
  569. package/dist/util/modules.js +3 -4
  570. package/dist/util/package-json.d.ts +1 -1
  571. package/dist/util/package-json.js +10 -0
  572. package/dist/util/package-name.d.ts +1 -1
  573. package/dist/util/package-name.js +1 -1
  574. package/dist/util/path.js +1 -1
  575. package/dist/util/plugin.d.ts +2 -2
  576. package/dist/util/plugin.js +5 -5
  577. package/dist/util/remove-export.js +1 -1
  578. package/dist/util/reporter.d.ts +1 -1
  579. package/dist/util/reporter.js +3 -3
  580. package/dist/util/require.js +1 -1
  581. package/dist/util/resolve.d.ts +2 -3
  582. package/dist/util/resolve.js +7 -6
  583. package/dist/util/table.js +1 -1
  584. package/dist/util/tag.d.ts +1 -1
  585. package/dist/util/tag.js +1 -1
  586. package/dist/util/to-source-path.d.ts +1 -1
  587. package/dist/util/to-source-path.js +5 -5
  588. package/dist/util/trace.d.ts +1 -1
  589. package/dist/util/watch.d.ts +10 -10
  590. package/dist/util/watch.js +12 -9
  591. package/dist/util/workspace-file-filter.js +2 -2
  592. package/dist/util/workspace-selectors.d.ts +1 -1
  593. package/dist/util/workspace-selectors.js +4 -4
  594. package/dist/version.d.ts +1 -1
  595. package/dist/version.js +1 -1
  596. package/package.json +64 -64
  597. package/schema.json +12 -0
  598. package/dist/binaries/package-manager/bun.d.ts +0 -2
  599. package/dist/binaries/package-manager/index.d.ts +0 -10
  600. package/dist/binaries/package-manager/index.js +0 -16
  601. package/dist/binaries/package-manager/npm.d.ts +0 -2
  602. package/dist/binaries/package-manager/npx.d.ts +0 -2
  603. package/dist/binaries/package-manager/pnpm.d.ts +0 -2
  604. package/dist/binaries/package-manager/yarn.d.ts +0 -2
  605. package/vendor/bash-parser/README.md +0 -7
  606. package/vendor/bash-parser/index.d.ts +0 -79
  607. package/vendor/bash-parser/index.js +0 -58
  608. /package/dist/binaries/{package-manager → resolvers}/npm.js +0 -0
@@ -1,9 +1,8 @@
1
- import os from 'node:os';
2
1
  import { PerformanceObserver, performance } from 'node:perf_hooks';
3
2
  import { memoryUsage } from 'node:process';
4
3
  import { parseArgs } from 'node:util';
5
- import { getStats } from './math.js';
6
- import { Table } from './table.js';
4
+ import { getStats } from "./math.js";
5
+ import { Table } from "./table.js";
7
6
  const { values } = parseArgs({
8
7
  strict: false,
9
8
  options: {
@@ -24,12 +23,15 @@ export const timerify = (fn, name = fn.name) => {
24
23
  return fn;
25
24
  return performance.timerify(Object.defineProperty(fn, 'name', { get: () => name }));
26
25
  };
27
- const getMemInfo = () => Object.assign({ freemem: os.freemem() }, memoryUsage());
26
+ const getMemInfo = (label) => {
27
+ const usage = memoryUsage();
28
+ return { label, heapUsed: usage.heapUsed, heapTotal: usage.heapTotal, rss: usage.rss };
29
+ };
28
30
  const twoFixed = (value) => (typeof value === 'number' ? value.toFixed(2) : value);
29
31
  const inMB = (bytes) => bytes / 1024 / 1024;
30
- const keys = ['heapUsed', 'heapTotal', 'freemem'];
31
- const logHead = () => console.log(keys.map(key => key.padStart(10)).join(' '));
32
- const log = (memInfo) => console.log(keys.map(key => twoFixed(inMB(memInfo[key])).padStart(10)).join(' '));
32
+ const keys = ['heapUsed', 'heapTotal', 'rss'];
33
+ const logHead = () => console.log(['phase', ...keys].map(key => key.padStart(10)).join(' '));
34
+ const log = (memInfo) => console.log([memInfo.label.padStart(10), ...keys.map(key => twoFixed(inMB(memInfo[key])).padStart(10))].join(' '));
33
35
  class Performance {
34
36
  isEnabled;
35
37
  isTimerifyFunctions;
@@ -42,8 +44,6 @@ class Performance {
42
44
  memId;
43
45
  fnObserver;
44
46
  memObserver;
45
- memoryUsageStart;
46
- freeMemoryStart;
47
47
  constructor({ isTimerifyFunctions = false, isMemoryUsageEnabled = false }) {
48
48
  this.isEnabled = isTimerifyFunctions || isMemoryUsageEnabled;
49
49
  this.isTimerifyFunctions = isTimerifyFunctions;
@@ -69,7 +69,7 @@ class Performance {
69
69
  this.memObserver.observe({ type: 'mark' });
70
70
  if (isMemoryRealtime)
71
71
  logHead();
72
- this.addMemoryMark(0);
72
+ this.addMemoryMark('start');
73
73
  }
74
74
  }
75
75
  setMark(name) {
@@ -98,6 +98,7 @@ class Performance {
98
98
  }
99
99
  getTimerifiedFunctionsTable() {
100
100
  const entriesByName = this.getPerfEntriesByName();
101
+ const totalDuration = this.getCurrentDurationInMs();
101
102
  const table = new Table({ header: true });
102
103
  for (const [name, values] of Object.entries(entriesByName)) {
103
104
  const stats = getStats(values);
@@ -108,38 +109,53 @@ class Performance {
108
109
  table.cell('max', stats.max, twoFixed);
109
110
  table.cell('median', stats.median, twoFixed);
110
111
  table.cell('sum', stats.sum, twoFixed);
112
+ table.cell('%', (stats.sum / totalDuration) * 100, v => (typeof v === 'number' ? `${v.toFixed(0)}%` : ''));
111
113
  }
112
114
  table.sort('sum|desc');
113
115
  return table.toString();
114
116
  }
115
- addMemoryMark(index) {
117
+ addMemoryMark(label) {
116
118
  if (!this.isMemoryUsageEnabled)
117
119
  return;
118
- const id = `${this.memId}:${index}`;
119
- const detail = getMemInfo();
120
+ const id = `${this.memId}:${label}`;
121
+ const detail = getMemInfo(label);
120
122
  performance.mark(id, { detail });
121
- if (isMemoryRealtime && detail)
123
+ if (isMemoryRealtime)
122
124
  log(detail);
123
125
  }
124
126
  getMemoryUsageTable() {
125
127
  const table = new Table({ header: true });
126
- let i = 0;
128
+ let prevHeapUsed = 0;
129
+ let peakHeapUsed = 0;
130
+ let peakRss = 0;
127
131
  for (const entry of this.memEntries) {
128
132
  if (!entry.detail)
129
133
  continue;
134
+ const { label, heapUsed, rss } = entry.detail;
135
+ const delta = heapUsed - prevHeapUsed;
136
+ if (heapUsed > peakHeapUsed)
137
+ peakHeapUsed = heapUsed;
138
+ if (rss > peakRss)
139
+ peakRss = rss;
130
140
  table.row();
131
- table.cell('#', String(i++));
132
- table.cell('heapUsed', inMB(entry.detail.heapUsed), twoFixed);
133
- table.cell('heapTotal', inMB(entry.detail.heapTotal), twoFixed);
134
- table.cell('freemem', inMB(entry.detail.freemem), twoFixed);
141
+ table.cell('Phase', label);
142
+ table.cell('heapUsed', inMB(heapUsed), twoFixed);
143
+ table.cell('rss', inMB(rss), twoFixed);
144
+ table.cell('Δheap', prevHeapUsed === 0 ? '' : `${delta > 0 ? '+' : ''}${twoFixed(inMB(delta))}`, String);
145
+ prevHeapUsed = heapUsed;
135
146
  }
147
+ table.row();
148
+ table.cell('Phase', 'peak');
149
+ table.cell('heapUsed', inMB(peakHeapUsed), twoFixed);
150
+ table.cell('rss', inMB(peakRss), twoFixed);
151
+ table.cell('Δheap', '');
136
152
  return table.toString();
137
153
  }
138
154
  getCurrentDurationInMs() {
139
155
  return performance.now() - this.startTime;
140
156
  }
141
157
  getMemHeapUsage() {
142
- return (memoryUsage().heapUsed ?? 0) - (this.memoryUsageStart?.heapUsed ?? 0);
158
+ return memoryUsage().heapUsed;
143
159
  }
144
160
  getCurrentMemUsageInMb() {
145
161
  return twoFixed(inMB(this.getMemHeapUsage()));
@@ -147,6 +163,7 @@ class Performance {
147
163
  async finalize() {
148
164
  if (!this.isEnabled)
149
165
  return;
166
+ this.addMemoryMark('end');
150
167
  await this.flush();
151
168
  }
152
169
  reset() {
@@ -1,5 +1,5 @@
1
- import type { CatalogContainer } from '../CatalogCounselor.js';
2
- import type { PackageJson } from '../types/package-json.js';
1
+ import type { CatalogContainer } from '../CatalogCounselor.ts';
2
+ import type { PackageJson } from '../types/package-json.ts';
3
3
  export declare const DEFAULT_CATALOG = "default";
4
4
  export declare const getCatalogContainer: (cwd: string, manifest: PackageJson, manifestPath: string, pnpmWorkspacePath?: string, pnpmWorkspace?: any) => Promise<CatalogContainer>;
5
5
  export declare const parseCatalog: (container: CatalogContainer) => Set<string>;
@@ -1,6 +1,6 @@
1
- import { isFile } from './fs.js';
2
- import { _load } from './loader.js';
3
- import { basename, join } from './path.js';
1
+ import { isFile } from "./fs.js";
2
+ import { _load } from "./loader.js";
3
+ import { basename, join } from "./path.js";
4
4
  export const DEFAULT_CATALOG = 'default';
5
5
  export const getCatalogContainer = async (cwd, manifest, manifestPath, pnpmWorkspacePath, pnpmWorkspace) => {
6
6
  const filePath = pnpmWorkspacePath ?? (isFile(cwd, '.yarnrc.yml') ? join(cwd, '.yarnrc.yml') : manifestPath);
@@ -1,7 +1,7 @@
1
1
  import { readFileSync } from 'node:fs';
2
2
  import picomatch from 'picomatch';
3
- import { debugLog } from './debug.js';
4
- import { convertGitignoreToPicomatchIgnorePatterns } from './parse-and-convert-gitignores.js';
3
+ import { debugLog } from "./debug.js";
4
+ import { convertGitignoreToPicomatchIgnorePatterns } from "./parse-and-convert-gitignores.js";
5
5
  export function parseCodeowners(content) {
6
6
  const matchers = content
7
7
  .split(/\r?\n/)
@@ -1,8 +1,8 @@
1
- import type { ConfigurationChief, Workspace } from '../ConfigurationChief.js';
2
- import type { DependencyDeputy } from '../DependencyDeputy.js';
3
- import type { Issue } from '../types/issues.js';
4
- import type { ExternalRef } from '../types/module-graph.js';
5
- import type { MainOptions } from './create-options.js';
6
- import { type Input } from './input.js';
1
+ import type { ConfigurationChief, Workspace } from '../ConfigurationChief.ts';
2
+ import type { DependencyDeputy } from '../DependencyDeputy.ts';
3
+ import type { Issue } from '../types/issues.ts';
4
+ import type { ExternalRef } from '../types/module-graph.ts';
5
+ import type { MainOptions } from './create-options.ts';
6
+ import { type Input } from './input.ts';
7
7
  export type ExternalRefsFromInputs = Map<string, Set<ExternalRef>>;
8
8
  export declare const createInputHandler: (deputy: DependencyDeputy, chief: ConfigurationChief, isGitIgnored: (filePath: string) => boolean, addIssue: (issue: Issue) => void, externalRefs: ExternalRefsFromInputs | undefined, options: MainOptions) => (input: Input, workspace: Workspace) => string | undefined;
@@ -1,9 +1,9 @@
1
- import { IGNORED_RUNTIME_DEPENDENCIES } from '../constants.js';
2
- import { debugLog } from './debug.js';
3
- import { fromBinary, isBinary, isConfig, isDeferResolve, isDeferResolveEntry, isDependency, toDebugString, } from './input.js';
4
- import { getPackageNameFromSpecifier } from './modules.js';
5
- import { dirname, isAbsolute, isInNodeModules, isInternal, join } from './path.js';
6
- import { _resolveModuleSync, _resolveSync } from './resolve.js';
1
+ import { IGNORED_RUNTIME_DEPENDENCIES } from "../constants.js";
2
+ import { debugLog } from "./debug.js";
3
+ import { fromBinary, isBinary, isConfig, isDeferResolve, isDeferResolveEntry, isDependency, toDebugString, } from "./input.js";
4
+ import { getPackageNameFromSpecifier } from "./modules.js";
5
+ import { dirname, isAbsolute, isInNodeModules, isInternal, join } from "./path.js";
6
+ import { resolveModuleSync, _resolveSync } from "./resolve.js";
7
7
  const isJoinable = (specifier) => {
8
8
  const char = specifier.charCodeAt(0);
9
9
  return char !== 35 && char !== 126 && char !== 64 && !isAbsolute(specifier);
@@ -53,7 +53,7 @@ export const createInputHandler = (deputy, chief, isGitIgnored, addIssue, extern
53
53
  const isWorkspace = chief.workspacesByPkgName.has(packageName);
54
54
  const inputWorkspace = getWorkspaceFor(input, chief, workspace);
55
55
  if (inputWorkspace) {
56
- const isHandled = deputy.maybeAddReferencedExternalDependency(inputWorkspace, packageName);
56
+ const isHandled = deputy.maybeAddReferencedExternalDependency(inputWorkspace, packageName, isConfig(input));
57
57
  if (externalRefs && !isWorkspace) {
58
58
  addExternalRef(externalRefs, containingFilePath, { specifier: packageName, identifier: undefined });
59
59
  }
@@ -84,7 +84,7 @@ export const createInputHandler = (deputy, chief, isGitIgnored, addIssue, extern
84
84
  }
85
85
  const filePath = isJoinable(specifier) ? join(input.dir ?? dirname(containingFilePath), specifier) : specifier;
86
86
  const basePath = input.dir ? join(input.dir, 'file.ts') : containingFilePath;
87
- const resolvedFilePath = _resolveModuleSync(filePath, basePath);
87
+ const resolvedFilePath = resolveModuleSync(filePath, basePath);
88
88
  if (resolvedFilePath && isInternal(resolvedFilePath)) {
89
89
  return isGitIgnored(resolvedFilePath) ? undefined : resolvedFilePath;
90
90
  }
@@ -1,21 +1,21 @@
1
- import type { Options } from '../types/options.js';
2
- import type { ParsedCLIArgs } from './cli-arguments.js';
1
+ import type { Options } from '../types/options.ts';
2
+ import type { ParsedCLIArgs } from './cli-arguments.ts';
3
3
  interface CreateOptions extends Partial<Options> {
4
4
  args?: ParsedCLIArgs;
5
5
  }
6
6
  export declare const createOptions: (options: CreateOptions) => Promise<{
7
7
  cacheLocation: string;
8
- catalog: import("../CatalogCounselor.js").CatalogContainer;
8
+ catalog: import("../CatalogCounselor.ts").CatalogContainer;
9
9
  config: string | undefined;
10
10
  configFilePath: string | undefined;
11
11
  cwd: string;
12
12
  dependencies: boolean;
13
- experimentalTags: import("../types/options.js").Tags;
13
+ experimentalTags: import("../types/options.ts").Tags;
14
14
  exports: boolean;
15
15
  files: boolean;
16
16
  fixTypes: string[];
17
17
  gitignore: boolean;
18
- includedIssueTypes: import("../types/issues.js").Report;
18
+ includedIssueTypes: import("../types/issues.ts").Report;
19
19
  isCache: boolean;
20
20
  isDebug: boolean;
21
21
  isDisableConfigHints: boolean;
@@ -395,6 +395,16 @@ export declare const createOptions: (options: CreateOptions) => Promise<{
395
395
  entry?: string | string[] | undefined;
396
396
  project?: string | string[] | undefined;
397
397
  } | undefined;
398
+ 'openapi-ts'?: string | boolean | string[] | {
399
+ config?: string | string[] | undefined;
400
+ entry?: string | string[] | undefined;
401
+ project?: string | string[] | undefined;
402
+ } | undefined;
403
+ oxfmt?: string | boolean | string[] | {
404
+ config?: string | string[] | undefined;
405
+ entry?: string | string[] | undefined;
406
+ project?: string | string[] | undefined;
407
+ } | undefined;
398
408
  oxlint?: string | boolean | string[] | {
399
409
  config?: string | string[] | undefined;
400
410
  entry?: string | string[] | undefined;
@@ -460,6 +470,11 @@ export declare const createOptions: (options: CreateOptions) => Promise<{
460
470
  entry?: string | string[] | undefined;
461
471
  project?: string | string[] | undefined;
462
472
  } | undefined;
473
+ qwik?: string | boolean | string[] | {
474
+ config?: string | string[] | undefined;
475
+ entry?: string | string[] | undefined;
476
+ project?: string | string[] | undefined;
477
+ } | undefined;
463
478
  'react-cosmos'?: string | boolean | string[] | {
464
479
  config?: string | string[] | undefined;
465
480
  entry?: string | string[] | undefined;
@@ -1076,6 +1091,16 @@ export declare const createOptions: (options: CreateOptions) => Promise<{
1076
1091
  entry?: string | string[] | undefined;
1077
1092
  project?: string | string[] | undefined;
1078
1093
  } | undefined;
1094
+ 'openapi-ts'?: string | boolean | string[] | {
1095
+ config?: string | string[] | undefined;
1096
+ entry?: string | string[] | undefined;
1097
+ project?: string | string[] | undefined;
1098
+ } | undefined;
1099
+ oxfmt?: string | boolean | string[] | {
1100
+ config?: string | string[] | undefined;
1101
+ entry?: string | string[] | undefined;
1102
+ project?: string | string[] | undefined;
1103
+ } | undefined;
1079
1104
  oxlint?: string | boolean | string[] | {
1080
1105
  config?: string | string[] | undefined;
1081
1106
  entry?: string | string[] | undefined;
@@ -1141,6 +1166,11 @@ export declare const createOptions: (options: CreateOptions) => Promise<{
1141
1166
  entry?: string | string[] | undefined;
1142
1167
  project?: string | string[] | undefined;
1143
1168
  } | undefined;
1169
+ qwik?: string | boolean | string[] | {
1170
+ config?: string | string[] | undefined;
1171
+ entry?: string | string[] | undefined;
1172
+ project?: string | string[] | undefined;
1173
+ } | undefined;
1144
1174
  'react-cosmos'?: string | boolean | string[] | {
1145
1175
  config?: string | string[] | undefined;
1146
1176
  entry?: string | string[] | undefined;
@@ -1441,24 +1471,24 @@ export declare const createOptions: (options: CreateOptions) => Promise<{
1441
1471
  treatConfigHintsAsErrors?: boolean | undefined;
1442
1472
  };
1443
1473
  rules: {
1444
- files: import("../types/issues.js").IssueSeverity;
1445
- dependencies: import("../types/issues.js").IssueSeverity;
1446
- devDependencies: import("../types/issues.js").IssueSeverity;
1447
- optionalPeerDependencies: import("../types/issues.js").IssueSeverity;
1448
- unlisted: import("../types/issues.js").IssueSeverity;
1449
- binaries: import("../types/issues.js").IssueSeverity;
1450
- unresolved: import("../types/issues.js").IssueSeverity;
1451
- exports: import("../types/issues.js").IssueSeverity;
1452
- nsExports: import("../types/issues.js").IssueSeverity;
1453
- types: import("../types/issues.js").IssueSeverity;
1454
- nsTypes: import("../types/issues.js").IssueSeverity;
1455
- enumMembers: import("../types/issues.js").IssueSeverity;
1456
- classMembers: import("../types/issues.js").IssueSeverity;
1457
- duplicates: import("../types/issues.js").IssueSeverity;
1458
- catalog: import("../types/issues.js").IssueSeverity;
1459
- _files: import("../types/issues.js").IssueSeverity;
1474
+ files: import("../types/issues.ts").IssueSeverity;
1475
+ dependencies: import("../types/issues.ts").IssueSeverity;
1476
+ devDependencies: import("../types/issues.ts").IssueSeverity;
1477
+ optionalPeerDependencies: import("../types/issues.ts").IssueSeverity;
1478
+ unlisted: import("../types/issues.ts").IssueSeverity;
1479
+ binaries: import("../types/issues.ts").IssueSeverity;
1480
+ unresolved: import("../types/issues.ts").IssueSeverity;
1481
+ exports: import("../types/issues.ts").IssueSeverity;
1482
+ nsExports: import("../types/issues.ts").IssueSeverity;
1483
+ types: import("../types/issues.ts").IssueSeverity;
1484
+ nsTypes: import("../types/issues.ts").IssueSeverity;
1485
+ enumMembers: import("../types/issues.ts").IssueSeverity;
1486
+ classMembers: import("../types/issues.ts").IssueSeverity;
1487
+ duplicates: import("../types/issues.ts").IssueSeverity;
1488
+ catalog: import("../types/issues.ts").IssueSeverity;
1489
+ _files: import("../types/issues.ts").IssueSeverity;
1460
1490
  };
1461
- tags: import("../types/options.js").Tags;
1491
+ tags: import("../types/options.ts").Tags;
1462
1492
  traceDependency: string | undefined;
1463
1493
  traceExport: string | undefined;
1464
1494
  traceFile: string | undefined;
@@ -1,16 +1,16 @@
1
- import { partitionCompilers } from '../compilers/index.js';
2
- import { KNIP_CONFIG_LOCATIONS } from '../constants.js';
3
- import { knipConfigurationSchema } from '../schema/configuration.js';
4
- import { getCatalogContainer } from './catalog.js';
5
- import { ConfigurationError } from './errors.js';
6
- import { findFile, loadJSON } from './fs.js';
7
- import { getIncludedIssueTypes, shorthandDeps, shorthandExports, shorthandFiles } from './get-included-issue-types.js';
8
- import { defaultRules } from './issue-initializers.js';
9
- import { loadResolvedConfigFile } from './load-config.js';
10
- import { _load } from './loader.js';
11
- import { getKeysByValue } from './object.js';
12
- import { isAbsolute, join, normalize, toAbsolute, toPosix } from './path.js';
13
- import { splitTags } from './tag.js';
1
+ import { partitionCompilers } from "../compilers/index.js";
2
+ import { KNIP_CONFIG_LOCATIONS } from "../constants.js";
3
+ import { knipConfigurationSchema } from "../schema/configuration.js";
4
+ import { getCatalogContainer } from "./catalog.js";
5
+ import { ConfigurationError } from "./errors.js";
6
+ import { findFile, loadJSON } from "./fs.js";
7
+ import { getIncludedIssueTypes, shorthandDeps, shorthandExports, shorthandFiles } from "./get-included-issue-types.js";
8
+ import { defaultRules } from "./issue-initializers.js";
9
+ import { loadResolvedConfigFile } from "./load-config.js";
10
+ import { _load } from "./loader.js";
11
+ import { getKeysByValue } from "./object.js";
12
+ import { isAbsolute, join, normalize, toAbsolute, toPosix } from "./path.js";
13
+ import { splitTags } from "./tag.js";
14
14
  export const createOptions = async (options) => {
15
15
  const { args = {} } = options;
16
16
  const pcwd = process.cwd();
@@ -1,3 +1,3 @@
1
- import type { WorkspacePackage } from '../types/package-json.js';
1
+ import type { WorkspacePackage } from '../types/package-json.ts';
2
2
  export type WorkspaceGraph = Map<string, Set<string>>;
3
3
  export declare function createWorkspaceGraph(cwd: string, wsNames: string[], wsPkgNames: Set<string>, wsPackages: Map<string, WorkspacePackage>): WorkspaceGraph;
@@ -1,4 +1,4 @@
1
- import { join } from './path.js';
1
+ import { join } from "./path.js";
2
2
  const types = ['peerDependencies', 'devDependencies', 'optionalDependencies', 'dependencies'];
3
3
  export function createWorkspaceGraph(cwd, wsNames, wsPkgNames, wsPackages) {
4
4
  const graph = new Map();
@@ -1,10 +1,10 @@
1
1
  import fs from 'node:fs';
2
2
  import path from 'node:path';
3
3
  import { deserialize, serialize } from 'node:v8';
4
- import { debugLog } from './debug.js';
5
- import { isDirectory, isFile } from './fs.js';
6
- import { timerify } from './Performance.js';
7
- import { dirname, isAbsolute, resolve } from './path.js';
4
+ import { debugLog } from "./debug.js";
5
+ import { isDirectory, isFile } from "./fs.js";
6
+ import { timerify } from "./Performance.js";
7
+ import { dirname, isAbsolute, resolve } from "./path.js";
8
8
  const createCache = (filePath) => {
9
9
  try {
10
10
  return deserialize(fs.readFileSync(filePath));
package/dist/util/fs.d.ts CHANGED
@@ -5,7 +5,7 @@ export declare const loadFile: (filePath: string) => Promise<string>;
5
5
  export declare const hasFileWithExtension: (cwd: string, dirName: string, extensions: string[]) => boolean;
6
6
  export declare const loadJSON: (filePath: string) => Promise<any>;
7
7
  export declare const loadJSONC: (filePath: string) => Promise<any>;
8
- export declare const loadYAML: (filePath: string) => Promise<unknown>;
8
+ export declare const loadYAML: (filePath: string) => Promise<any>;
9
9
  export declare const loadTOML: (filePath: string) => Promise<import("smol-toml").TomlTable>;
10
10
  export declare const parseJSONC: (filePath: string, contents: string) => Promise<any>;
11
- export declare const parseYAML: (contents: string) => unknown;
11
+ export declare const parseYAML: (contents: string) => any;
package/dist/util/fs.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { readdirSync, statSync } from 'node:fs';
2
2
  import { readFile } from 'node:fs/promises';
3
- import yaml from 'js-yaml';
3
+ import { parse as parseYAMLContents } from 'yaml';
4
4
  import { parse as parseTOML } from 'smol-toml';
5
5
  import stripJsonComments from 'strip-json-comments';
6
- import { LoaderError } from './errors.js';
7
- import { extname, join } from './path.js';
6
+ import { LoaderError } from "./errors.js";
7
+ import { extname, join } from "./path.js";
8
8
  export const isDirectory = (cwdOrPath, name) => {
9
9
  try {
10
10
  return statSync(name ? join(cwdOrPath, name) : cwdOrPath).isDirectory();
@@ -77,5 +77,5 @@ export const parseJSONC = async (filePath, contents) => {
77
77
  }
78
78
  };
79
79
  export const parseYAML = (contents) => {
80
- return yaml.load(contents);
80
+ return parseYAMLContents(contents, { logLevel: 'error' });
81
81
  };
@@ -1,4 +1,4 @@
1
- import type { Report } from '../types/issues.js';
1
+ import type { Report } from '../types/issues.ts';
2
2
  type GetIncludedIssueTypesOptions = {
3
3
  isProduction?: boolean;
4
4
  include: string[];
@@ -1,5 +1,5 @@
1
- import { ISSUE_TYPES } from '../constants.js';
2
- import { ConfigurationError } from './errors.js';
1
+ import { ISSUE_TYPES } from "../constants.js";
2
+ import { ConfigurationError } from "./errors.js";
3
3
  export const defaultExcludedIssueTypes = ['classMembers', 'nsExports', 'nsTypes'];
4
4
  const defaultIssueTypes = ISSUE_TYPES.filter(type => !defaultExcludedIssueTypes.includes(type));
5
5
  const normalize = (values) => values.flatMap(value => value.split(','));
package/dist/util/git.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { execSync } from 'node:child_process';
2
- import { join } from './path.js';
2
+ import { join } from "./path.js";
3
3
  const hookFileNames = [
4
4
  'prepare-commit-msg',
5
5
  'commit-msg',
@@ -3,15 +3,14 @@ import { promisify } from 'node:util';
3
3
  import { walk as _walk } from '@nodelib/fs.walk';
4
4
  import fg, {} from 'fast-glob';
5
5
  import picomatch from 'picomatch';
6
- import { GLOBAL_IGNORE_PATTERNS } from '../constants.js';
7
- import { compact, partition } from './array.js';
8
- import { debugLogObject } from './debug.js';
9
- import { isDirectory, isFile } from './fs.js';
10
- import { timerify } from './Performance.js';
11
- import { parseAndConvertGitignorePatterns } from './parse-and-convert-gitignores.js';
12
- import { dirname, join, relative, toPosix } from './path.js';
6
+ import { GLOBAL_IGNORE_PATTERNS } from "../constants.js";
7
+ import { compact, partition } from "./array.js";
8
+ import { debugLogObject } from "./debug.js";
9
+ import { isDirectory, isFile } from "./fs.js";
10
+ import { timerify } from "./Performance.js";
11
+ import { parseAndConvertGitignorePatterns } from "./parse-and-convert-gitignores.js";
12
+ import { dirname, join, relative, toPosix } from "./path.js";
13
13
  const walk = promisify(_walk);
14
- const _picomatch = timerify(picomatch);
15
14
  const cachedGitIgnores = new Map();
16
15
  const cachedGlobIgnores = new Map();
17
16
  const isGitRoot = (dir) => isDirectory(dir, '.git') || isFile(dir, '.git');
@@ -46,15 +45,23 @@ const findAncestorGitignoreFiles = (cwd) => {
46
45
  return gitignorePaths;
47
46
  };
48
47
  export const findAndParseGitignores = async (cwd, workspaceDirs) => {
49
- const init = ['.git', ...GLOBAL_IGNORE_PATTERNS];
50
- const ignores = new Set(init);
48
+ const ignores = new Set(GLOBAL_IGNORE_PATTERNS);
51
49
  const unignores = [];
52
50
  const gitignoreFiles = [];
53
51
  const pmOptions = { ignore: unignores };
54
52
  let deepFilterMatcher;
53
+ let prevUnignoreLength = unignores.length;
54
+ const pendingIgnores = [];
55
55
  const getMatcher = () => {
56
- if (!deepFilterMatcher)
57
- deepFilterMatcher = _picomatch(Array.from(ignores), pmOptions);
56
+ if (!deepFilterMatcher) {
57
+ deepFilterMatcher = picomatch(Array.from(ignores), pmOptions);
58
+ pendingIgnores.length = 0;
59
+ }
60
+ else if (pendingIgnores.length > 0) {
61
+ const prev = deepFilterMatcher;
62
+ const incr = picomatch(pendingIgnores.splice(0), pmOptions);
63
+ deepFilterMatcher = (path) => prev(path) || incr(path);
64
+ }
58
65
  return deepFilterMatcher;
59
66
  };
60
67
  const addFile = (filePath, baseDir) => {
@@ -62,8 +69,9 @@ export const findAndParseGitignores = async (cwd, workspaceDirs) => {
62
69
  const dir = baseDir ?? dirname(toPosix(filePath));
63
70
  const base = relative(cwd, dir);
64
71
  const ancestor = base.startsWith('..') ? `${relative(dir, cwd)}/` : undefined;
65
- const ignoresForDir = new Set(base === '' ? init : []);
72
+ const ignoresForDir = new Set(base === '' ? GLOBAL_IGNORE_PATTERNS : []);
66
73
  const unignoresForDir = new Set();
74
+ const prevIgnoreSize = ignores.size;
67
75
  const patterns = readFileSync(filePath, 'utf8');
68
76
  for (const rule of parseAndConvertGitignorePatterns(patterns, ancestor)) {
69
77
  const [pattern, extraPattern] = rule.patterns;
@@ -113,7 +121,15 @@ export const findAndParseGitignores = async (cwd, workspaceDirs) => {
113
121
  else {
114
122
  cachedGitIgnores.set(cacheDir, { ignores: ignoresForDir, unignores: unignoresForDir });
115
123
  }
116
- deepFilterMatcher = undefined;
124
+ if (unignores.length !== prevUnignoreLength) {
125
+ deepFilterMatcher = undefined;
126
+ prevUnignoreLength = unignores.length;
127
+ }
128
+ else if (ignores.size !== prevIgnoreSize) {
129
+ for (const p of ignoresForDir)
130
+ if (!GLOBAL_IGNORE_PATTERNS.includes(p))
131
+ pendingIgnores.push(p);
132
+ }
117
133
  };
118
134
  for (const filePath of findAncestorGitignoreFiles(cwd))
119
135
  addFile(filePath);
@@ -144,7 +160,7 @@ export const findAndParseGitignores = async (cwd, workspaceDirs) => {
144
160
  if (relevantAncestors.has(absPath))
145
161
  return true;
146
162
  for (const wsDir of nonRootDirs)
147
- if (absPath.startsWith(wsDir + '/'))
163
+ if (absPath.startsWith(`${wsDir}/`))
148
164
  return true;
149
165
  return false;
150
166
  };
@@ -160,8 +176,8 @@ export const findAndParseGitignores = async (cwd, workspaceDirs) => {
160
176
  const deepFilter = (entry) => (!isRelevantDir || isRelevantDir(toPosix(entry.path))) && !getMatcher()(relative(cwd, entry.path));
161
177
  await walk(cwd, {
162
178
  concurrency: 16,
163
- entryFilter: timerify(entryFilter),
164
- deepFilter: timerify(deepFilter),
179
+ entryFilter,
180
+ deepFilter,
165
181
  });
166
182
  debugLogObject('*', 'Parsed gitignore files', { gitignoreFiles });
167
183
  return { gitignoreFiles, ignores, unignores };
@@ -173,26 +189,21 @@ export async function glob(_patterns, options) {
173
189
  const hasCache = cachedGlobIgnores.has(options.dir);
174
190
  const willCache = !hasCache && options.gitignore && options.label;
175
191
  const cachedIgnores = options.gitignore ? cachedGlobIgnores.get(options.dir) : undefined;
176
- const _ignore = [];
192
+ const _ignore = [...GLOBAL_IGNORE_PATTERNS];
177
193
  const [negatedPatterns, patterns] = partition(_patterns, pattern => pattern.startsWith('!'));
178
- if (options.gitignore) {
179
- if (willCache) {
180
- let dir = options.dir;
181
- let prev;
182
- while (dir) {
183
- const cacheForDir = cachedGitIgnores.get(dir);
184
- if (cacheForDir) {
185
- _ignore.push(...cacheForDir.ignores);
186
- }
187
- dir = dirname((prev = dir));
188
- if (prev === dir || dir === '.')
189
- break;
194
+ if (options.gitignore && willCache) {
195
+ let dir = options.dir;
196
+ let prev;
197
+ while (dir) {
198
+ const cacheForDir = cachedGitIgnores.get(dir);
199
+ if (cacheForDir) {
200
+ _ignore.push(...cacheForDir.ignores);
190
201
  }
202
+ dir = dirname((prev = dir));
203
+ if (prev === dir || dir === '.')
204
+ break;
191
205
  }
192
206
  }
193
- else {
194
- _ignore.push(...GLOBAL_IGNORE_PATTERNS);
195
- }
196
207
  if (willCache)
197
208
  cachedGlobIgnores.set(options.dir, compact(_ignore));
198
209
  const ignorePatterns = (cachedIgnores || _ignore).concat(negatedPatterns.map(pattern => pattern.slice(1)));
@@ -213,7 +224,15 @@ export async function getGitIgnoredHandler(options, workspaceDirs) {
213
224
  if (options.gitignore === false)
214
225
  return () => false;
215
226
  const { ignores, unignores } = await _parseFindGitignores(options.cwd, workspaceDirs);
216
- const matcher = _picomatch(Array.from(ignores), { ignore: unignores });
217
- const isGitIgnored = (filePath) => matcher(relative(options.cwd, filePath));
218
- return timerify(isGitIgnored);
227
+ const matcher = picomatch(Array.from(ignores), { ignore: unignores });
228
+ const cache = new Map();
229
+ const isGitIgnored = (filePath) => {
230
+ let result = cache.get(filePath);
231
+ if (result === undefined) {
232
+ result = matcher(relative(options.cwd, filePath));
233
+ cache.set(filePath, result);
234
+ }
235
+ return result;
236
+ };
237
+ return isGitIgnored;
219
238
  }
package/dist/util/glob.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import fg from 'fast-glob';
2
- import { compact } from './array.js';
3
- import { glob } from './glob-core.js';
4
- import { timerify } from './Performance.js';
5
- import { isAbsolute, join, relative } from './path.js';
2
+ import { compact } from "./array.js";
3
+ import { glob } from "./glob-core.js";
4
+ import { timerify } from "./Performance.js";
5
+ import { isAbsolute, join, relative } from "./path.js";
6
6
  const prepend = (pattern, relativePath) => isAbsolute(pattern.replace(/^!/, '')) ? pattern : prependDirToPattern(relativePath, pattern);
7
7
  const prependDirToPatterns = (cwd, dir, patterns) => {
8
8
  const relativePath = relative(cwd, dir);
@@ -1,5 +1,5 @@
1
- import type { IssueType } from '../types/issues.js';
2
- import type { PluginName } from '../types/PluginNames.js';
1
+ import type { IssueType } from '../types/issues.ts';
2
+ import type { PluginName } from '../types/PluginNames.ts';
3
3
  type InputType = 'binary' | 'entry' | 'project' | 'config' | 'dependency' | 'deferResolve' | 'deferResolveEntry' | 'alias' | 'ignore';
4
4
  export interface Input {
5
5
  type: InputType;