packtory 0.0.91 → 0.0.92

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 (650) hide show
  1. package/artifacts/artifacts-builder.js +4 -37
  2. package/artifacts/artifacts-builder.js.map +1 -1
  3. package/artifacts/content-collection.js +2 -59
  4. package/artifacts/content-collection.js.map +1 -1
  5. package/artifacts/folder-writer.js +2 -25
  6. package/artifacts/folder-writer.js.map +1 -1
  7. package/bundle-emitter/emitter.d.ts +0 -8
  8. package/bundle-emitter/emitter.d.ts.map +1 -1
  9. package/bundle-emitter/emitter.js +6 -106
  10. package/bundle-emitter/emitter.js.map +1 -1
  11. package/bundle-emitter/extract-package-tarball.js +2 -13
  12. package/bundle-emitter/extract-package-tarball.js.map +1 -1
  13. package/bundle-emitter/fetch-published-artifacts.js +2 -16
  14. package/bundle-emitter/fetch-published-artifacts.js.map +1 -1
  15. package/bundle-emitter/publication-outcome.d.ts +0 -3
  16. package/bundle-emitter/publication-outcome.d.ts.map +1 -1
  17. package/bundle-emitter/publication-outcome.js +0 -5
  18. package/bundle-emitter/publication-outcome.js.map +1 -1
  19. package/bundle-emitter/publish-error/auto-mode-error-matching.js +2 -28
  20. package/bundle-emitter/publish-error/auto-mode-error-matching.js.map +1 -1
  21. package/bundle-emitter/publish-error/error-shape-helpers.js +0 -9
  22. package/bundle-emitter/publish-error/error-shape-helpers.js.map +1 -1
  23. package/bundle-emitter/publish-error/file-mode-error-matching.js +2 -33
  24. package/bundle-emitter/publish-error/file-mode-error-matching.js.map +1 -1
  25. package/bundle-emitter/publish-error/publish-error-messages.js +0 -24
  26. package/bundle-emitter/publish-error/publish-error-messages.js.map +1 -1
  27. package/bundle-emitter/registry/metadata-auth-retry.js +1 -24
  28. package/bundle-emitter/registry/metadata-auth-retry.js.map +1 -1
  29. package/bundle-emitter/registry/oidc-token-exchange.js +3 -68
  30. package/bundle-emitter/registry/oidc-token-exchange.js.map +1 -1
  31. package/bundle-emitter/registry/package-metadata-fetcher.d.ts +0 -13
  32. package/bundle-emitter/registry/package-metadata-fetcher.d.ts.map +1 -1
  33. package/bundle-emitter/registry/package-metadata-fetcher.js +7 -186
  34. package/bundle-emitter/registry/package-metadata-fetcher.js.map +1 -1
  35. package/bundle-emitter/registry/publish-settings-bridge.js +3 -34
  36. package/bundle-emitter/registry/publish-settings-bridge.js.map +1 -1
  37. package/bundle-emitter/registry/registry-auth-config.js +0 -106
  38. package/bundle-emitter/registry/registry-auth-config.js.map +1 -1
  39. package/bundle-emitter/registry/registry-client.d.ts +1 -13
  40. package/bundle-emitter/registry/registry-client.d.ts.map +1 -1
  41. package/bundle-emitter/registry/registry-client.js +4 -71
  42. package/bundle-emitter/registry/registry-client.js.map +1 -1
  43. package/bundle-emitter/registry/registry-package-path.js +0 -3
  44. package/bundle-emitter/registry/registry-package-path.js.map +1 -1
  45. package/bundle-emitter/registry/registry-response-schemas.js +2 -50
  46. package/bundle-emitter/registry/registry-response-schemas.js.map +1 -1
  47. package/bundle-emitter/registry/tarball-integrity.d.ts +0 -1
  48. package/bundle-emitter/registry/tarball-integrity.d.ts.map +1 -1
  49. package/bundle-emitter/registry/tarball-integrity.js +1 -31
  50. package/bundle-emitter/registry/tarball-integrity.js.map +1 -1
  51. package/bundle-emitter/registry/validate-tarball-host.js +1 -26
  52. package/bundle-emitter/registry/validate-tarball-host.js.map +1 -1
  53. package/bundle-emitter/release-artifact-canonicalizer.js +5 -31
  54. package/bundle-emitter/release-artifact-canonicalizer.js.map +1 -1
  55. package/checks/check-runner.js +0 -8
  56. package/checks/check-runner.js.map +1 -1
  57. package/checks/rule.js +2 -12
  58. package/checks/rule.js.map +1 -1
  59. package/checks/rules/duplicate-detection.js +1 -23
  60. package/checks/rules/duplicate-detection.js.map +1 -1
  61. package/checks/rules/duplicate-messages.js +0 -22
  62. package/checks/rules/duplicate-messages.js.map +1 -1
  63. package/checks/rules/file-ownership.js +0 -15
  64. package/checks/rules/file-ownership.js.map +1 -1
  65. package/checks/rules/max-bundle-size.js +1 -55
  66. package/checks/rules/max-bundle-size.js.map +1 -1
  67. package/checks/rules/no-dev-dependency-imports.js +1 -51
  68. package/checks/rules/no-dev-dependency-imports.js.map +1 -1
  69. package/checks/rules/no-duplicated-files.js +3 -53
  70. package/checks/rules/no-duplicated-files.js.map +1 -1
  71. package/checks/rules/no-side-effects.js +1 -50
  72. package/checks/rules/no-side-effects.js.map +1 -1
  73. package/checks/rules/no-unexposed-executables.js +2 -43
  74. package/checks/rules/no-unexposed-executables.js.map +1 -1
  75. package/checks/rules/no-unused-bundle-dependencies.js +2 -30
  76. package/checks/rules/no-unused-bundle-dependencies.js.map +1 -1
  77. package/checks/rules/registry.js +9 -22
  78. package/checks/rules/registry.js.map +1 -1
  79. package/checks/rules/required-files.js +3 -41
  80. package/checks/rules/required-files.js.map +1 -1
  81. package/checks/rules/type-script-declaration-integrity.js +3 -81
  82. package/checks/rules/type-script-declaration-integrity.js.map +1 -1
  83. package/checks/rules/type-script-declaration-paths.js +1 -55
  84. package/checks/rules/type-script-declaration-paths.js.map +1 -1
  85. package/checks/rules/type-script-declaration-project.js +3 -202
  86. package/checks/rules/type-script-declaration-project.js.map +1 -1
  87. package/checks/rules/type-script-declaration-reachability.js +2 -38
  88. package/checks/rules/type-script-declaration-reachability.js.map +1 -1
  89. package/checks/rules/type-script-declaration-roots.js +0 -29
  90. package/checks/rules/type-script-declaration-roots.js.map +1 -1
  91. package/checks/rules/type-script-integrity.js +2 -72
  92. package/checks/rules/type-script-integrity.js.map +1 -1
  93. package/checks/rules/type-script-package-resolution.js +1 -42
  94. package/checks/rules/type-script-package-resolution.js.map +1 -1
  95. package/checks/rules/type-script-resolution-summary.js +0 -53
  96. package/checks/rules/type-script-resolution-summary.js.map +1 -1
  97. package/checks/rules/unique-target-paths.js +2 -34
  98. package/checks/rules/unique-target-paths.js.map +1 -1
  99. package/common/bundled-dependency-groups.js +0 -27
  100. package/common/bundled-dependency-groups.js.map +1 -1
  101. package/common/code-files.js +0 -28
  102. package/common/code-files.js.map +1 -1
  103. package/common/declaration-companion-paths.js +0 -24
  104. package/common/declaration-companion-paths.js.map +1 -1
  105. package/common/package-name-map.js +0 -7
  106. package/common/package-name-map.js.map +1 -1
  107. package/common/stable-json.js +2 -42
  108. package/common/stable-json.js.map +1 -1
  109. package/common/worklist.js +0 -22
  110. package/common/worklist.js.map +1 -1
  111. package/config/additional-files.js +2 -6
  112. package/config/additional-files.js.map +1 -1
  113. package/config/additional-package-json-attributes-schema.js +2 -6
  114. package/config/additional-package-json-attributes-schema.js.map +1 -1
  115. package/config/automatic-versioning-settings.js +2 -6
  116. package/config/automatic-versioning-settings.js.map +1 -1
  117. package/config/changelog-settings.d.ts +0 -44
  118. package/config/changelog-settings.d.ts.map +1 -1
  119. package/config/changelog-settings.js +3 -120
  120. package/config/changelog-settings.js.map +1 -1
  121. package/config/common-package-settings-schemas.js +3 -19
  122. package/config/common-package-settings-schemas.js.map +1 -1
  123. package/config/config.d.ts +1 -6
  124. package/config/config.d.ts.map +1 -1
  125. package/config/config.js +1 -3
  126. package/config/config.js.map +1 -1
  127. package/config/cross-package-validation.js +0 -17
  128. package/config/cross-package-validation.js.map +1 -1
  129. package/config/dead-code-elimination-settings.d.ts +0 -1
  130. package/config/dead-code-elimination-settings.d.ts.map +1 -1
  131. package/config/dead-code-elimination-settings.js +2 -36
  132. package/config/dead-code-elimination-settings.js.map +1 -1
  133. package/config/dependency-existence-validation.js +1 -19
  134. package/config/dependency-existence-validation.js.map +1 -1
  135. package/config/dependency-policy.js +2 -5
  136. package/config/dependency-policy.js.map +1 -1
  137. package/config/main-package-json-schema.js +2 -13
  138. package/config/main-package-json-schema.js.map +1 -1
  139. package/config/manual-versioning-settings.d.ts +0 -12
  140. package/config/manual-versioning-settings.d.ts.map +1 -1
  141. package/config/manual-versioning-settings.js +2 -29
  142. package/config/manual-versioning-settings.js.map +1 -1
  143. package/config/optional-package-settings-schema.js +7 -16
  144. package/config/optional-package-settings-schema.js.map +1 -1
  145. package/config/package-config.d.ts +0 -4
  146. package/config/package-config.d.ts.map +1 -1
  147. package/config/package-config.js +1 -2
  148. package/config/package-config.js.map +1 -1
  149. package/config/package-graph-builder.js +2 -14
  150. package/config/package-graph-builder.js.map +1 -1
  151. package/config/package-interface.js +2 -25
  152. package/config/package-interface.js.map +1 -1
  153. package/config/package-json.d.ts +0 -2
  154. package/config/package-json.d.ts.map +1 -1
  155. package/config/package-json.js +0 -16
  156. package/config/package-json.js.map +1 -1
  157. package/config/packtory-config-without-registry-schema.js +0 -6
  158. package/config/packtory-config-without-registry-schema.js.map +1 -1
  159. package/config/per-package-settings-schema.js +6 -22
  160. package/config/per-package-settings-schema.js.map +1 -1
  161. package/config/pre-graph-validation.js +5 -20
  162. package/config/pre-graph-validation.js.map +1 -1
  163. package/config/publish-settings.d.ts +0 -3
  164. package/config/publish-settings.d.ts.map +1 -1
  165. package/config/publish-settings.js +3 -25
  166. package/config/publish-settings.js.map +1 -1
  167. package/config/publish-settings.report.js +1 -17
  168. package/config/publish-settings.report.js.map +1 -1
  169. package/config/registry-settings.d.ts +0 -41
  170. package/config/registry-settings.d.ts.map +1 -1
  171. package/config/registry-settings.js +2 -40
  172. package/config/registry-settings.js.map +1 -1
  173. package/config/registry-settings.report.js +0 -46
  174. package/config/registry-settings.report.js.map +1 -1
  175. package/config/root-config-validation.js +0 -141
  176. package/config/root-config-validation.js.map +1 -1
  177. package/config/root.js +2 -6
  178. package/config/root.js.map +1 -1
  179. package/config/sbom-settings.js +1 -4
  180. package/config/sbom-settings.js.map +1 -1
  181. package/config/settings-validation.js +0 -28
  182. package/config/settings-validation.js.map +1 -1
  183. package/config/versioning-settings.d.ts +1 -18
  184. package/config/versioning-settings.d.ts.map +1 -1
  185. package/config/versioning-settings.js +3 -10
  186. package/config/versioning-settings.js.map +1 -1
  187. package/dead-code-eliminator/analyzed-bundle.d.ts +0 -11
  188. package/dead-code-eliminator/analyzed-bundle.d.ts.map +1 -1
  189. package/dead-code-eliminator/analyzed-bundle.js +0 -7
  190. package/dead-code-eliminator/analyzed-bundle.js.map +1 -1
  191. package/dead-code-eliminator/class-purity.js +2 -48
  192. package/dead-code-eliminator/class-purity.js.map +1 -1
  193. package/dead-code-eliminator/code-file-analyzer.js +4 -62
  194. package/dead-code-eliminator/code-file-analyzer.js.map +1 -1
  195. package/dead-code-eliminator/cross-bundle/bundle-index.js +1 -27
  196. package/dead-code-eliminator/cross-bundle/bundle-index.js.map +1 -1
  197. package/dead-code-eliminator/cross-bundle/cross-bundle-seeds.js +3 -18
  198. package/dead-code-eliminator/cross-bundle/cross-bundle-seeds.js.map +1 -1
  199. package/dead-code-eliminator/cross-bundle/import-export-walker.js +4 -75
  200. package/dead-code-eliminator/cross-bundle/import-export-walker.js.map +1 -1
  201. package/dead-code-eliminator/cross-bundle/seed-store.js +1 -22
  202. package/dead-code-eliminator/cross-bundle/seed-store.js.map +1 -1
  203. package/dead-code-eliminator/dependency-metadata.js +3 -205
  204. package/dead-code-eliminator/dependency-metadata.js.map +1 -1
  205. package/dead-code-eliminator/elimination-emitter.js +0 -52
  206. package/dead-code-eliminator/elimination-emitter.js.map +1 -1
  207. package/dead-code-eliminator/eliminator.js +8 -64
  208. package/dead-code-eliminator/eliminator.js.map +1 -1
  209. package/dead-code-eliminator/expression-unwrapping.js +1 -16
  210. package/dead-code-eliminator/expression-unwrapping.js.map +1 -1
  211. package/dead-code-eliminator/imported-expression-origin.js +2 -101
  212. package/dead-code-eliminator/imported-expression-origin.js.map +1 -1
  213. package/dead-code-eliminator/liveness/asset-side-effects.js +1 -9
  214. package/dead-code-eliminator/liveness/asset-side-effects.js.map +1 -1
  215. package/dead-code-eliminator/liveness/boolean-facts.js +2 -98
  216. package/dead-code-eliminator/liveness/boolean-facts.js.map +1 -1
  217. package/dead-code-eliminator/liveness/external-module-resolution.js +2 -172
  218. package/dead-code-eliminator/liveness/external-module-resolution.js.map +1 -1
  219. package/dead-code-eliminator/liveness/external-purity-summary.js +3 -294
  220. package/dead-code-eliminator/liveness/external-purity-summary.js.map +1 -1
  221. package/dead-code-eliminator/liveness/external-purity.js +3 -39
  222. package/dead-code-eliminator/liveness/external-purity.js.map +1 -1
  223. package/dead-code-eliminator/liveness/module-analysis.js +2 -27
  224. package/dead-code-eliminator/liveness/module-analysis.js.map +1 -1
  225. package/dead-code-eliminator/liveness/resource-retention.js +1 -78
  226. package/dead-code-eliminator/liveness/resource-retention.js.map +1 -1
  227. package/dead-code-eliminator/liveness/runtime-code.js +1 -15
  228. package/dead-code-eliminator/liveness/runtime-code.js.map +1 -1
  229. package/dead-code-eliminator/load-bundle.js +5 -70
  230. package/dead-code-eliminator/load-bundle.js.map +1 -1
  231. package/dead-code-eliminator/pure-expression.js +5 -178
  232. package/dead-code-eliminator/pure-expression.js.map +1 -1
  233. package/dead-code-eliminator/reachability/bfs-closure.js +0 -50
  234. package/dead-code-eliminator/reachability/bfs-closure.js.map +1 -1
  235. package/dead-code-eliminator/reachability/binding-extractor.js +2 -100
  236. package/dead-code-eliminator/reachability/binding-extractor.js.map +1 -1
  237. package/dead-code-eliminator/reachability/binding-id.js +0 -32
  238. package/dead-code-eliminator/reachability/binding-id.js.map +1 -1
  239. package/dead-code-eliminator/reachability/identifier-target-collector.js +1 -39
  240. package/dead-code-eliminator/reachability/identifier-target-collector.js.map +1 -1
  241. package/dead-code-eliminator/reachability/impure-statements.js +2 -11
  242. package/dead-code-eliminator/reachability/impure-statements.js.map +1 -1
  243. package/dead-code-eliminator/reachability/local-seed-gathering.js +4 -43
  244. package/dead-code-eliminator/reachability/local-seed-gathering.js.map +1 -1
  245. package/dead-code-eliminator/reachability/reachability.js +4 -38
  246. package/dead-code-eliminator/reachability/reachability.js.map +1 -1
  247. package/dead-code-eliminator/side-effect-classifier.js +4 -39
  248. package/dead-code-eliminator/side-effect-classifier.js.map +1 -1
  249. package/dead-code-eliminator/side-effects-field.js +1 -23
  250. package/dead-code-eliminator/side-effects-field.js.map +1 -1
  251. package/dead-code-eliminator/source-map-recomposition.js +2 -29
  252. package/dead-code-eliminator/source-map-recomposition.js.map +1 -1
  253. package/dead-code-eliminator/statement-classifiers.js +4 -94
  254. package/dead-code-eliminator/statement-classifiers.js.map +1 -1
  255. package/dead-code-eliminator/syntax-kind-sets.js +0 -16
  256. package/dead-code-eliminator/syntax-kind-sets.js.map +1 -1
  257. package/dead-code-eliminator/transform/atom-translator.d.ts +0 -8
  258. package/dead-code-eliminator/transform/atom-translator.d.ts.map +1 -1
  259. package/dead-code-eliminator/transform/atom-translator.js +2 -57
  260. package/dead-code-eliminator/transform/atom-translator.js.map +1 -1
  261. package/dead-code-eliminator/transform/declaration-removal.js +4 -135
  262. package/dead-code-eliminator/transform/declaration-removal.js.map +1 -1
  263. package/dead-code-eliminator/transform/declaration-remover.js +2 -17
  264. package/dead-code-eliminator/transform/declaration-remover.js.map +1 -1
  265. package/dead-code-eliminator/transform/line-index.d.ts +0 -7
  266. package/dead-code-eliminator/transform/line-index.d.ts.map +1 -1
  267. package/dead-code-eliminator/transform/line-index.js +0 -20
  268. package/dead-code-eliminator/transform/line-index.js.map +1 -1
  269. package/dead-code-eliminator/transform/named-declaration-kinds.js +0 -3
  270. package/dead-code-eliminator/transform/named-declaration-kinds.js.map +1 -1
  271. package/dead-code-eliminator/transform/source-map-composer.js +3 -84
  272. package/dead-code-eliminator/transform/source-map-composer.js.map +1 -1
  273. package/dead-code-eliminator/variable-declaration-bindings.js +1 -25
  274. package/dead-code-eliminator/variable-declaration-bindings.js.map +1 -1
  275. package/dependency-scanner/dependency-graph.js +3 -74
  276. package/dependency-scanner/dependency-graph.js.map +1 -1
  277. package/dependency-scanner/external-dependencies.d.ts +0 -9
  278. package/dependency-scanner/external-dependencies.d.ts.map +1 -1
  279. package/dependency-scanner/external-dependencies.js +1 -55
  280. package/dependency-scanner/external-dependencies.js.map +1 -1
  281. package/dependency-scanner/file-host-predicates.js +0 -9
  282. package/dependency-scanner/file-host-predicates.js.map +1 -1
  283. package/dependency-scanner/host-method-binding.js +0 -18
  284. package/dependency-scanner/host-method-binding.js.map +1 -1
  285. package/dependency-scanner/injected-dynamic-imports.js +1 -232
  286. package/dependency-scanner/injected-dynamic-imports.js.map +1 -1
  287. package/dependency-scanner/node-modules-manifest-synthesizer.js +4 -52
  288. package/dependency-scanner/node-modules-manifest-synthesizer.js.map +1 -1
  289. package/dependency-scanner/package-owned-asset-file-path.js +1 -9
  290. package/dependency-scanner/package-owned-asset-file-path.js.map +1 -1
  291. package/dependency-scanner/scanner.js +4 -102
  292. package/dependency-scanner/scanner.js.map +1 -1
  293. package/dependency-scanner/source-file-references.js +6 -174
  294. package/dependency-scanner/source-file-references.js.map +1 -1
  295. package/dependency-scanner/source-map-file-locator.js +2 -66
  296. package/dependency-scanner/source-map-file-locator.js.map +1 -1
  297. package/dependency-scanner/typescript-compiler-options.js +1 -21
  298. package/dependency-scanner/typescript-compiler-options.js.map +1 -1
  299. package/dependency-scanner/typescript-file-host.js +5 -49
  300. package/dependency-scanner/typescript-file-host.js.map +1 -1
  301. package/dependency-scanner/typescript-project-analyzer.js +3 -35
  302. package/dependency-scanner/typescript-project-analyzer.js.map +1 -1
  303. package/dependency-scanner/virtual-package-json-host.js +4 -45
  304. package/dependency-scanner/virtual-package-json-host.js.map +1 -1
  305. package/directed-graph/graph.d.ts +0 -1
  306. package/directed-graph/graph.d.ts.map +1 -1
  307. package/directed-graph/graph.js +1 -240
  308. package/directed-graph/graph.js.map +1 -1
  309. package/file-manager/compare.js +2 -23
  310. package/file-manager/compare.js.map +1 -1
  311. package/file-manager/equal.js +0 -5
  312. package/file-manager/equal.js.map +1 -1
  313. package/file-manager/file-description.d.ts +0 -1
  314. package/file-manager/file-description.d.ts.map +1 -1
  315. package/file-manager/file-description.js +0 -3
  316. package/file-manager/file-description.js.map +1 -1
  317. package/file-manager/permissions.js +1 -28
  318. package/file-manager/permissions.js.map +1 -1
  319. package/git/current-git-head.js +0 -24
  320. package/git/current-git-head.js.map +1 -1
  321. package/git/git-command.js +1 -49
  322. package/git/git-command.js.map +1 -1
  323. package/linker/linked-bundle.d.ts +0 -8
  324. package/linker/linked-bundle.d.ts.map +1 -1
  325. package/linker/linked-bundle.js +0 -5
  326. package/linker/linked-bundle.js.map +1 -1
  327. package/linker/linker.js +5 -51
  328. package/linker/linker.js.map +1 -1
  329. package/linker/replacement-lookup.js +8 -295
  330. package/linker/replacement-lookup.js.map +1 -1
  331. package/linker/resource-graph.js +2 -44
  332. package/linker/resource-graph.js.map +1 -1
  333. package/linker/source-modifier/import-paths.js +3 -76
  334. package/linker/source-modifier/import-paths.js.map +1 -1
  335. package/linker/substitute-bundles.js +3 -140
  336. package/linker/substitute-bundles.js.map +1 -1
  337. package/linker/substituted-resource-graph.js +2 -99
  338. package/linker/substituted-resource-graph.js.map +1 -1
  339. package/npm-oidc-id-token-resolver.js +0 -82
  340. package/npm-oidc-id-token-resolver.js.map +1 -1
  341. package/pack-emitter/pack-emitter.d.ts +0 -20
  342. package/pack-emitter/pack-emitter.d.ts.map +1 -1
  343. package/pack-emitter/pack-emitter.js +0 -27
  344. package/pack-emitter/pack-emitter.js.map +1 -1
  345. package/package-surface/bin-field.js +2 -8
  346. package/package-surface/bin-field.js.map +1 -1
  347. package/package-surface/explicit-bin.js +2 -24
  348. package/package-surface/explicit-bin.js.map +1 -1
  349. package/package-surface/explicit-exports.js +3 -26
  350. package/package-surface/explicit-exports.js.map +1 -1
  351. package/package-surface/export-map.js +2 -9
  352. package/package-surface/export-map.js.map +1 -1
  353. package/package-surface/implicit-bin.js +1 -25
  354. package/package-surface/implicit-bin.js.map +1 -1
  355. package/package-surface/implicit-exports.js +3 -10
  356. package/package-surface/implicit-exports.js.map +1 -1
  357. package/package-surface/implicit-root-exports.js +2 -13
  358. package/package-surface/implicit-root-exports.js.map +1 -1
  359. package/package-surface/package-json-export.js +0 -9
  360. package/package-surface/package-json-export.js.map +1 -1
  361. package/package-surface/package-shape.js +1 -10
  362. package/package-surface/package-shape.js.map +1 -1
  363. package/package-surface/package-surface-index.js +3 -165
  364. package/package-surface/package-surface-index.js.map +1 -1
  365. package/package-surface/public-module-usage.js +3 -46
  366. package/package-surface/public-module-usage.js.map +1 -1
  367. package/package-surface/public-specifiers.js +1 -7
  368. package/package-surface/public-specifiers.js.map +1 -1
  369. package/package-surface/root-registry.js +0 -26
  370. package/package-surface/root-registry.js.map +1 -1
  371. package/package-surface/specifier-syntax.js +0 -4
  372. package/package-surface/specifier-syntax.js.map +1 -1
  373. package/package-surface/substitution-exports.js +3 -101
  374. package/package-surface/substitution-exports.js.map +1 -1
  375. package/package-surface/surface.d.ts +0 -2
  376. package/package-surface/surface.d.ts.map +1 -1
  377. package/package-surface/surface.js +0 -12
  378. package/package-surface/surface.js.map +1 -1
  379. package/package.json +1 -1
  380. package/packages/package-processor.composition.d.ts +0 -22
  381. package/packages/package-processor.composition.d.ts.map +1 -1
  382. package/packages/package-processor.composition.js +34 -160
  383. package/packages/package-processor.composition.js.map +1 -1
  384. package/packtory/map-config.d.ts +3 -22
  385. package/packtory/map-config.d.ts.map +1 -1
  386. package/packtory/map-config.js +4 -35
  387. package/packtory/map-config.js.map +1 -1
  388. package/packtory/normalize-paths.js +1 -25
  389. package/packtory/normalize-paths.js.map +1 -1
  390. package/packtory/options/bundle-dependency-resolution.js +1 -17
  391. package/packtory/options/bundle-dependency-resolution.js.map +1 -1
  392. package/packtory/options/dead-code-elimination-resolution.js +1 -10
  393. package/packtory/options/dead-code-elimination-resolution.js.map +1 -1
  394. package/packtory/options/prepare-package-options.d.ts +0 -14
  395. package/packtory/options/prepare-package-options.d.ts.map +1 -1
  396. package/packtory/options/prepare-package-options.js +5 -46
  397. package/packtory/options/prepare-package-options.js.map +1 -1
  398. package/packtory/options/required-value-helpers.js +0 -17
  399. package/packtory/options/required-value-helpers.js.map +1 -1
  400. package/packtory/options/setting-resolvers.d.ts +0 -18
  401. package/packtory/options/setting-resolvers.d.ts.map +1 -1
  402. package/packtory/options/setting-resolvers.js +3 -47
  403. package/packtory/options/setting-resolvers.js.map +1 -1
  404. package/packtory/options/surface-resolution.js +2 -15
  405. package/packtory/options/surface-resolution.js.map +1 -1
  406. package/packtory/options/version-provider-context.js +2 -24
  407. package/packtory/options/version-provider-context.js.map +1 -1
  408. package/packtory/options/version-trigger.js +2 -39
  409. package/packtory/options/version-trigger.js.map +1 -1
  410. package/packtory/pack-output-preflight.js +3 -60
  411. package/packtory/pack-output-preflight.js.map +1 -1
  412. package/packtory/package-processor-build.js +3 -97
  413. package/packtory/package-processor-build.js.map +1 -1
  414. package/packtory/package-processor-publish.d.ts +0 -13
  415. package/packtory/package-processor-publish.d.ts.map +1 -1
  416. package/packtory/package-processor-publish.js +5 -293
  417. package/packtory/package-processor-publish.js.map +1 -1
  418. package/packtory/package-processor.d.ts +1 -34
  419. package/packtory/package-processor.d.ts.map +1 -1
  420. package/packtory/package-processor.js +2 -10
  421. package/packtory/package-processor.js.map +1 -1
  422. package/packtory/packtory-pack.js +10 -298
  423. package/packtory/packtory-pack.js.map +1 -1
  424. package/packtory/packtory-package-dependencies.js +7 -135
  425. package/packtory/packtory-package-dependencies.js.map +1 -1
  426. package/packtory/packtory-package-tree.js +4 -43
  427. package/packtory/packtory-package-tree.js.map +1 -1
  428. package/packtory/packtory-publish.js +4 -17
  429. package/packtory/packtory-publish.js.map +1 -1
  430. package/packtory/packtory-release-analysis.js +6 -64
  431. package/packtory/packtory-release-analysis.js.map +1 -1
  432. package/packtory/packtory-release-diff.js +5 -48
  433. package/packtory/packtory-release-diff.js.map +1 -1
  434. package/packtory/packtory-release-plan.js +6 -87
  435. package/packtory/packtory-release-plan.js.map +1 -1
  436. package/packtory/packtory-resolve.js +5 -16
  437. package/packtory/packtory-resolve.js.map +1 -1
  438. package/packtory/packtory.d.ts +1 -28
  439. package/packtory/packtory.d.ts.map +1 -1
  440. package/packtory/packtory.js +12 -225
  441. package/packtory/packtory.js.map +1 -1
  442. package/packtory/publish-failure-mapping.js +0 -6
  443. package/packtory/publish-failure-mapping.js.map +1 -1
  444. package/packtory/published-release-state.d.ts +0 -19
  445. package/packtory/published-release-state.d.ts.map +1 -1
  446. package/packtory/published-release-state.js +0 -11
  447. package/packtory/published-release-state.js.map +1 -1
  448. package/packtory/release-analysis.js +5 -153
  449. package/packtory/release-analysis.js.map +1 -1
  450. package/packtory/release-diff-failure-mapping.js +0 -6
  451. package/packtory/release-diff-failure-mapping.js.map +1 -1
  452. package/packtory/release-plan.js +7 -135
  453. package/packtory/release-plan.js.map +1 -1
  454. package/packtory/report-attachment.js +2 -35
  455. package/packtory/report-attachment.js.map +1 -1
  456. package/packtory/resolved-package.d.ts +0 -11
  457. package/packtory/resolved-package.d.ts.map +1 -1
  458. package/packtory/resolved-package.js +3 -97
  459. package/packtory/resolved-package.js.map +1 -1
  460. package/packtory/scheduler.d.ts +0 -47
  461. package/packtory/scheduler.d.ts.map +1 -1
  462. package/packtory/scheduler.js +1 -99
  463. package/packtory/scheduler.js.map +1 -1
  464. package/packtory/stages/package-analysis-stage.js +2 -50
  465. package/packtory/stages/package-analysis-stage.js.map +1 -1
  466. package/packtory/stages/package-resolution-stage.js +5 -80
  467. package/packtory/stages/package-resolution-stage.js.map +1 -1
  468. package/packtory/stages/publish-stage.js +3 -54
  469. package/packtory/stages/publish-stage.js.map +1 -1
  470. package/packtory/stages/release-diff-stage.js +5 -84
  471. package/packtory/stages/release-diff-stage.js.map +1 -1
  472. package/progress/progress-broadcaster.d.ts +0 -1
  473. package/progress/progress-broadcaster.d.ts.map +1 -1
  474. package/progress/progress-broadcaster.js +0 -45
  475. package/progress/progress-broadcaster.js.map +1 -1
  476. package/published-package/published-package.d.ts +0 -2
  477. package/published-package/published-package.d.ts.map +1 -1
  478. package/published-package/published-package.js +1 -12
  479. package/published-package/published-package.js.map +1 -1
  480. package/report/aggregator/artifact-entry-merger.js +0 -20
  481. package/report/aggregator/artifact-entry-merger.js.map +1 -1
  482. package/report/aggregator/package-report-materialization.js +2 -75
  483. package/report/aggregator/package-report-materialization.js.map +1 -1
  484. package/report/aggregator/report-aggregator.js +2 -37
  485. package/report/aggregator/report-aggregator.js.map +1 -1
  486. package/report/aggregator/report-event-handlers.js +2 -141
  487. package/report/aggregator/report-event-handlers.js.map +1 -1
  488. package/report/aggregator/report-types.d.ts +0 -21
  489. package/report/aggregator/report-types.d.ts.map +1 -1
  490. package/report/aggregator/report-types.js +0 -3
  491. package/report/aggregator/report-types.js.map +1 -1
  492. package/report/config-redactor.js +3 -29
  493. package/report/config-redactor.js.map +1 -1
  494. package/report/decorators.js +0 -76
  495. package/report/decorators.js.map +1 -1
  496. package/report/inspectors/inspect-artifact-sizes.js +1 -34
  497. package/report/inspectors/inspect-artifact-sizes.js.map +1 -1
  498. package/report/inspectors/inspect-linker-rewrites.js +1 -14
  499. package/report/inspectors/inspect-linker-rewrites.js.map +1 -1
  500. package/report/inspectors/inspect-package-json-provenance.js +0 -15
  501. package/report/inspectors/inspect-package-json-provenance.js.map +1 -1
  502. package/report/inspectors/inspect-scan-results.js +0 -15
  503. package/report/inspectors/inspect-scan-results.js.map +1 -1
  504. package/report/release-diff/release-version-transition.js +0 -18
  505. package/report/release-diff/release-version-transition.js.map +1 -1
  506. package/resource-resolver/bundle-resource-lookup.js +0 -25
  507. package/resource-resolver/bundle-resource-lookup.js.map +1 -1
  508. package/resource-resolver/content.js +3 -81
  509. package/resource-resolver/content.js.map +1 -1
  510. package/resource-resolver/dependency-resolution-walker.js +2 -73
  511. package/resource-resolver/dependency-resolution-walker.js.map +1 -1
  512. package/resource-resolver/resolved-bundle.d.ts +0 -17
  513. package/resource-resolver/resolved-bundle.d.ts.map +1 -1
  514. package/resource-resolver/resolved-bundle.js +0 -3
  515. package/resource-resolver/resolved-bundle.js.map +1 -1
  516. package/resource-resolver/resource-resolve-options.d.ts +0 -5
  517. package/resource-resolver/resource-resolve-options.d.ts.map +1 -1
  518. package/resource-resolver/resource-resolve-options.js +1 -13
  519. package/resource-resolver/resource-resolve-options.js.map +1 -1
  520. package/resource-resolver/resource-resolver.js +5 -83
  521. package/resource-resolver/resource-resolver.js.map +1 -1
  522. package/sbom/extract-license.js +1 -11
  523. package/sbom/extract-license.js.map +1 -1
  524. package/sbom/license-resolver.js +2 -23
  525. package/sbom/license-resolver.js.map +1 -1
  526. package/sbom/sbom-builder.js +2 -57
  527. package/sbom/sbom-builder.js.map +1 -1
  528. package/sbom/sbom-canonicalizer.js +3 -45
  529. package/sbom/sbom-canonicalizer.js.map +1 -1
  530. package/sbom/sbom-file.d.ts +0 -10
  531. package/sbom/sbom-file.d.ts.map +1 -1
  532. package/sbom/sbom-file.js +5 -54
  533. package/sbom/sbom-file.js.map +1 -1
  534. package/sbom/sbom-serializer.js +1 -14
  535. package/sbom/sbom-serializer.js.map +1 -1
  536. package/sbom/tool-version.js +1 -49
  537. package/sbom/tool-version.js.map +1 -1
  538. package/sbom.cdx.json +5 -5
  539. package/tar/extract-tar.js +3 -83
  540. package/tar/extract-tar.js.map +1 -1
  541. package/tar/gzipped-pack.js +0 -20
  542. package/tar/gzipped-pack.js.map +1 -1
  543. package/tar/tarball-builder.js +4 -44
  544. package/tar/tarball-builder.js.map +1 -1
  545. package/vendor-materializer/vendor-entry.js +1 -20
  546. package/vendor-materializer/vendor-entry.js.map +1 -1
  547. package/vendor-materializer/vendor-materializer.js +8 -240
  548. package/vendor-materializer/vendor-materializer.js.map +1 -1
  549. package/version-manager/dependencies/bundle-dependency-grouping.js +2 -32
  550. package/version-manager/dependencies/bundle-dependency-grouping.js.map +1 -1
  551. package/version-manager/dependencies/dependency-groups.js +1 -11
  552. package/version-manager/dependencies/dependency-groups.js.map +1 -1
  553. package/version-manager/dependencies/external-dependency-classification.js +3 -82
  554. package/version-manager/dependencies/external-dependency-classification.js.map +1 -1
  555. package/version-manager/dependencies/versioned-bundle-dependencies.js +3 -8
  556. package/version-manager/dependencies/versioned-bundle-dependencies.js.map +1 -1
  557. package/version-manager/imports/hash-import-scanner.js +2 -20
  558. package/version-manager/imports/hash-import-scanner.js.map +1 -1
  559. package/version-manager/imports/imports-key-matcher.js +0 -22
  560. package/version-manager/imports/imports-key-matcher.js.map +1 -1
  561. package/version-manager/imports/versioned-bundle-imports.js +2 -44
  562. package/version-manager/imports/versioned-bundle-imports.js.map +1 -1
  563. package/version-manager/manager.d.ts +0 -5
  564. package/version-manager/manager.d.ts.map +1 -1
  565. package/version-manager/manager.js +6 -46
  566. package/version-manager/manager.js.map +1 -1
  567. package/version-manager/manifest/builder.js +1 -51
  568. package/version-manager/manifest/builder.js.map +1 -1
  569. package/version-manager/manifest/serialize.js +1 -8
  570. package/version-manager/manifest/serialize.js.map +1 -1
  571. package/version-manager/optional-bundle-fields.js +1 -5
  572. package/version-manager/optional-bundle-fields.js.map +1 -1
  573. package/version-manager/representative-root.js +1 -9
  574. package/version-manager/representative-root.js.map +1 -1
  575. package/version-manager/specifier-classifier.js +2 -42
  576. package/version-manager/specifier-classifier.js.map +1 -1
  577. package/version-manager/specifier-errors.js +0 -58
  578. package/version-manager/specifier-errors.js.map +1 -1
  579. package/version-manager/versioned-bundle.d.ts +1 -3
  580. package/version-manager/versioned-bundle.d.ts.map +1 -1
  581. package/version-manager/versioned-bundle.js +6 -31
  582. package/version-manager/versioned-bundle.js.map +1 -1
  583. package/zip/zip-builder.js +2 -81
  584. package/zip/zip-builder.js.map +1 -1
  585. package/artifacts/artifacts-builder.d.ts +0 -28
  586. package/artifacts/artifacts-builder.d.ts.map +0 -1
  587. package/bundle-emitter/registry/registry-auth-config.d.ts +0 -17
  588. package/bundle-emitter/registry/registry-auth-config.d.ts.map +0 -1
  589. package/checks/check-runner.d.ts +0 -18
  590. package/checks/check-runner.d.ts.map +0 -1
  591. package/checks/rule.d.ts +0 -42
  592. package/checks/rule.d.ts.map +0 -1
  593. package/checks/rules/max-bundle-size.d.ts +0 -13
  594. package/checks/rules/max-bundle-size.d.ts.map +0 -1
  595. package/checks/rules/no-dev-dependency-imports.d.ts +0 -11
  596. package/checks/rules/no-dev-dependency-imports.d.ts.map +0 -1
  597. package/checks/rules/no-duplicated-files.d.ts +0 -11
  598. package/checks/rules/no-duplicated-files.d.ts.map +0 -1
  599. package/checks/rules/no-side-effects.d.ts +0 -15
  600. package/checks/rules/no-side-effects.d.ts.map +0 -1
  601. package/checks/rules/no-unexposed-executables.d.ts +0 -8
  602. package/checks/rules/no-unexposed-executables.d.ts.map +0 -1
  603. package/checks/rules/no-unused-bundle-dependencies.d.ts +0 -8
  604. package/checks/rules/no-unused-bundle-dependencies.d.ts.map +0 -1
  605. package/checks/rules/registry.d.ts +0 -23
  606. package/checks/rules/registry.d.ts.map +0 -1
  607. package/checks/rules/required-files.d.ts +0 -15
  608. package/checks/rules/required-files.d.ts.map +0 -1
  609. package/checks/rules/type-script-declaration-integrity.d.ts +0 -9
  610. package/checks/rules/type-script-declaration-integrity.d.ts.map +0 -1
  611. package/checks/rules/type-script-declaration-project.d.ts +0 -29
  612. package/checks/rules/type-script-declaration-project.d.ts.map +0 -1
  613. package/checks/rules/type-script-integrity.d.ts +0 -24
  614. package/checks/rules/type-script-integrity.d.ts.map +0 -1
  615. package/checks/rules/type-script-package-resolution.d.ts +0 -29
  616. package/checks/rules/type-script-package-resolution.d.ts.map +0 -1
  617. package/checks/rules/unique-target-paths.d.ts +0 -8
  618. package/checks/rules/unique-target-paths.d.ts.map +0 -1
  619. package/dependency-scanner/dependency-graph.d.ts +0 -38
  620. package/dependency-scanner/dependency-graph.d.ts.map +0 -1
  621. package/dependency-scanner/scanner.d.ts +0 -20
  622. package/dependency-scanner/scanner.d.ts.map +0 -1
  623. package/dependency-scanner/source-file-references.d.ts +0 -30
  624. package/dependency-scanner/source-file-references.d.ts.map +0 -1
  625. package/dependency-scanner/source-map-file-locator.d.ts +0 -10
  626. package/dependency-scanner/source-map-file-locator.d.ts.map +0 -1
  627. package/dependency-scanner/typescript-compiler-options.d.ts +0 -8
  628. package/dependency-scanner/typescript-compiler-options.d.ts.map +0 -1
  629. package/dependency-scanner/typescript-file-host.d.ts +0 -12
  630. package/dependency-scanner/typescript-file-host.d.ts.map +0 -1
  631. package/dependency-scanner/typescript-project-analyzer.d.ts +0 -19
  632. package/dependency-scanner/typescript-project-analyzer.d.ts.map +0 -1
  633. package/git/current-git-head.d.ts +0 -12
  634. package/git/current-git-head.d.ts.map +0 -1
  635. package/linker/linker.d.ts +0 -13
  636. package/linker/linker.d.ts.map +0 -1
  637. package/resource-resolver/resource-resolver.d.ts +0 -15
  638. package/resource-resolver/resource-resolver.d.ts.map +0 -1
  639. package/sbom/license-resolver.d.ts +0 -14
  640. package/sbom/license-resolver.d.ts.map +0 -1
  641. package/sbom/sbom-serializer.d.ts +0 -8
  642. package/sbom/sbom-serializer.d.ts.map +0 -1
  643. package/tar/tarball-builder.d.ts +0 -14
  644. package/tar/tarball-builder.d.ts.map +0 -1
  645. package/vendor-materializer/vendor-entry.d.ts +0 -12
  646. package/vendor-materializer/vendor-entry.d.ts.map +0 -1
  647. package/vendor-materializer/vendor-materializer.d.ts +0 -55
  648. package/vendor-materializer/vendor-materializer.d.ts.map +0 -1
  649. package/zip/zip-builder.d.ts +0 -22
  650. package/zip/zip-builder.d.ts.map +0 -1
