@crvouga/homelab 0.22.0 → 0.22.1
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/bootstrap/npm.ts +10 -3
- package/package.json +2 -2
package/bootstrap/npm.ts
CHANGED
|
@@ -124,11 +124,12 @@ export function measure(
|
|
|
124
124
|
const whoami = exec.capture(['npm', 'whoami']);
|
|
125
125
|
const tag = `v${version}`;
|
|
126
126
|
const view = exec.capture(['npm', 'view', `${name}@${version}`, 'gitHead']);
|
|
127
|
-
const any = exec.capture(['npm', 'view', name, '
|
|
127
|
+
const any = exec.capture(['npm', 'view', name, 'version']);
|
|
128
128
|
if (!any.ok && !/E404/.test(any.stderr))
|
|
129
129
|
throw new Error('Could not reach the npm registry. Check the network.');
|
|
130
|
-
|
|
131
|
-
const
|
|
130
|
+
// npm can reserve the package name with a placeholder while the seed is absent.
|
|
131
|
+
const published = view.ok || (any.ok && any.stdout.trim() !== '0.0.0-stage');
|
|
132
|
+
const trust = any.ok
|
|
132
133
|
? exec.capture(['npm', 'trust', 'list', name, '--json'])
|
|
133
134
|
: null;
|
|
134
135
|
const configs = trust?.ok ? trustConfigs(trust.stdout) : [];
|
|
@@ -351,6 +352,12 @@ export async function bootstrap(
|
|
|
351
352
|
return 1;
|
|
352
353
|
}
|
|
353
354
|
state = measure(exec, target, version);
|
|
355
|
+
if (step.id === 'publish' && !state.published) {
|
|
356
|
+
log(
|
|
357
|
+
'npm accepted the seed. Wait for it to appear in the registry, then run bun run bootstrap again.'
|
|
358
|
+
);
|
|
359
|
+
return 1;
|
|
360
|
+
}
|
|
354
361
|
}
|
|
355
362
|
show(deps, state, plan(state, version));
|
|
356
363
|
return plan(state, version).every((step) => step.done) ? 0 : 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crvouga/homelab",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.1",
|
|
4
4
|
"description": "Keeps a set of development machines in sync: one manager and many workers",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "github:crvouga/homelab",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"engines": {
|
|
74
74
|
"node": ">=22"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "52fed91e282a4986ddb86d29fb3e3aec603fc0fa"
|
|
77
77
|
}
|