vouchington-tooling 0.12.2 → 0.12.3
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.
|
@@ -8,6 +8,10 @@ import { findWorkspaceLinkMismatches, forcedInstallArgs, logWorkspaceLinkMismatc
|
|
|
8
8
|
function fail(message) {
|
|
9
9
|
throw new Error(message);
|
|
10
10
|
}
|
|
11
|
+
function failPendingBuildLedger(phase, state) {
|
|
12
|
+
const ids = state.kind === 'pending' ? `; remaining IDs: ${JSON.stringify(state.ids)}` : '';
|
|
13
|
+
fail(`${phase} completed without a clear pending build ledger${ids}`);
|
|
14
|
+
}
|
|
11
15
|
export function withScriptPolicy(args, installScripts) {
|
|
12
16
|
return installScripts ? args : [...args, '--ignore-scripts'];
|
|
13
17
|
}
|
|
@@ -49,15 +53,15 @@ async function verifyInstallHealth(runCapture, phase, repairedNativePaths = [])
|
|
|
49
53
|
export async function finalizePendingBuilds(options, runCapture, phase) {
|
|
50
54
|
const before = await pendingBuilds();
|
|
51
55
|
if (options.installScripts && before.kind === 'unknown')
|
|
52
|
-
|
|
56
|
+
failPendingBuildLedger(phase, before);
|
|
53
57
|
if (options.installScripts && before.kind === 'pending') {
|
|
54
58
|
const deduplicated = await deduplicatePendingBuilds();
|
|
55
59
|
if (deduplicated.kind !== 'pending')
|
|
56
|
-
|
|
60
|
+
failPendingBuildLedger(phase, deduplicated);
|
|
57
61
|
await install(['rebuild', '--pending', '--recursive'], options, 'pending scripts rebuild');
|
|
58
62
|
const after = await pendingBuilds();
|
|
59
63
|
if (after.kind !== 'clear')
|
|
60
|
-
|
|
64
|
+
failPendingBuildLedger(phase, after);
|
|
61
65
|
}
|
|
62
66
|
await verifyInstallHealth(runCapture, phase);
|
|
63
67
|
return options.installScripts ? { kind: 'clear' } : before;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vouchington-tooling",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3",
|
|
4
4
|
"description": "Vouchington CLI and extractable tooling libraries.",
|
|
5
5
|
"homepage": "https://github.com/vouchington/vouchington-tooling/tree/main/packages/vouchington-tooling#readme",
|
|
6
6
|
"bugs": {
|