@@ -1,166 +1,4 @@
1
- import { declarationCompanionCandidates } from "../common/declaration-companion-paths.js";
2
- import { getEntryRootIds, getRoot } from "./root-registry.js";
3
- import { toPackageSpecifier } from "./specifier-syntax.js";
4
- function createPublicModuleIndexBuilder() {
5
- const sourceFilePathBySpecifier = new Map();
6
- const specifierBySourceFilePath = new Map();
7
- function recordSourceFileSpecifier(sourceFilePath, candidateSpecifier) {
8
- const currentSpecifier = specifierBySourceFilePath.get(sourceFilePath);
9
- if (currentSpecifier === undefined) {
10
- specifierBySourceFilePath.set(sourceFilePath, candidateSpecifier);
11
- }
12
- }
13
- function recordShortestSourceFileSpecifier(sourceFilePath, candidateSpecifier) {
14
- const currentSpecifier = specifierBySourceFilePath.get(sourceFilePath);
15
- if (currentSpecifier === undefined || candidateSpecifier.length < currentSpecifier.length) {
16
- specifierBySourceFilePath.set(sourceFilePath, candidateSpecifier);
17
- }
18
- }
19
- function recordPublicSourceFilePath(write) {
20
- const hasPublicSpecifier = sourceFilePathBySpecifier.has(write.specifier);
21
- if (!hasPublicSpecifier && write.publicSourceFilePath !== undefined) {
22
- sourceFilePathBySpecifier.set(write.specifier, write.publicSourceFilePath);
23
- }
24
- }
25
- return {
26
- build() {
27
- return { sourceFilePathBySpecifier, specifierBySourceFilePath };
28
- },
29
- recordFirstIndexedPublicSpecifier(write) {
30
- for (const sourceFilePath of write.sourceFilePaths) {
31
- recordSourceFileSpecifier(sourceFilePath, write.specifier);
32
- }
33
- recordPublicSourceFilePath(write);
34
- },
35
- recordShortestIndexedPublicSpecifier(write) {
36
- for (const sourceFilePath of write.sourceFilePaths) {
37
- recordShortestSourceFileSpecifier(sourceFilePath, write.specifier);
38
- }
39
- recordPublicSourceFilePath(write);
40
- }
41
- };
42
- }
43
- export function rootSourceFilePaths(root) {
44
- if (root.declarationFile === undefined) {
45
- return [root.js.sourceFilePath];
46
- }
47
- return [root.js.sourceFilePath, root.declarationFile.sourceFilePath];
48
- }
49
- function isExplicitSummaryBundle(bundle) {
50
- return bundle.surface.mode === 'explicit';
51
- }
52
- function isImplicitSummaryBundle(bundle) {
53
- return bundle.surface.mode === 'implicit';
54
- }
55
- function isExplicitModuleBundle(bundle) {
56
- return bundle.surface.mode === 'explicit';
57
- }
58
- function isImplicitModuleBundle(bundle) {
59
- return bundle.surface.mode === 'implicit';
60
- }
61
- function firstExplicitRootId(surface) {
62
- return surface.packageInterface.modules?.[0]?.root ?? surface.packageInterface.bins?.[0]?.root;
63
- }
64
- function summarizeImplicitPackageSurface(bundle) {
65
- return {
66
- publicRootIds: getEntryRootIds(bundle),
67
- representativeRootId: bundle.surface.defaultModuleRoot
68
- };
69
- }
70
- function summarizeExplicitPackageSurface(bundle) {
71
- const representativeRootId = firstExplicitRootId(bundle.surface);
72
- if (representativeRootId === undefined) {
73
- throw new Error(`Package "${bundle.name}" explicit surface declares neither modules nor bins`);
74
- }
75
- return {
76
- publicRootIds: getEntryRootIds(bundle),
77
- representativeRootId
78
- };
79
- }
80
- export function summarizePackageSurface(bundle) {
81
- if (isExplicitSummaryBundle(bundle)) {
82
- return summarizeExplicitPackageSurface(bundle);
83
- }
84
- if (isImplicitSummaryBundle(bundle)) {
85
- return summarizeImplicitPackageSurface(bundle);
86
- }
87
- throw new Error(`Unsupported package surface mode: ${bundle.surface.mode}`);
88
- }
89
- function indexExplicitPublicModules(bundle) {
90
- const publicModuleIndex = createPublicModuleIndexBuilder();
91
- const { modules } = bundle.surface.packageInterface;
92
- if (modules === undefined) {
93
- return publicModuleIndex.build();
94
- }
95
- for (const entry of modules) {
96
- const root = getRoot(bundle, entry.root);
97
- publicModuleIndex.recordShortestIndexedPublicSpecifier({
98
- publicSourceFilePath: root.js.sourceFilePath,
99
- sourceFilePaths: rootSourceFilePaths(root),
100
- specifier: toPackageSpecifier(bundle.name, entry.export)
101
- });
102
- }
103
- return publicModuleIndex.build();
104
- }
105
- function declarationCompanionSpecifier(bundle, targetFilePath) {
106
- const companion = bundle.contents.find(function (entry) {
107
- const candidatePaths = declarationCompanionCandidates(entry.fileDescription.targetFilePath);
108
- return candidatePaths.includes(targetFilePath);
109
- });
110
- if (companion === undefined) {
111
- return undefined;
112
- }
113
- return toPackageSpecifier(bundle.name, `./${companion.fileDescription.targetFilePath}`);
114
- }
115
- function recordImplicitRootModules(bundle, publicModuleIndex) {
116
- const defaultRoot = getRoot(bundle, bundle.surface.defaultModuleRoot);
117
- publicModuleIndex.recordFirstIndexedPublicSpecifier({
118
- publicSourceFilePath: defaultRoot.js.sourceFilePath,
119
- sourceFilePaths: rootSourceFilePaths(defaultRoot),
120
- specifier: bundle.name
121
- });
122
- for (const root of Object.values(bundle.roots)) {
123
- if (root.declarationFile !== undefined) {
124
- publicModuleIndex.recordFirstIndexedPublicSpecifier({
125
- publicSourceFilePath: undefined,
126
- sourceFilePaths: [root.declarationFile.sourceFilePath],
127
- specifier: toPackageSpecifier(bundle.name, `./${root.js.targetFilePath}`)
128
- });
129
- }
130
- }
131
- }
132
- function recordImplicitContentModule(bundle, publicModuleIndex, entry) {
133
- const companionSpecifier = declarationCompanionSpecifier(bundle, entry.fileDescription.targetFilePath);
134
- if (companionSpecifier === undefined) {
135
- publicModuleIndex.recordFirstIndexedPublicSpecifier({
136
- publicSourceFilePath: entry.fileDescription.sourceFilePath,
137
- sourceFilePaths: [entry.fileDescription.sourceFilePath],
138
- specifier: toPackageSpecifier(bundle.name, `./${entry.fileDescription.targetFilePath}`)
139
- });
140
- }
141
- else {
142
- publicModuleIndex.recordFirstIndexedPublicSpecifier({
143
- publicSourceFilePath: undefined,
144
- sourceFilePaths: [entry.fileDescription.sourceFilePath],
145
- specifier: companionSpecifier
146
- });
147
- }
148
- }
149
- function indexImplicitPublicModules(bundle) {
150
- const publicModuleIndex = createPublicModuleIndexBuilder();
151
- recordImplicitRootModules(bundle, publicModuleIndex);
152
- for (const entry of bundle.contents) {
153
- recordImplicitContentModule(bundle, publicModuleIndex, entry);
154
- }
155
- return publicModuleIndex.build();
156
- }
157
- export function indexPublicModules(bundle) {
158
- if (isExplicitModuleBundle(bundle)) {
159
- return indexExplicitPublicModules(bundle);
160
- }
161
- if (isImplicitModuleBundle(bundle)) {
162
- return indexImplicitPublicModules(bundle);
163
- }
164
- throw new Error(`Unsupported package surface mode: ${bundle.surface.mode}`);
165
- }
1
+ import "../common/declaration-companion-paths.js";
2
+ import "./root-registry.js";
3
+ import "./specifier-syntax.js";
166
4
  //# sourceMappingURL=package-surface-index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"package-surface-index.js","sourceRoot":"","sources":["../../../../source/package-surface/package-surface-index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,8BAA8B,EACjC,MAAM,0CAA0C,CAAC;AAElD,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAsC3D,SAAS,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AAC;AAED,MAAM,UAAU,kBAAkB,CAAC,MAA0B;IACzD,IAAI,sBAAsB,CAAC,MAAM,CAAC,EAAE,CAAC;QACjC,OAAO,0BAA0B,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;IAED,IAAI,sBAAsB,CAAC,MAAM,CAAC,EAAE,CAAC;QACjC,OAAO,0BAA0B,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,qCAAqC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;AAChF,CAAC"}
