@smoothbricks/nx-plugin 0.7.17 → 0.7.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +315 -114
- package/dist/.build-inputs.json +47 -38
- package/dist/built-output-packages.js +1 -1
- package/dist/bun-lock-scope.d.ts +128 -20
- package/dist/bun-lock-scope.d.ts.map +1 -1
- package/dist/bun-lock-scope.js +267 -44
- package/dist/cargo-closure-input.d.ts +8 -6
- package/dist/cargo-closure-input.d.ts.map +1 -1
- package/dist/cargo-closure-input.js +15 -12
- package/dist/cargo-source-hash.d.ts +26 -25
- package/dist/cargo-source-hash.d.ts.map +1 -1
- package/dist/cargo-source-hash.js +84 -105
- package/dist/cargo-toolchain-paths.d.ts +2 -2
- package/dist/cargo-toolchain-paths.js +2 -2
- package/dist/cargo-workspace.d.ts +20 -2
- package/dist/cargo-workspace.d.ts.map +1 -1
- package/dist/cargo-workspace.js +43 -22
- package/dist/ensure-built-receipt.d.ts +3 -2
- package/dist/ensure-built-receipt.d.ts.map +1 -1
- package/dist/ensure-built-receipt.js +3 -2
- package/dist/eslint-config-closure.d.ts +8 -3
- package/dist/eslint-config-closure.d.ts.map +1 -1
- package/dist/eslint-config-closure.js +24 -5
- package/dist/executors/bounded-exec/admission-queue.d.ts +3 -1
- package/dist/executors/bounded-exec/admission-queue.d.ts.map +1 -1
- package/dist/executors/bounded-exec/admission-queue.js +9 -10
- package/dist/executors/bounded-exec/awake-clock.d.ts +5 -0
- package/dist/executors/bounded-exec/awake-clock.d.ts.map +1 -0
- package/dist/executors/bounded-exec/awake-clock.js +22 -0
- package/dist/executors/bounded-exec/bounds.d.ts +19 -6
- package/dist/executors/bounded-exec/bounds.d.ts.map +1 -1
- package/dist/executors/bounded-exec/bounds.js +22 -15
- package/dist/executors/bounded-exec/case-gate.d.ts +114 -0
- package/dist/executors/bounded-exec/case-gate.d.ts.map +1 -0
- package/dist/executors/bounded-exec/case-gate.js +342 -0
- package/dist/executors/bounded-exec/cpu-pool-thread.d.ts +1 -0
- package/dist/executors/bounded-exec/cpu-pool-thread.d.ts.map +1 -1
- package/dist/executors/bounded-exec/cpu-pool-thread.js +2 -2
- package/dist/executors/bounded-exec/cpu-pool.d.ts +28 -1
- package/dist/executors/bounded-exec/cpu-pool.d.ts.map +1 -1
- package/dist/executors/bounded-exec/cpu-pool.js +102 -16
- package/dist/executors/bounded-exec/cpu-rise.d.ts +73 -0
- package/dist/executors/bounded-exec/cpu-rise.d.ts.map +1 -0
- package/dist/executors/bounded-exec/cpu-rise.js +111 -0
- package/dist/executors/bounded-exec/endpoint-life.d.ts +146 -0
- package/dist/executors/bounded-exec/endpoint-life.d.ts.map +1 -0
- package/dist/executors/bounded-exec/endpoint-life.js +228 -0
- package/dist/executors/bounded-exec/executor.d.ts +1 -1
- package/dist/executors/bounded-exec/executor.d.ts.map +1 -1
- package/dist/executors/bounded-exec/executor.js +256 -86
- package/dist/executors/bounded-exec/gateway-lease.d.ts +1 -1
- package/dist/executors/bounded-exec/gateway-lease.d.ts.map +1 -1
- package/dist/executors/bounded-exec/gateway-lease.js +8 -1
- package/dist/executors/bounded-exec/go-run-summary.d.ts +51 -0
- package/dist/executors/bounded-exec/go-run-summary.d.ts.map +1 -0
- package/dist/executors/bounded-exec/go-run-summary.js +98 -0
- package/dist/executors/bounded-exec/hang-diagnostics.d.ts +11 -3
- package/dist/executors/bounded-exec/hang-diagnostics.d.ts.map +1 -1
- package/dist/executors/bounded-exec/hang-diagnostics.js +125 -47
- package/dist/executors/bounded-exec/lease-wait.d.ts +1 -0
- package/dist/executors/bounded-exec/lease-wait.d.ts.map +1 -1
- package/dist/executors/bounded-exec/lease-wait.js +1 -0
- package/dist/executors/bounded-exec/mbx-pool.d.ts +42 -7
- package/dist/executors/bounded-exec/mbx-pool.d.ts.map +1 -1
- package/dist/executors/bounded-exec/mbx-pool.js +45 -8
- package/dist/executors/bounded-exec/mbx-reservations.d.ts +12 -6
- package/dist/executors/bounded-exec/mbx-reservations.d.ts.map +1 -1
- package/dist/executors/bounded-exec/mbx-reservations.js +190 -284
- package/dist/executors/bounded-exec/parent-grant.d.ts +2 -0
- package/dist/executors/bounded-exec/parent-grant.d.ts.map +1 -1
- package/dist/executors/bounded-exec/parent-grant.js +1 -0
- package/dist/executors/bounded-exec/pool-admission.d.ts +29 -3
- package/dist/executors/bounded-exec/pool-admission.d.ts.map +1 -1
- package/dist/executors/bounded-exec/pool-admission.js +47 -1
- package/dist/executors/bounded-exec/progress-channel.d.ts +38 -0
- package/dist/executors/bounded-exec/progress-channel.d.ts.map +1 -0
- package/dist/executors/bounded-exec/progress-channel.js +113 -0
- package/dist/executors/bounded-exec/progress.d.ts +5 -1
- package/dist/executors/bounded-exec/progress.d.ts.map +1 -1
- package/dist/executors/bounded-exec/progress.js +31 -1
- package/dist/executors/bounded-exec/ram-temp.d.ts +24 -1
- package/dist/executors/bounded-exec/ram-temp.d.ts.map +1 -1
- package/dist/executors/bounded-exec/ram-temp.js +123 -16
- package/dist/executors/bounded-exec/reservation-connection.d.ts +90 -0
- package/dist/executors/bounded-exec/reservation-connection.d.ts.map +1 -0
- package/dist/executors/bounded-exec/reservation-connection.js +248 -0
- package/dist/executors/bounded-exec/run-cpu-pool.d.ts.map +1 -1
- package/dist/executors/bounded-exec/run-cpu-pool.js +3 -0
- package/dist/executors/bounded-exec/runner-sizing.d.ts +9 -5
- package/dist/executors/bounded-exec/runner-sizing.d.ts.map +1 -1
- package/dist/executors/bounded-exec/runner-sizing.js +13 -9
- package/dist/executors/bounded-exec/schema.d.ts +7 -2
- package/dist/executors/bounded-exec/schema.d.ts.map +1 -1
- package/dist/executors/bounded-exec/schema.js +17 -1
- package/dist/executors/bounded-exec/suite-minimum.d.ts +21 -0
- package/dist/executors/bounded-exec/suite-minimum.d.ts.map +1 -0
- package/dist/executors/bounded-exec/suite-minimum.js +85 -0
- package/dist/executors/bounded-exec/test-result-writer.d.ts +2 -0
- package/dist/executors/bounded-exec/test-result-writer.d.ts.map +1 -1
- package/dist/executors/bounded-exec/test-result-writer.js +1 -0
- package/dist/executors/bounded-exec/test-results.d.ts +5 -0
- package/dist/executors/bounded-exec/test-results.d.ts.map +1 -1
- package/dist/executors/bounded-exec/test-results.js +2 -2
- package/dist/executors/bounded-exec/verdict.d.ts +39 -10
- package/dist/executors/bounded-exec/verdict.d.ts.map +1 -1
- package/dist/executors/bounded-exec/verdict.js +60 -14
- package/dist/executors/cargo-zigbuild/executor.d.ts +10 -8
- package/dist/executors/cargo-zigbuild/executor.d.ts.map +1 -1
- package/dist/executors/cargo-zigbuild/executor.js +32 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +294 -152
- package/dist/managed-files/ci-workflow.d.ts +4 -1
- package/dist/managed-files/ci-workflow.d.ts.map +1 -1
- package/dist/managed-files/ci-workflow.js +9 -14
- package/dist/managed-files/files.d.ts +3 -3
- package/dist/managed-files/files.js +3 -3
- package/dist/managed-files/generator.d.ts +5 -1
- package/dist/managed-files/generator.d.ts.map +1 -1
- package/dist/managed-files/generator.js +22 -7
- package/dist/managed-files/render-memo.d.ts +13 -0
- package/dist/managed-files/render-memo.d.ts.map +1 -0
- package/dist/managed-files/render-memo.js +94 -0
- package/dist/task-results.js +2 -1
- package/dist/test-program.d.ts +11 -6
- package/dist/test-program.d.ts.map +1 -1
- package/dist/test-program.js +39 -35
- package/dist/tool-bins.d.ts +12 -0
- package/dist/tool-bins.d.ts.map +1 -1
- package/dist/tool-bins.js +31 -6
- package/dist/typecheck-test-policy.d.ts +10 -1
- package/dist/typecheck-test-policy.d.ts.map +1 -1
- package/dist/typecheck-test-policy.js +40 -24
- package/dist/workspace-config-policy.d.ts.map +1 -1
- package/dist/workspace-config-policy.js +135 -42
- package/dist/workspace-index.d.ts +14 -1
- package/dist/workspace-index.d.ts.map +1 -1
- package/dist/workspace-index.js +36 -4
- package/executors.json +2 -0
- package/managed/raw/envrc +24 -0
- package/managed/raw/patches/nx@24.0.3.patch +1851 -221
- package/managed/raw/patches/ttsc@0.37.1.patch +1055 -0
- package/managed/raw/tooling/direnv/developer-links.ts +122 -14
- package/managed/raw/tooling/direnv/devenv.smoo.nix +20 -19
- package/managed/templates/github/actions/save-nix-devenv/action.yml +19 -1
- package/managed/templates/github/actions/setup-devenv/action.yml +2 -0
- package/package.json +68 -11
- package/runtime/nx-publish/.build-inputs.json +2 -2
- package/runtime/nx-publish/cache_adapter.js +293 -3
- package/runtime/nx-publish/nx_publish.js +36 -14
- package/src/built-output-packages.ts +1 -1
- package/src/bun-lock-scope.ts +293 -40
- package/src/cargo-closure-input.ts +20 -12
- package/src/cargo-source-hash.ts +119 -145
- package/src/cargo-toolchain-paths.ts +2 -2
- package/src/cargo-workspace.ts +59 -21
- package/src/ensure-built-receipt.ts +3 -2
- package/src/eslint-config-closure.ts +27 -6
- package/src/executors/bounded-exec/admission-queue.ts +11 -10
- package/src/executors/bounded-exec/awake-clock.ts +20 -0
- package/src/executors/bounded-exec/bounds.ts +41 -19
- package/src/executors/bounded-exec/case-gate.ts +365 -0
- package/src/executors/bounded-exec/cpu-pool-thread.ts +3 -3
- package/src/executors/bounded-exec/cpu-pool.ts +139 -12
- package/src/executors/bounded-exec/cpu-rise.ts +156 -0
- package/src/executors/bounded-exec/endpoint-life.ts +279 -0
- package/src/executors/bounded-exec/executor.ts +341 -123
- package/src/executors/bounded-exec/gateway-lease.ts +6 -0
- package/src/executors/bounded-exec/go-run-summary.ts +137 -0
- package/src/executors/bounded-exec/hang-diagnostics.ts +150 -50
- package/src/executors/bounded-exec/lease-wait.ts +1 -0
- package/src/executors/bounded-exec/mbx-pool.ts +57 -9
- package/src/executors/bounded-exec/mbx-reservations.ts +216 -183
- package/src/executors/bounded-exec/parent-grant.ts +3 -0
- package/src/executors/bounded-exec/pool-admission.ts +59 -2
- package/src/executors/bounded-exec/progress-channel.ts +129 -0
- package/src/executors/bounded-exec/progress.ts +39 -3
- package/src/executors/bounded-exec/ram-temp.ts +137 -17
- package/src/executors/bounded-exec/reservation-connection.ts +221 -0
- package/src/executors/bounded-exec/run-cpu-pool.ts +2 -0
- package/src/executors/bounded-exec/runner-sizing.ts +13 -8
- package/src/executors/bounded-exec/schema.json +1 -1
- package/src/executors/bounded-exec/schema.ts +21 -2
- package/src/executors/bounded-exec/suite-minimum.ts +81 -0
- package/src/executors/bounded-exec/test-result-writer.ts +3 -0
- package/src/executors/bounded-exec/test-results.ts +5 -0
- package/src/executors/bounded-exec/verdict.ts +83 -22
- package/src/executors/cargo-zigbuild/executor.ts +30 -19
- package/src/index.ts +357 -166
- package/src/managed-files/ci-workflow.ts +13 -17
- package/src/managed-files/files.ts +3 -3
- package/src/managed-files/generator.ts +21 -6
- package/src/managed-files/render-memo.ts +135 -0
- package/src/test-program.ts +36 -41
- package/src/tool-bins.ts +35 -6
- package/src/typecheck-test-policy.ts +49 -24
- package/src/workspace-config-policy.ts +161 -43
- package/src/workspace-index.ts +40 -5
- package/test-timings.json +157 -141
- package/managed/raw/patches/ttsc@0.36.3.patch +0 -1660
package/dist/.build-inputs.json
CHANGED
|
@@ -14,72 +14,80 @@
|
|
|
14
14
|
"packages/nx-plugin/src/bin/smoo-nx-test-walks.ts": "94e8af452331d765e711aa2493efbff4ddb4e6e3088343873f78d9eaa840570b",
|
|
15
15
|
"packages/nx-plugin/src/bounded-test-policy.ts": "b52a8858543d25e173aad4f49002a7cdc7f70b098f6046fc56acb747065acd8a",
|
|
16
16
|
"packages/nx-plugin/src/build-state-output-policy.ts": "031a75cb96a2fed0ab2ce80a98588482595f7550d5259e33edabd6e676ad3a3c",
|
|
17
|
-
"packages/nx-plugin/src/built-output-packages.ts": "
|
|
18
|
-
"packages/nx-plugin/src/bun-lock-scope.ts": "
|
|
17
|
+
"packages/nx-plugin/src/built-output-packages.ts": "48670b65204537738b1a65a5b133d959a51aaecefc32dc03366f614cb6fa57ec",
|
|
18
|
+
"packages/nx-plugin/src/bun-lock-scope.ts": "b7534de8bfb54d9f25773678b63a5fd72fce1795b92fdb65868982e13bda6305",
|
|
19
19
|
"packages/nx-plugin/src/cargo-build-script-env.ts": "e5b45ccefc2255cd8a48121eb97132a08e136b4cbbc375d04c940d821a429b23",
|
|
20
|
-
"packages/nx-plugin/src/cargo-closure-input.ts": "
|
|
20
|
+
"packages/nx-plugin/src/cargo-closure-input.ts": "fb0dcc6a708d21193a165dc705b5731d498a77b6deb3cdcd5e9335f291f28247",
|
|
21
21
|
"packages/nx-plugin/src/cargo-dev-profile.ts": "34764ba4fc2aeebe75051c98c2eb64b6baeaa3d8cc0242803081ef935465368d",
|
|
22
22
|
"packages/nx-plugin/src/cargo-retention-hook.ts": "5699506a32aff25be4adca91fff443bea2bfcd6fd7b2964dfa38296c50043ba1",
|
|
23
|
-
"packages/nx-plugin/src/cargo-source-hash.ts": "
|
|
24
|
-
"packages/nx-plugin/src/cargo-toolchain-paths.ts": "
|
|
23
|
+
"packages/nx-plugin/src/cargo-source-hash.ts": "7f122602ea89ad7e3bbfd0b33f663b586f511816e444e60c254f1b13512a9180",
|
|
24
|
+
"packages/nx-plugin/src/cargo-toolchain-paths.ts": "fa67bac0d7d8f63b8b1630310d231ff67d951a09d0df811800d0b6632a9547c6",
|
|
25
25
|
"packages/nx-plugin/src/cargo-toolchain-policy.ts": "9c7bae572b57046dcc1e3d577b4abb25e877cf551efcca1b837c4bb5a8c62203",
|
|
26
|
-
"packages/nx-plugin/src/cargo-workspace.ts": "
|
|
26
|
+
"packages/nx-plugin/src/cargo-workspace.ts": "9990b34c194512a71c28e3a7a37794e2718d625efedc69bb32f6599f36fef20d",
|
|
27
27
|
"packages/nx-plugin/src/compile-environment.ts": "8085b28e695f60306eefb91f3eca3e1bb908d7ea1676d028c7c85a6adda1a95c",
|
|
28
28
|
"packages/nx-plugin/src/cross-check-policy.ts": "3a22f798805dca09f6452d929d86c0d76621bdd32d5d1f21fe02c75cf7335e2f",
|
|
29
29
|
"packages/nx-plugin/src/dependency-manifests.ts": "2acc8497dbf07e432a1a093c7c2fd8765bc4c3e089be7b332ea7d239e280d0b0",
|
|
30
30
|
"packages/nx-plugin/src/deploy-policy.ts": "2f6202000dceca84d472f417affce50fd2ec3cab87c969443d83ec6e1d4ccf71",
|
|
31
31
|
"packages/nx-plugin/src/disk-command-policy.ts": "fb8731ccf41cff47b88f30165b08dc8d551068c436f4e49cb2b62aa4b49be43c",
|
|
32
|
-
"packages/nx-plugin/src/ensure-built-receipt.ts": "
|
|
32
|
+
"packages/nx-plugin/src/ensure-built-receipt.ts": "f65e7bf7136a252d1780e69e3af57a3a44e01f11bb3441876eef9f6b9ba9e3ed",
|
|
33
33
|
"packages/nx-plugin/src/ensure-built-witness.ts": "428b3bde289d4f10cdc2b2442a84ebc653f3da8955f9ea596dddf3c759029b1c",
|
|
34
34
|
"packages/nx-plugin/src/ensure-built.ts": "5e0a98b9e17a15eadfa79eb53df7e1fc7ef5997b1bf5e2a46a1fceb930e3315c",
|
|
35
|
-
"packages/nx-plugin/src/eslint-config-closure.ts": "
|
|
35
|
+
"packages/nx-plugin/src/eslint-config-closure.ts": "857371ab7fb4f3fac15fc583ec1d755e8f6942ba1ed4a32be3a8292fcd45cece",
|
|
36
36
|
"packages/nx-plugin/src/eslint-file-set.ts": "06d2b6c895c025bfc5269e119830f6fb2c21a6e35dd8e1484ecc8086aa13f753",
|
|
37
37
|
"packages/nx-plugin/src/eslint-sources.ts": "976a2b8e0520b5f6aaf397a272791817a4f385507bc0cbaad4b114fefa8decf5",
|
|
38
38
|
"packages/nx-plugin/src/executors/all-verdicts/executor.ts": "4d3aac65aa2e03a2d24d149c412aa18f2e66a6a36a4e88993122b10e9355c8f0",
|
|
39
39
|
"packages/nx-plugin/src/executors/all-verdicts/schema.ts": "2ca6bd8d2f19d851f291ab6a5227167399b9dc8ed0fda0248b69896d77e471f1",
|
|
40
|
-
"packages/nx-plugin/src/executors/bounded-exec/admission-queue.ts": "
|
|
41
|
-
"packages/nx-plugin/src/executors/bounded-exec/
|
|
40
|
+
"packages/nx-plugin/src/executors/bounded-exec/admission-queue.ts": "f54620dff7d0591885da0d0e666cff256ba113922fe4f0dc08d960775b6f9d61",
|
|
41
|
+
"packages/nx-plugin/src/executors/bounded-exec/awake-clock.ts": "56f0720ab1064c5c973d28a4c76fb826385e1aec920f06747bc95c5b1b998412",
|
|
42
|
+
"packages/nx-plugin/src/executors/bounded-exec/bounds.ts": "7beb78afc60efd7d8529823b09125e40888320b397b23492e71c0095aeab8e97",
|
|
43
|
+
"packages/nx-plugin/src/executors/bounded-exec/case-gate.ts": "d9d664f55f2fb52b64352fb91c9a6c4f3428ab5dde1e5b0860b19b4716cb674e",
|
|
42
44
|
"packages/nx-plugin/src/executors/bounded-exec/child-exit-diagnostics.ts": "fdcd4e074577814d9b7b9d014d2c39297e9c763bd570d9fab0db172349e039b2",
|
|
43
45
|
"packages/nx-plugin/src/executors/bounded-exec/cpu-grant.ts": "c5217349c23be537d9b6a0a52445f3ee442402fdbd08f1d33a3095c52051616d",
|
|
44
|
-
"packages/nx-plugin/src/executors/bounded-exec/cpu-pool-thread.ts": "
|
|
45
|
-
"packages/nx-plugin/src/executors/bounded-exec/cpu-pool.ts": "
|
|
46
|
+
"packages/nx-plugin/src/executors/bounded-exec/cpu-pool-thread.ts": "229b5cdbfb3fc2c7530ce54306e822347cc540c1daf298b60c2b5790a79b181d",
|
|
47
|
+
"packages/nx-plugin/src/executors/bounded-exec/cpu-pool.ts": "73186b3f4251d705b09d71ebf472ee5d2ebcfbc064e92bbbf9872e394b54bc44",
|
|
48
|
+
"packages/nx-plugin/src/executors/bounded-exec/cpu-rise.ts": "90b345ad3687813d59e150dd14f91c0adf8da1b8963a3f59f56355ce1f651713",
|
|
46
49
|
"packages/nx-plugin/src/executors/bounded-exec/disk-lease.ts": "1a3f6a6fa590d9a2550490bb6906dc91b6c05fbef235b025eaf257eb5310e92d",
|
|
47
|
-
"packages/nx-plugin/src/executors/bounded-exec/
|
|
48
|
-
"packages/nx-plugin/src/executors/bounded-exec/
|
|
49
|
-
"packages/nx-plugin/src/executors/bounded-exec/
|
|
50
|
+
"packages/nx-plugin/src/executors/bounded-exec/endpoint-life.ts": "7a32f63324edb5208f92db6a9582e73fe65b8fc440bca998244fdf1163109ccc",
|
|
51
|
+
"packages/nx-plugin/src/executors/bounded-exec/executor.ts": "0ed947f4d4dfa17faddd717194c1b51acf5c97712bede68a8f94afee039c680c",
|
|
52
|
+
"packages/nx-plugin/src/executors/bounded-exec/gateway-lease.ts": "e2b150677aec8482a6916eac38f114ecd60c787a1baed36822d1d99a2d1f1b02",
|
|
53
|
+
"packages/nx-plugin/src/executors/bounded-exec/go-run-summary.ts": "e7be137c647ae0889bbc825feb8c8ca14a5118bfff90ca87a8dda4c34dff8d53",
|
|
54
|
+
"packages/nx-plugin/src/executors/bounded-exec/hang-diagnostics.ts": "c056754715dd88106275e0ef2d620d0751d2a209e1f5c794aea0640426f2ebe2",
|
|
50
55
|
"packages/nx-plugin/src/executors/bounded-exec/host-memory.darwin.ts": "fe89fc99f85f48caec7c614cfd976c362253b9707797c2c849a3aa9664e65dbe",
|
|
51
56
|
"packages/nx-plugin/src/executors/bounded-exec/host-memory.linux.ts": "752519893ed6fc3b9d7d17b0b0801d7103129f7a838743d129057debf043f0c1",
|
|
52
57
|
"packages/nx-plugin/src/executors/bounded-exec/host-memory.ts": "d3eef7fb06bf259f0f7f7dc67fc7f246a39adf5e4e80850fd4565e91626b1ec5",
|
|
53
58
|
"packages/nx-plugin/src/executors/bounded-exec/leaf-peak.ts": "0b1b94992b2cbb9e3759785424ceb202667053c5571edf3a79cdd0b206e54a1d",
|
|
54
|
-
"packages/nx-plugin/src/executors/bounded-exec/lease-wait.ts": "
|
|
59
|
+
"packages/nx-plugin/src/executors/bounded-exec/lease-wait.ts": "e9eeda9a8336e24359c0280ce32a12d3d17846eb02973570d391dce8ff8d7fbd",
|
|
55
60
|
"packages/nx-plugin/src/executors/bounded-exec/lock-wait.ts": "b14a23b49759a777f4b3338ced003adaf76837c2c38462458f76a7fef1b95d9e",
|
|
56
|
-
"packages/nx-plugin/src/executors/bounded-exec/mbx-pool.ts": "
|
|
61
|
+
"packages/nx-plugin/src/executors/bounded-exec/mbx-pool.ts": "2437ef83cd37a4fb307d0435cb60c489b29197ccac96625d5f7e742615683472",
|
|
57
62
|
"packages/nx-plugin/src/executors/bounded-exec/mbx-queue.ts": "ac309e28e5ee78fa08d628edb00e33532514f7572166770799ae86d468c12b4e",
|
|
58
|
-
"packages/nx-plugin/src/executors/bounded-exec/mbx-reservations.ts": "
|
|
63
|
+
"packages/nx-plugin/src/executors/bounded-exec/mbx-reservations.ts": "616a03e5b7c2ca8636623e76eebf3f65439c927689a5db55c14eee2c6d084bfe",
|
|
59
64
|
"packages/nx-plugin/src/executors/bounded-exec/memory-retry.ts": "e56fd04f8a8ad03247099a1d005fcbcda6def6aa7656e9515309f6f2438fe88d",
|
|
60
65
|
"packages/nx-plugin/src/executors/bounded-exec/no-space.ts": "ec032968d89f9e853796012705a06c06cfc4da54bf6e6f10a526f98daca3d077",
|
|
61
66
|
"packages/nx-plugin/src/executors/bounded-exec/owned-subtree.ts": "cb5edf2b5fe2c1b5b961f8c0ff16ec7bfae3c22ad75dfd671b74f1a4a865863f",
|
|
62
|
-
"packages/nx-plugin/src/executors/bounded-exec/parent-grant.ts": "
|
|
67
|
+
"packages/nx-plugin/src/executors/bounded-exec/parent-grant.ts": "c634d3c57aa7859b5ee6cfd78f59889285faf72fb66ec2261d7481103c0a41fc",
|
|
63
68
|
"packages/nx-plugin/src/executors/bounded-exec/peak-charge.ts": "6721d2d4968550d99a6d10b47483d5e1685cea0ad694ea71abeef3d1adc48d77",
|
|
64
69
|
"packages/nx-plugin/src/executors/bounded-exec/peak-waiter.ts": "3d9a60f8e61d160cf4151746c160f836954f57aca896127a5ef9df4d09c26180",
|
|
65
|
-
"packages/nx-plugin/src/executors/bounded-exec/pool-admission.ts": "
|
|
70
|
+
"packages/nx-plugin/src/executors/bounded-exec/pool-admission.ts": "f83e113493937a356209f75893bd50c46a9ba6eeb53567bc19e972cfd4e918bd",
|
|
66
71
|
"packages/nx-plugin/src/executors/bounded-exec/pool-environment.ts": "00046e682376dfabedba3f1743b04656bd6a031b0ac4e594ae47e8f7beb2b68a",
|
|
67
|
-
"packages/nx-plugin/src/executors/bounded-exec/progress.ts": "
|
|
72
|
+
"packages/nx-plugin/src/executors/bounded-exec/progress-channel.ts": "68f51041c095ea334cbe9137cf99884d9a758484491cc4dc3506bfe37c3d327a",
|
|
73
|
+
"packages/nx-plugin/src/executors/bounded-exec/progress.ts": "23615918ba678ff464a1a076e705c4c32f0c9663072a55870dff6c312e5ebdad",
|
|
68
74
|
"packages/nx-plugin/src/executors/bounded-exec/ram-attach.ts": "865eb5c277d9ab4b258013030938aeee762b731a7298fa8ad3c5eba3026df77a",
|
|
69
75
|
"packages/nx-plugin/src/executors/bounded-exec/ram-detach.ts": "535d26114d14d0d94db76227ea7ba52b1ae0b590d7dbac22993b6796d255e666",
|
|
70
76
|
"packages/nx-plugin/src/executors/bounded-exec/ram-temp-fixtures.ts": "075da4ecfd1cf7dd98fc8c894599dcf2720faba07ac30b8e5592964178849359",
|
|
71
77
|
"packages/nx-plugin/src/executors/bounded-exec/ram-temp-held.ts": "7c32555bc6dab3f767925b55b68684d33a69393050342d06f055fb81e8e5332b",
|
|
72
|
-
"packages/nx-plugin/src/executors/bounded-exec/ram-temp.ts": "
|
|
73
|
-
"packages/nx-plugin/src/executors/bounded-exec/
|
|
78
|
+
"packages/nx-plugin/src/executors/bounded-exec/ram-temp.ts": "04d337d46ea375f1947016a21564284e3fa7bbc982b5b4842744fa943d5327fe",
|
|
79
|
+
"packages/nx-plugin/src/executors/bounded-exec/reservation-connection.ts": "49a5357b477e01f8d571590c1e9e239f2d9b346b3397692e963dddf86a3cd869",
|
|
80
|
+
"packages/nx-plugin/src/executors/bounded-exec/run-cpu-pool.ts": "9ad71786b869bc7325a562f61a412062ae28a5bfbdf4d54e8ca3a2664bcb1de9",
|
|
74
81
|
"packages/nx-plugin/src/executors/bounded-exec/runner-hook.ts": "606eab5db826e571eb15df618315e01cc773d09fd647beb1c00f6434df58ffad",
|
|
75
82
|
"packages/nx-plugin/src/executors/bounded-exec/runner-lifecycle.ts": "b2a7c901296bb6c139909297bbdbab5bd00e94319c022307d006b0e1293f6454",
|
|
76
|
-
"packages/nx-plugin/src/executors/bounded-exec/runner-sizing.ts": "
|
|
83
|
+
"packages/nx-plugin/src/executors/bounded-exec/runner-sizing.ts": "cb10681f90d703240b71ac134be7407d40b3656bfa4777df33810371bb605eb5",
|
|
77
84
|
"packages/nx-plugin/src/executors/bounded-exec/runtime-pin.ts": "3eb9a8b794da51ffa01723509935f48bfb497fba883518046e74a53209f0eb10",
|
|
78
|
-
"packages/nx-plugin/src/executors/bounded-exec/schema.ts": "
|
|
79
|
-
"packages/nx-plugin/src/executors/bounded-exec/
|
|
80
|
-
"packages/nx-plugin/src/executors/bounded-exec/test-
|
|
81
|
-
"packages/nx-plugin/src/executors/bounded-exec/
|
|
82
|
-
"packages/nx-plugin/src/executors/
|
|
85
|
+
"packages/nx-plugin/src/executors/bounded-exec/schema.ts": "c96d0aeb175401ae50c73baa45c2c44fefa8b530c29adfda22e281746811b946",
|
|
86
|
+
"packages/nx-plugin/src/executors/bounded-exec/suite-minimum.ts": "9d76c4658b554786b3fec620d08e7dd0c43316f10ae041b7bbe0e60a2d973ce2",
|
|
87
|
+
"packages/nx-plugin/src/executors/bounded-exec/test-result-writer.ts": "713cf3198221a72dd4916d0a429002f6dc60f902050bb70a17d76b05f7011d8f",
|
|
88
|
+
"packages/nx-plugin/src/executors/bounded-exec/test-results.ts": "1cc94eba11bbac1a27a60ce6e086335b91634066a9cf49d8b48c639930cb70ea",
|
|
89
|
+
"packages/nx-plugin/src/executors/bounded-exec/verdict.ts": "238968d9af11050bee431f63cad1f5cd3e3b6fdc32bd16f5add121a787da2449",
|
|
90
|
+
"packages/nx-plugin/src/executors/cargo-zigbuild/executor.ts": "e39872a433d4744ab82b2ee8063f8942991dabcf72a69eaaef1206315c0d13d2",
|
|
83
91
|
"packages/nx-plugin/src/executors/cargo-zigbuild/schema.ts": "e5cf3b0cc91a2d003a63ca0c9a93f1ec08263469b8a19dbe338b2dc0c0810747",
|
|
84
92
|
"packages/nx-plugin/src/executors/scriptc-native/executor.ts": "4db61da4444d3a30acd3995b6cf53a4bc403a40fe856d88b2c30ce467badbea8",
|
|
85
93
|
"packages/nx-plugin/src/executors/scriptc-native/ffi-paths.ts": "a73ed6800f69992cad6b954f14c0adb4f0ded45900bf84582df4755a3775104c",
|
|
@@ -104,12 +112,12 @@
|
|
|
104
112
|
"packages/nx-plugin/src/generators/make-public/schema.d.ts": "5e7bd2f1ce16795df4c919d6d53588ea85b574c84400940b6322275f96f60357",
|
|
105
113
|
"packages/nx-plugin/src/go-tests.ts": "8e356b6ee276e6e836c404353b0ffb5ccec5beb261126f167f730e6e01e9c2b6",
|
|
106
114
|
"packages/nx-plugin/src/graph-input-contract.ts": "8a1aec1294960ae80bcff55a0370c95004a911bf1afe6caa47e666da3baeac43",
|
|
107
|
-
"packages/nx-plugin/src/index.ts": "
|
|
115
|
+
"packages/nx-plugin/src/index.ts": "0865195373e9a53d9aadddbaa005c712e7bbb83c645f5bb900f56278b0384a66",
|
|
108
116
|
"packages/nx-plugin/src/managed-assets.ts": "9cea959c09f3163992e666eecc5a65ec1f1b63c81fc56c5e99088507d02c5e3b",
|
|
109
|
-
"packages/nx-plugin/src/managed-files/ci-workflow.ts": "
|
|
117
|
+
"packages/nx-plugin/src/managed-files/ci-workflow.ts": "bec80c782d39df9e8e451c81bbf52bd5b35ac56a01d0437d5bb15c95cb74a64c",
|
|
110
118
|
"packages/nx-plugin/src/managed-files/context.ts": "472553c8e15f5bb72f7167ca3f3c5ce5171f479a3cdf2fb4b9f86d1f1addf4bd",
|
|
111
|
-
"packages/nx-plugin/src/managed-files/files.ts": "
|
|
112
|
-
"packages/nx-plugin/src/managed-files/generator.ts": "
|
|
119
|
+
"packages/nx-plugin/src/managed-files/files.ts": "0bcb76d5749327c25faa7f98ded390d06ff21a94258d4c90dc450dfea0ff75cf",
|
|
120
|
+
"packages/nx-plugin/src/managed-files/generator.ts": "b3d3bdf6f4c665c649472159595ee094a1b73d729495bbae3695817147487e0c",
|
|
113
121
|
"packages/nx-plugin/src/managed-files/github-runs-on.ts": "a049ca60a79dec57f77e5d18090569a9b8b78818219f236fe352e7705500f531",
|
|
114
122
|
"packages/nx-plugin/src/managed-files/json-edit.ts": "81bc6dd10fffff583cc9f2269f0c2fd2f76b1c5aedbc7d068cf29878371497c2",
|
|
115
123
|
"packages/nx-plugin/src/managed-files/managed-content.ts": "a323dc2facbb555385bd3855215ecb1f84ff5ab6636ba971ad55b9b09dbe0af0",
|
|
@@ -118,6 +126,7 @@
|
|
|
118
126
|
"packages/nx-plugin/src/managed-files/pr-preview-cleanup-workflow.ts": "0f34805a6d737f364c23801da62aefcd4afdc7ba87e911019dd6301be640b385",
|
|
119
127
|
"packages/nx-plugin/src/managed-files/private-npm-policy.ts": "795882f98b2c2434e7c0115e93a7b4c0da6142ae0602274b362893c49a46d5a7",
|
|
120
128
|
"packages/nx-plugin/src/managed-files/publish-workflow.ts": "4cb4a8417f09bbdd2aad1e3b5036d6f88c20c62ad64c3163cd0f0134de3e5170",
|
|
129
|
+
"packages/nx-plugin/src/managed-files/render-memo.ts": "8d1417447c486cf95409bd19d954ff7af7970113858fc64ba073a6c76a784ea6",
|
|
121
130
|
"packages/nx-plugin/src/managed-files/tree.ts": "a6b7dc515796a3824199938ce70af7d2b45347ed32064b487f3d5f381509dc54",
|
|
122
131
|
"packages/nx-plugin/src/manifest-hash.ts": "26cb2598853801cf70785386e1847feba7f04780b43809597004b7fb7ecbc2b6",
|
|
123
132
|
"packages/nx-plugin/src/nextest-code-bound.ts": "e1036934a35f1b65e0f43bddbea259e01a1100e553cdeaefc2db8823a4517340",
|
|
@@ -141,18 +150,18 @@
|
|
|
141
150
|
"packages/nx-plugin/src/task-results.ts": "79aab74e46eacb26bba5d67cfdb2a2eedf0d5c03594e76de6b77e734664555a4",
|
|
142
151
|
"packages/nx-plugin/src/test-backstop.ts": "bd8b27cc05f001e460c29997125f2d7cb07a98ca1ae306f0b0f1884978e247e1",
|
|
143
152
|
"packages/nx-plugin/src/test-clock-policy.ts": "4edaef6535b862a5b4ca19686ad958c4df1986e1f97821a6193d4a99742598e9",
|
|
144
|
-
"packages/nx-plugin/src/test-program.ts": "
|
|
153
|
+
"packages/nx-plugin/src/test-program.ts": "66990382fcd5de584b7e6501cd33eff43b13d6b7a8cf1485fce4ce4ae1094faf",
|
|
145
154
|
"packages/nx-plugin/src/test-timings.ts": "73c2de1b5c0d06a6628d1659727a8504eaf3c21e89fe0a5da969702ba6823ec9",
|
|
146
155
|
"packages/nx-plugin/src/test-walk-policy.ts": "f1c92f1a2ba0c3282abb1706bb637d4b5dc74109edb27f7e41edc14e475bfc91",
|
|
147
156
|
"packages/nx-plugin/src/testing.ts": "ef26d48eb7b90d682778cbbff678c9cc25df57a6775cb58b8c925e8fb829fe6a",
|
|
148
|
-
"packages/nx-plugin/src/tool-bins.ts": "
|
|
157
|
+
"packages/nx-plugin/src/tool-bins.ts": "8c99011ffc03a6e2455729b418ffb69f99621ba237a1fb83eb72b50fc377ffb4",
|
|
149
158
|
"packages/nx-plugin/src/type-guards.ts": "87d87a9bb83f0f4614b9f615d8cc7347772cb1418dc1946978987147c0d6ef0c",
|
|
150
159
|
"packages/nx-plugin/src/typecheck-route.ts": "90d47be308cb510b252451747d1eaaa2675f79c1687070e39fc7d2578abdb476",
|
|
151
|
-
"packages/nx-plugin/src/typecheck-test-policy.ts": "
|
|
160
|
+
"packages/nx-plugin/src/typecheck-test-policy.ts": "7d945c6b1e23556154c7585d9e20e14010607a9e456f45c30f72b8812b411e1d",
|
|
152
161
|
"packages/nx-plugin/src/version-actions.cts": "c579ed33d5641bd487024429758582fe1f7bde376cfbd4a4a4325aa70fb71883",
|
|
153
162
|
"packages/nx-plugin/src/wait-why-policy.ts": "f10a5370665c0c38dc778d7532b2cd2b008221efea097b788aeaba8ee63745ea",
|
|
154
|
-
"packages/nx-plugin/src/workspace-config-policy.ts": "
|
|
155
|
-
"packages/nx-plugin/src/workspace-index.ts": "
|
|
163
|
+
"packages/nx-plugin/src/workspace-config-policy.ts": "913b7de46078196fca05d9f2175d2f8ea73781391b32f4925d1657b8ccdc945e",
|
|
164
|
+
"packages/nx-plugin/src/workspace-index.ts": "176a3ebd62dd2a928d38c2d91e5faa08625b4acb1c1a095718b5aaf1222deabc",
|
|
156
165
|
"packages/nx-plugin/src/workspace-manifest.ts": "44d20244ff5fac9b6397e6c0ce6d9eac25d16f95c6a0c21a8cc70ca17067ce26",
|
|
157
166
|
"packages/nx-plugin/src/workspace-package-policy.ts": "f569ce4e5d27168ea83aa41893573cb869d6f062d37133e95911fdd1d709fa8c",
|
|
158
167
|
"packages/nx-plugin/tsconfig.lib.json": "553a96cc72e10c187d5e7d3da767270d8184ae07929139e417345c770b8d84d1"
|
|
@@ -51,7 +51,7 @@ function readLockfile(context) {
|
|
|
51
51
|
throw new Error(`builtOutputPackages names packages, but ${path} does not exist`);
|
|
52
52
|
const contents = packageManager === 'bun' ? readBunLockFile(path) : readFileSync(path, 'utf-8');
|
|
53
53
|
const hash = hashArray([nxVersion, contents]);
|
|
54
|
-
if (published?.hash === hash)
|
|
54
|
+
if (packageManager !== 'bun' && published?.hash === hash)
|
|
55
55
|
return published;
|
|
56
56
|
const { nodes, keyMap } = getLockFileNodes(packageManager, lockFile, contents, hash, context);
|
|
57
57
|
return { packageManager, lockFile, contents, hash, nodes, keyMap };
|
package/dist/bun-lock-scope.d.ts
CHANGED
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
import { type CreateDependenciesContext, type ProjectGraphExternalNode, type RawProjectGraphDependency } from 'nx/src/devkit-exports.js';
|
|
1
|
+
import { type CreateDependenciesContext, type ProjectGraph, type ProjectGraphExternalNode, type RawProjectGraphDependency } from 'nx/src/devkit-exports.js';
|
|
2
2
|
/**
|
|
3
3
|
* Every bun lock-scope node's name starts with this; the rest is the root of
|
|
4
4
|
* the project whose manifest it stands for, `.` for the workspace root.
|
|
5
5
|
*
|
|
6
6
|
* A lock-scope node is the part of bun.lock one manifest reaches: what the
|
|
7
7
|
* package can load. Its edges go to the npm nodes the manifest's dependencies
|
|
8
|
-
* resolve to
|
|
9
|
-
*
|
|
10
|
-
* the
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* the
|
|
8
|
+
* resolve to and to the node of each workspace member it depends on, the
|
|
9
|
+
* root's manifest included. Nx's lockfile parser links each versioned npm node
|
|
10
|
+
* to the packages it depends on, and the plugin links each unversioned alias
|
|
11
|
+
* to its versioned node ({@link bunVersionAliasDependencies}), so a target naming a node in its
|
|
12
|
+
* `externalDependencies` is keyed on every package of that closure by the hash
|
|
13
|
+
* bun.lock records for it, and on nothing else in the lockfile. That replaces
|
|
14
|
+
* bun.lock as a file input: a lockfile edit re-keys the tasks that can load
|
|
15
|
+
* what changed.
|
|
16
|
+
*
|
|
17
|
+
* A member's node has no edge to the root's. Bun's isolated linker links into
|
|
18
|
+
* a directory's `node_modules` exactly the packages its manifest declares, but
|
|
19
|
+
* Node's lookup from a member continues into the root's `node_modules`, so a
|
|
20
|
+
* member can load any package the root declares. Two rules keep the member's
|
|
21
|
+
* own closure the whole of what it loads: a source import of a package outside
|
|
22
|
+
* that closure refuses the graph ({@link undeclaredImports}), and a tool a
|
|
23
|
+
* target runs names each package it loads by name from a directory by the
|
|
24
|
+
* scope that declares it ({@link bunLoadInput}). The root's own tooling (Nx
|
|
25
|
+
* plugins and generators, release and mutation tooling) then keys only the
|
|
26
|
+
* tasks that load it.
|
|
19
27
|
*
|
|
20
28
|
* The nodes carry no content of their own; Nx hashes a node's version and the
|
|
21
29
|
* nodes it reaches.
|
|
@@ -23,8 +31,15 @@ import { type CreateDependenciesContext, type ProjectGraphExternalNode, type Raw
|
|
|
23
31
|
export declare const BUN_LOCK_NODE_PREFIX = "bun-lock:";
|
|
24
32
|
/** The lock-scope node of the project at `projectRoot`. */
|
|
25
33
|
export declare function bunLockNodeName(projectRoot: string): string;
|
|
26
|
-
/** The node of the workspace root manifest
|
|
34
|
+
/** The node of the workspace root manifest. */
|
|
27
35
|
export declare const BUN_ROOT_LOCK_NODE: string;
|
|
36
|
+
/**
|
|
37
|
+
* The named input every `package.json` project defines as its own lock-scope
|
|
38
|
+
* input. `externalDependencies` takes no `{projectRoot}` token, so a
|
|
39
|
+
* workspace-wide named input or target default names this to key each
|
|
40
|
+
* project's targets on its own manifest's closure.
|
|
41
|
+
*/
|
|
42
|
+
export declare const BUN_LOCK_SCOPE_NAMED_INPUT = "bunLockScope";
|
|
28
43
|
/** The input that keys a target on the bun.lock entries its project's manifest reaches. */
|
|
29
44
|
export declare function bunLockInput(projectRoot: string): {
|
|
30
45
|
externalDependencies: string[];
|
|
@@ -32,13 +47,106 @@ export declare function bunLockInput(projectRoot: string): {
|
|
|
32
47
|
/** The node itself, published by its project; {@link bunLockDependencies} gives it its edges. */
|
|
33
48
|
export declare function bunLockNode(projectRoot: string): ProjectGraphExternalNode;
|
|
34
49
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
|
|
50
|
+
* Every bun runtime-scope node's name starts with this; the rest is a project
|
|
51
|
+
* root. It is the part of bun.lock a dependent loads through that package: the
|
|
52
|
+
* closure of its `dependencies`, `optionalDependencies` and
|
|
53
|
+
* `peerDependencies`. A package's devDependencies are installed for its own
|
|
54
|
+
* targets only, so a dependent's lock-scope node reaches the runtime node of
|
|
55
|
+
* each member it declares, never that member's own node.
|
|
56
|
+
*/
|
|
57
|
+
export declare const BUN_LOCK_RUNTIME_NODE_PREFIX = "bun-lock-runtime:";
|
|
58
|
+
/** The runtime-scope node of the project at `projectRoot`. */
|
|
59
|
+
export declare function bunLockRuntimeNodeName(projectRoot: string): string;
|
|
60
|
+
/** The runtime-scope node itself, published by its project beside its lock-scope node. */
|
|
61
|
+
export declare function bunLockRuntimeNode(projectRoot: string): ProjectGraphExternalNode;
|
|
62
|
+
/**
|
|
63
|
+
* The edges of every published bun lock-scope and runtime-scope node. A
|
|
64
|
+
* manifest's dependencies are resolved exactly as Nx resolves a project's own
|
|
65
|
+
* package edges (`buildExplicitPackageJsonDependencies`, one
|
|
66
|
+
* `TargetProjectLocator` over the same projects and lockfile nodes): an
|
|
67
|
+
* installed package becomes an edge to its npm node, a workspace member an
|
|
68
|
+
* edge to that member's runtime node, and a package that resolves to no node
|
|
69
|
+
* is skipped exactly as Nx skips it. The lock-scope node takes every section,
|
|
70
|
+
* the runtime node all but devDependencies.
|
|
42
71
|
*/
|
|
43
72
|
export declare function bunLockDependencies(context: CreateDependenciesContext): RawProjectGraphDependency[];
|
|
73
|
+
/** A package a module loads by name, and the workspace-relative directory of that module. */
|
|
74
|
+
export interface PackageLoad {
|
|
75
|
+
readonly directory: string;
|
|
76
|
+
readonly name: string;
|
|
77
|
+
}
|
|
78
|
+
/** The package a bare specifier names: its scope and name, without the subpath. */
|
|
79
|
+
export declare function specifierPackage(specifier: string): string;
|
|
80
|
+
/** One manifest at or above a directory: its project root and the packages it declares. */
|
|
81
|
+
export interface ManifestDeclarations {
|
|
82
|
+
readonly root: string;
|
|
83
|
+
readonly declared: ReadonlySet<string>;
|
|
84
|
+
}
|
|
85
|
+
/** The manifests at and above the workspace-relative `directory`, nearest first, ending with the root's. */
|
|
86
|
+
export declare function manifestsAbove(workspaceRoot: string, directory: string): ManifestDeclarations[];
|
|
87
|
+
/**
|
|
88
|
+
* The `externalDependencies` entry that keys package `name` as a process loads
|
|
89
|
+
* it by name from a directory, given the manifests at and above it, nearest
|
|
90
|
+
* first; `null` when none declares it, so nothing on that path loads it. Node's
|
|
91
|
+
* lookup walks the directory's ancestors' `node_modules`, and bun's isolated
|
|
92
|
+
* linker links into each exactly what its manifest declares, so the nearest
|
|
93
|
+
* declaring manifest decides what loads. A member's declaration is keyed by its
|
|
94
|
+
* lock-scope node. The root's is named by itself, and Nx keys that package's
|
|
95
|
+
* node and what it reaches: the root's node would key the whole of the root's
|
|
96
|
+
* tooling.
|
|
97
|
+
*/
|
|
98
|
+
export declare function bunLoadScope(manifests: readonly ManifestDeclarations[], name: string): string | null;
|
|
99
|
+
/** The lock scope of each package load, from the manifests above its directory; sorted, each once. */
|
|
100
|
+
export declare function bunLoadScopes(workspaceRoot: string, loads: readonly PackageLoad[]): string[];
|
|
101
|
+
/** A target's one `externalDependencies` input: its project's lock-scope node first, then each other scope once, sorted. */
|
|
102
|
+
export declare function bunScopeInput(projectRoot: string, ...scopes: readonly (readonly string[])[]): {
|
|
103
|
+
externalDependencies: string[];
|
|
104
|
+
};
|
|
105
|
+
/** The input keying every package of `names` a process loads by name from the directory `manifests` stand above. */
|
|
106
|
+
export declare function bunLoadInput(manifests: readonly ManifestDeclarations[], names: Iterable<string>): {
|
|
107
|
+
externalDependencies: string[];
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* The packages a TypeScript compile in a directory loads by name beyond its
|
|
111
|
+
* sources' imports: every `@types` package a manifest at or above it declares
|
|
112
|
+
* (TypeScript includes each ancestor's `node_modules/@types` unless the config
|
|
113
|
+
* lists `types`, a narrower set), and the `tslib` an `importHelpers` compile
|
|
114
|
+
* resolves.
|
|
115
|
+
*/
|
|
116
|
+
export declare function typescriptLoads(manifests: readonly ManifestDeclarations[]): string[];
|
|
117
|
+
/** A project source import of a package its own lock-scope node does not reach. */
|
|
118
|
+
export interface UndeclaredImport {
|
|
119
|
+
readonly project: string;
|
|
120
|
+
readonly root: string;
|
|
121
|
+
readonly packageName: string;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* The npm packages each workspace member's sources import (Nx's own `static`
|
|
125
|
+
* and `dynamic` edges) that its lock-scope node does not reach. Node loads such
|
|
126
|
+
* a package through an ancestor's `node_modules`, the root's, and the
|
|
127
|
+
* project's targets, keyed on the member's own closure, would miss it. The
|
|
128
|
+
* root's project is exempt: its node reaches everything its manifest declares.
|
|
129
|
+
* So is a `@types` package: TypeScript loads it by ancestry, not Node, and
|
|
130
|
+
* every TypeScript target keys the `@types` the manifests above it declare
|
|
131
|
+
* ({@link typescriptLoads}). A package is compared by name and version, never
|
|
132
|
+
* by node name: Nx publishes a hoisted package as both `npm:<name>` and
|
|
133
|
+
* `npm:<name>@<version>`, and its locator resolves a declaration and an
|
|
134
|
+
* import to either ({@link bunVersionAliasDependencies}).
|
|
135
|
+
*/
|
|
136
|
+
export declare function undeclaredImports(graph: ProjectGraph): UndeclaredImport[];
|
|
137
|
+
/**
|
|
138
|
+
* An edge from each unversioned npm node to the versioned node of the same
|
|
139
|
+
* package and version. Nx's bun lockfile parser publishes a hoisted package as
|
|
140
|
+
* both `npm:<name>` and `npm:<name>@<version>`, with one integrity, and links
|
|
141
|
+
* only the versioned node to the package's dependencies. A key on the
|
|
142
|
+
* unversioned node (an `externalDependencies` entry naming a package, or a
|
|
143
|
+
* lock-scope edge the locator resolved to it) then held the package's own
|
|
144
|
+
* integrity and none of its closure; through this edge it holds both.
|
|
145
|
+
*/
|
|
146
|
+
export declare function bunVersionAliasDependencies(externalNodes: Readonly<Record<string, ProjectGraphExternalNode>>): RawProjectGraphDependency[];
|
|
147
|
+
export declare class UndeclaredImportError extends Error {
|
|
148
|
+
readonly findings: readonly UndeclaredImport[];
|
|
149
|
+
constructor(findings: readonly UndeclaredImport[]);
|
|
150
|
+
}
|
|
151
|
+
export declare function refuseUndeclaredImports(graph: ProjectGraph): void;
|
|
44
152
|
//# sourceMappingURL=bun-lock-scope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bun-lock-scope.d.ts","sourceRoot":"","sources":["../src/bun-lock-scope.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,yBAAyB,EAE9B,KAAK,wBAAwB,EAE7B,KAAK,yBAAyB,EAE/B,MAAM,0BAA0B,CAAC;AAGlC
|
|
1
|
+
{"version":3,"file":"bun-lock-scope.d.ts","sourceRoot":"","sources":["../src/bun-lock-scope.ts"],"names":[],"mappings":"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"}
|