1
+ {"version":3,"file":"package-surface-index.js","sourceRoot":"","sources":["../../../../source/package-surface/package-surface-index.ts"],"names":[],"mappings":"AAAA,OAEO,0CAA0C,CAAC;AAElD,OAAyC,oBAAoB,CAAC;AAC9D,OAAmC,uBAAuB,CAAC"}
@@ -1,47 +1,4 @@
1
- import { ts as typescript } from 'ts-morph';
2
- import { isCodeFile } from "../common/code-files.js";
3
- import { resolvePublicModuleSourceFilePath } from "./public-specifiers.js";
4
- function* collectModuleSpecifiers(bundle) {
5
- for (const resource of bundle.contents) {
6
- const { targetFilePath, content } = resource.fileDescription;
7
- if (isCodeFile(targetFilePath)) {
8
- const parsedFile = typescript.preProcessFile(content, true);
9
- for (const literal of parsedFile.importedFiles) {
10
- yield literal.fileName;
11
- }
12
- }
13
- }
14
- }
15
- function createUsageRecorder() {
16
- const usages = new Map();
17
- return {
18
- usages,
19
- recordUsage(bundleName, sourceFilePath) {
20
- const existing = usages.get(bundleName) ?? new Set();
21
- existing.add(sourceFilePath);
22
- usages.set(bundleName, existing);
23
- }
24
- };
25
- }
26
- function recordConsumerPublicModuleUsage(recorder, bundles, consumer) {
27
- const specifiers = collectModuleSpecifiers(consumer);
28
- for (const specifier of specifiers) {
29
- const otherBundles = bundles.filter(function (bundle) {
30
- return bundle.name !== consumer.name;
31
- });
32
- for (const target of otherBundles) {
33
- const sourceFilePath = resolvePublicModuleSourceFilePath(target, specifier);
34
- if (sourceFilePath !== undefined) {
35
- recorder.recordUsage(target.name, sourceFilePath);
36
- }
37
- }
38
- }
39
- }
40
- export function collectPublicModuleUsage(bundles) {
41
- const recorder = createUsageRecorder();
42
- for (const consumer of bundles) {
43
- recordConsumerPublicModuleUsage(recorder, bundles, consumer);
44
- }
45
- return recorder.usages;
46
- }
1
+ import 'ts-morph';
2
+ import "../common/code-files.js";
3
+ import "./public-specifiers.js";
47
4
  //# sourceMappingURL=public-module-usage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"public-module-usage.js","sourceRoot":"","sources":["../../../../source/package-surface/public-module-usage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,iCAAiC,EAAE,MAAM,wBAAwB,CAAC;AAO3E,QAAQ,CAAC,CAAC,uBAAuB,CAAC,MAAsB;IACpD,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;QACrC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,GAAG,QAAQ,CAAC,eAAe,CAAC;QAC7D,IAAI,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;YAC7B,MAAM,UAAU,GAAG,UAAU,CAAC,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YAC5D,KAAK,MAAM,OAAO,IAAI,UAAU,CAAC,aAAa,EAAE,CAAC;gBAC7C,MAAM,OAAO,CAAC,QAAQ,CAAC;YAC3B,CAAC;QACL,CAAC;IACL,CAAC;AACL,CAAC;AAED,SAAS,mBAAmB;IACxB,MAAM,MAAM,GAAG,IAAI,GAAG,EAAuB,CAAC;IAE9C,OAAO;QACH,MAAM;QACN,WAAW,CAAC,UAAU,EAAE,cAAc;YAClC,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,IAAI,GAAG,EAAU,CAAC;YAC7D,QAAQ,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;YAC7B,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QACrC,CAAC;KACJ,CAAC;AACN,CAAC;AAED,SAAS,+BAA+B,CACpC,QAAuB,EACvB,OAAkC,EAClC,QAAwB;IAExB,MAAM,UAAU,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IACrD,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACjC,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,MAAM;YAChD,OAAO,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI,CAAC;QACzC,CAAC,CAAC,CAAC;QACH,KAAK,MAAM,MAAM,IAAI,YAAY,EAAE,CAAC;YAChC,MAAM,cAAc,GAAG,iCAAiC,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;YAC5E,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;gBAC/B,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;YACtD,CAAC;QACL,CAAC;IACL,CAAC;AACL,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,OAAkC;IACvE,MAAM,QAAQ,GAAG,mBAAmB,EAAE,CAAC;IAEvC,KAAK,MAAM,QAAQ,IAAI,OAAO,EAAE,CAAC;QAC7B,+BAA+B,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;IACjE,CAAC;IAED,OAAO,QAAQ,CAAC,MAAM,CAAC;AAC3B,CAAC"}
1
+ {"version":3,"file":"public-module-usage.js","sourceRoot":"","sources":["../../../../source/package-surface/public-module-usage.ts"],"names":[],"mappings":"AAAA,OAAiC,UAAU,CAAC;AAC5C,OAA2B,yBAAyB,CAAC;AAErD,OAAkD,wBAAwB,CAAC"}
@@ -1,8 +1,2 @@
1
- import { indexPublicModules } from "./package-surface-index.js";
2
- export function getPublicModuleSpecifierForSourcePath(bundle, sourceFilePath) {
3
- return indexPublicModules(bundle).specifierBySourceFilePath.get(sourceFilePath);
4
- }
5
- export function resolvePublicModuleSourceFilePath(bundle, specifier) {
6
- return indexPublicModules(bundle).sourceFilePathBySpecifier.get(specifier);
7
- }
1
+ import "./package-surface-index.js";
8
2
  //# sourceMappingURL=public-specifiers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"public-specifiers.js","sourceRoot":"","sources":["../../../../source/package-surface/public-specifiers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGhE,MAAM,UAAU,qCAAqC,CAAC,MAAkB,EAAE,cAAsB;IAC5F,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAC,yBAAyB,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;AACpF,CAAC;AAED,MAAM,UAAU,iCAAiC,CAAC,MAAkB,EAAE,SAAiB;IACnF,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAC,yBAAyB,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AAC/E,CAAC"}
1
+ {"version":3,"file":"public-specifiers.js","sourceRoot":"","sources":["../../../../source/package-surface/public-specifiers.ts"],"names":[],"mappings":"AAAA,OAAmC,4BAA4B,CAAC"}
@@ -1,27 +1 @@
1
- export function getRoot(bundle, rootId) {
2
- const root = bundle.roots[rootId];
3
- if (root === undefined) {
4
- throw new Error(`Package "${bundle.name}" references unknown root "${rootId}"`);
5
- }
6
- return root;
7
- }
8
- function collectExplicitPublicRootIds(surface) {
9
- const publicRootIds = new Set();
10
- const moduleEntries = surface.packageInterface.modules ?? [];
11
- const binEntries = surface.packageInterface.bins ?? [];
12
- for (const entry of moduleEntries) {
13
- publicRootIds.add(entry.root);
14
- }
15
- for (const entry of binEntries) {
16
- publicRootIds.add(entry.root);
17
- }
18
- return publicRootIds;
19
- }
20
- export function getEntryRootIds(bundle) {
21
- if (bundle.surface.mode === 'implicit') {
22
- return new Set(Object.keys(bundle.roots));
23
- }
24
- const publicRootIds = collectExplicitPublicRootIds(bundle.surface);
25
- return new Set([...publicRootIds, ...bundle.surface.packageInterface.privateRoots ?? []]);
26
- }
27
1
  //# sourceMappingURL=root-registry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"root-registry.js","sourceRoot":"","sources":["../../../../source/package-surface/root-registry.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,OAAO,CAAC,MAA0C,EAAE,MAAc;IAC9E,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,YAAY,MAAM,CAAC,IAAI,8BAA8B,MAAM,GAAG,CAAC,CAAC;IACpF,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAS,4BAA4B,CAAC,OAAwB;IAC1D,MAAM,aAAa,GAAG,IAAI,GAAG,EAAU,CAAC;IACxC,MAAM,aAAa,GAAG,OAAO,CAAC,gBAAgB,CAAC,OAAO,IAAI,EAAE,CAAC;IAC7D,MAAM,UAAU,GAAG,OAAO,CAAC,gBAAgB,CAAC,IAAI,IAAI,EAAE,CAAC;IACvD,KAAK,MAAM,KAAK,IAAI,aAAa,EAAE,CAAC;QAChC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IACD,KAAK,MAAM,KAAK,IAAI,UAAU,EAAE,CAAC;QAC7B,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IAED,OAAO,aAAa,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,MAA6C;IACzE,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;QACrC,OAAO,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAC9C,CAAC;IAED,MAAM,aAAa,GAAG,4BAA4B,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACnE,OAAO,IAAI,GAAG,CAAC,CAAE,GAAG,aAAa,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,YAAY,IAAI,EAAE,CAAE,CAAC,CAAC;AAChG,CAAC"}
1
+ {"version":3,"file":"root-registry.js","sourceRoot":"","sources":["../../../../source/package-surface/root-registry.ts"],"names":[],"mappings":""}
@@ -1,5 +1 @@
1
- const exportKeyPrefixLength = 2;
2
- export function toPackageSpecifier(packageName, exportKey) {
3
- return exportKey === '.' ? packageName : `${packageName}/${exportKey.slice(exportKeyPrefixLength)}`;
4
- }
5
1
  //# sourceMappingURL=specifier-syntax.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"specifier-syntax.js","sourceRoot":"","sources":["../../../../source/package-surface/specifier-syntax.ts"],"names":[],"mappings":"AAAA,MAAM,qBAAqB,GAAG,CAAC,CAAC;AAEhC,MAAM,UAAU,kBAAkB,CAAC,WAAmB,EAAE,SAAiB;IACrE,OAAO,SAAS,KAAK,GAAG,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,IAAI,SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,EAAE,CAAC;AACxG,CAAC"}
1
+ {"version":3,"file":"specifier-syntax.js","sourceRoot":"","sources":["../../../../source/package-surface/specifier-syntax.ts"],"names":[],"mappings":""}
@@ -1,102 +1,4 @@
1
- import { isDefined, pickBy } from 'remeda';
2
- import { declarationCompanionCandidates, isDeclarationCompanionFilePath } from "../common/declaration-companion-paths.js";
3
- import { toImportTarget } from "./package-shape.js";
4
- function collectRootSourceFilePaths(bundle) {
5
- const rootSourceFilePaths = new Set();
6
- for (const root of Object.values(bundle.roots)) {
7
- rootSourceFilePaths.add(root.js.sourceFilePath);
8
- }
9
- return rootSourceFilePaths;
10
- }
11
- function hasDeclarationRoots(bundle) {
12
- return Object.values(bundle.roots).some(function (root) {
13
- return root.declarationFile !== undefined;
14
- });
15
- }
16
- function collectBundleContentLookups(bundle) {
17
- const contentBySourceFilePath = new Map();
18
- const targetFilePaths = new Set();
19
- for (const entry of bundle.contents) {
20
- const { sourceFilePath, targetFilePath } = entry.fileDescription;
21
- if (!contentBySourceFilePath.has(sourceFilePath)) {
22
- contentBySourceFilePath.set(sourceFilePath, entry);
23
- }
24
- targetFilePaths.add(targetFilePath);
25
- }
26
- return { contentBySourceFilePath, targetFilePaths };
27
- }
28
- function createSubstitutionBundleLookups(bundle) {
29
- const { contentBySourceFilePath, targetFilePaths } = collectBundleContentLookups(bundle);
30
- return {
31
- contentBySourceFilePath,
32
- hasDeclarationRoots: hasDeclarationRoots(bundle),
33
- targetFilePaths,
34
- rootSourceFilePaths: collectRootSourceFilePaths(bundle)
35
- };
36
- }
37
- function findBundleContent(bundleName, contentBySourceFilePath, sourceFilePath) {
38
- const content = contentBySourceFilePath.get(sourceFilePath);
39
- if (content === undefined) {
40
- throw new Error(`Package "${bundleName}" is missing content for "${sourceFilePath}"`);
41
- }
42
- return content;
43
- }
44
- function findDeclarationCompanionTargetPath(targetFilePaths, candidatePaths) {
45
- return candidatePaths.find(function (candidatePath) {
46
- return targetFilePaths.has(candidatePath);
47
- });
48
- }
49
- function rejectMissingTypedDeclarationCompanion(bundleName, jsTargetFilePath, candidatePaths) {
50
- throw new Error(`Package "${bundleName}" exposes substituted module "./${jsTargetFilePath}" without declaration companion ${candidatePaths.map(toImportTarget).join(' or ')}`);
51
- }
52
- function existingDeclarationTargetFilePathFor(bundleName, lookups, jsTargetFilePath, declarationCandidates) {
53
- const declarationTargetFilePath = findDeclarationCompanionTargetPath(lookups.targetFilePaths, declarationCandidates);
54
- if (declarationTargetFilePath !== undefined) {
55
- return declarationTargetFilePath;
56
- }
57
- if (lookups.hasDeclarationRoots) {
58
- rejectMissingTypedDeclarationCompanion(bundleName, jsTargetFilePath, declarationCandidates);
59
- }
60
- return undefined;
61
- }
62
- function declarationTargetFilePathFor(bundleName, lookups, jsTargetFilePath) {
63
- const declarationCandidates = declarationCompanionCandidates(jsTargetFilePath);
64
- if (declarationCandidates.length === 0) {
65
- return undefined;
66
- }
67
- return existingDeclarationTargetFilePathFor(bundleName, lookups, jsTargetFilePath, declarationCandidates);
68
- }
69
- function buildSubstitutionExportEntry(bundleName, lookups, sourceFilePath) {
70
- if (lookups.rootSourceFilePaths.has(sourceFilePath)) {
71
- return undefined;
72
- }
73
- const content = findBundleContent(bundleName, lookups.contentBySourceFilePath, sourceFilePath);
74
- const jsTargetFilePath = content.fileDescription.targetFilePath;
75
- if (isDeclarationCompanionFilePath(jsTargetFilePath)) {
76
- return [
77
- `./${jsTargetFilePath}`,
78
- { types: toImportTarget(jsTargetFilePath) }
79
- ];
80
- }
81
- const declarationTargetFilePath = declarationTargetFilePathFor(bundleName, lookups, jsTargetFilePath);
82
- return [
83
- `./${jsTargetFilePath}`,
84
- pickBy({
85
- import: toImportTarget(jsTargetFilePath),
86
- types: declarationTargetFilePath === undefined ? undefined : toImportTarget(declarationTargetFilePath)
87
- }, isDefined)
88
- ];
89
- }
90
- export function collectSubstitutionExports(bundle, substitutionPublicModuleSourcePaths) {
91
- const lookups = createSubstitutionBundleLookups(bundle);
92
- const substitutionExports = {};
93
- for (const sourceFilePath of substitutionPublicModuleSourcePaths) {
94
- const entry = buildSubstitutionExportEntry(bundle.name, lookups, sourceFilePath);
95
- if (entry !== undefined) {
96
- const [exportKey, exportEntry] = entry;
97
- substitutionExports[exportKey] = exportEntry;
98
- }
99
- }
100
- return substitutionExports;
101
- }
1
+ import 'remeda';
2
+ import "../common/declaration-companion-paths.js";
3
+ import "./package-shape.js";
102
4
  //# sourceMappingURL=substitution-exports.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"substitution-exports.js","sourceRoot":"","sources":["../../../../source/package-surface/substitution-exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MA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AACN,CAAC;AAED,MAAM,UAAU,0BAA0B,CACtC,MAA0B,EAC1B,mCAAwD;IAExD,MAAM,OAAO,GAAG,+BAA+B,CAAC,MAAM,CAAC,CAAC;IACxD,MAAM,mBAAmB,GAAgC,EAAE,CAAC;IAE5D,KAAK,MAAM,cAAc,IAAI,mCAAmC,EAAE,CAAC;QAC/D,MAAM,KAAK,GAAG,4BAA4B,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;QACjF,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,MAAM,CAAE,SAAS,EAAE,WAAW,CAAE,GAAG,KAAK,CAAC;YACzC,mBAAmB,CAAC,SAAS,CAAC,GAAG,WAAW,CAAC;QACjD,CAAC;IACL,CAAC;IAED,OAAO,mBAAmB,CAAC;AAC/B,CAAC"}
1
+ {"version":3,"file":"substitution-exports.js","sourceRoot":"","sources":["../../../../source/package-surface/substitution-exports.ts"],"names":[],"mappings":"AAAA,OAAkC,QAAQ,CAAC;AAC3C,OAGO,0CAA0C,CAAC;AAClD,OAAkE,oBAAoB,CAAC"}
@@ -8,6 +8,4 @@ export type ExplicitPackageSurface = {
8
8
  readonly packageInterface: PackageInterface;
9
9
  };
10
10
  export type PackageSurface = ExplicitPackageSurface | ImplicitPackageSurface;
11
- export declare function implicitPackageSurface(defaultModuleRoot: string): ImplicitPackageSurface;
12
- export declare function explicitPackageSurface(packageInterface: PackageInterface): ExplicitPackageSurface;
13
11
  //# sourceMappingURL=surface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../../../../source/package-surface/surface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,MAAM,MAAM,sBAAsB,GAAG;IACjC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACjC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;CAC/C,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,sBAAsB,GAAG,sBAAsB,CAAC;AAE7E,wBAAgB,sBAAsB,CAAC,iBAAiB,EAAE,MAAM,GAAG,sBAAsB,CAKxF;AAED,wBAAgB,sBAAsB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,sBAAsB,CAKjG"}
1
+ {"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../../../../source/package-surface/surface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,MAAM,MAAM,sBAAsB,GAAG;IACjC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACjC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;CAC/C,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,sBAAsB,GAAG,sBAAsB,CAAC"}
@@ -1,13 +1 @@
1
- export function implicitPackageSurface(defaultModuleRoot) {
2
- return {
3
- mode: 'implicit',
4
- defaultModuleRoot
5
- };
6
- }
7
- export function explicitPackageSurface(packageInterface) {
8
- return {
9
- mode: 'explicit',
10
- packageInterface
11
- };
12
- }
13
1
  //# sourceMappingURL=surface.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"surface.js","sourceRoot":"","sources":["../../../../source/package-surface/surface.ts"],"names":[],"mappings":"AAcA,MAAM,UAAU,sBAAsB,CAAC,iBAAyB;IAC5D,OAAO;QACH,IAAI,EAAE,UAAU;QAChB,iBAAiB;KACpB,CAAC;AACN,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,gBAAkC;IACrE,OAAO;QACH,IAAI,EAAE,UAAU;QAChB,gBAAgB;KACnB,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"surface.js","sourceRoot":"","sources":["../../../../source/package-surface/surface.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -149,5 +149,5 @@
149
149
  "./tar/tarball-builder.js"
150
150
  ],
151
151
  "type": "module",
152
- "version": "0.0.91"
152
+ "version": "0.0.92"
153
153
  }
@@ -1,31 +1,9 @@
1
- import { type ArtifactsBuilder } from '../artifacts/artifacts-builder.ts';
2
- import { type PackEmitter } from '../pack-emitter/pack-emitter.ts';
3
- import { type VendorMaterializer } from '../vendor-materializer/vendor-materializer.ts';
4
1
  import { type CiEnvironment } from '../bundle-emitter/repository-coherence.ts';
5
- import type { DeadCodeEliminator } from '../dead-code-eliminator/analyzed-bundle.ts';
6
- import { type FileManager } from '../file-manager/file-manager.ts';
7
- import { type PackageProcessor } from '../packtory/package-processor.ts';
8
2
  import type { VersionSourceResolver } from '../packtory/map-config.ts';
9
- import { type ProgressBroadcaster } from '../progress/progress-broadcaster.ts';
10
- import { type VersionManager } from '../version-manager/manager.ts';
11
- import { type CurrentGitHeadReader } from '../git/current-git-head.ts';
12
- export type PackageProcessorComposition = {
13
- readonly fileManager: FileManager;
14
- readonly packageProcessor: PackageProcessor;
15
- readonly progressBroadcaster: ProgressBroadcaster;
16
- readonly deadCodeEliminator: DeadCodeEliminator;
17
- readonly artifactsBuilder: ArtifactsBuilder;
18
- readonly versionManager: VersionManager;
19
- readonly packEmitter: PackEmitter;
20
- readonly vendorMaterializer: VendorMaterializer;
21
- readonly readCurrentGitHead: CurrentGitHeadReader;
22
- readonly repositoryFolder: string;
23
- };
24
3
  export type PackageProcessorCompositionOptions = {
25
4
  readonly promptForOneTimePassword?: (() => Promise<string | undefined>) | undefined;
26
5
  readonly ciEnvironment: CiEnvironment;
27
6
  readonly repositoryFolder?: string | undefined;
28
7
  readonly resolveVersionSource?: VersionSourceResolver | undefined;
29
8
  };
30
- export declare function buildPackageProcessorComposition(options: PackageProcessorCompositionOptions): PackageProcessorComposition;
31
9
  //# sourceMappingURL=package-processor.composition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"package-processor.composition.d.ts","sourceRoot":"","sources":["../../../../source/packages/package-processor.composition.ts"],"names":[],"mappings":"AAKA,OAAO,EAA0B,KAAK,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAGlG,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACtF,OAAO,EAA4B,KAAK,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AAClH,OAAO,EAAsB,KAAK,aAAa,EAAE,MAAM,2CAA2C,CAAC;AACnG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAOrF,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAEtF,OAAO,EAA0B,KAAK,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACjG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAA6B,KAAK,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAK1G,OAAO,EAAwB,KAAK,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE1F,OAAO,EAA8B,KAAK,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAgBnG,MAAM,MAAM,2BAA2B,GAAG;IACtC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAClD,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAChD,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAChD,QAAQ,CAAC,kBAAkB,EAAE,oBAAoB,CAAC;IAClD,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC7C,QAAQ,CAAC,wBAAwB,CAAC,EAAE,CAAC,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC;IACpF,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,oBAAoB,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;CACrE,CAAC;AAmHF,wBAAgB,gCAAgC,CAC5C,OAAO,EAAE,kCAAkC,GAC5C,2BAA2B,CAiC7B"}
1
+ {"version":3,"file":"package-processor.composition.d.ts","sourceRoot":"","sources":["../../../../source/packages/package-processor.composition.ts"],"names":[],"mappings":"AAKA,OAAO,EAA0B,KAKC,aAAa,EAAE,MAAM,2CAA2C,CAAC;AACnG,OAAO,KAAK,EAUE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;MAwBjE,MAAM,kCAakC,GAAG;IAC7C,QAAQ,CAAC,wBAAwB,CAAC,EAAE,CAAC,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC;IACpF,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,oBAAoB,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;CACrE,CAAC"}