@nuucognition/ops-cli 0.1.0-dev.1 → 0.1.0-dev.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.
- package/README.md +353 -100
- package/bin/ops-prod.js +2 -2
- package/dist/.build-stamp.json +5 -6
- package/dist/index.js +4218 -1860
- package/package.json +4 -26
package/bin/ops-prod.js
CHANGED
|
@@ -24,13 +24,13 @@ const entrypoint = join(packageRoot, 'dist', 'index.js');
|
|
|
24
24
|
// bin/stale.js, so it skips them and runs no git command.
|
|
25
25
|
if (existsSync(join(packageRoot, 'src'))) {
|
|
26
26
|
const { warnIfBuildStale } = await import('@nuucognition/cli-core/launch').catch(() => ({ warnIfBuildStale() {} }));
|
|
27
|
-
warnIfBuildStale({ cli: 'ops', distEntry: entrypoint, rebuildHint: 'Run:
|
|
27
|
+
warnIfBuildStale({ cli: 'ops', distEntry: entrypoint, rebuildHint: 'Run: ops update' });
|
|
28
28
|
// The prod bundle keeps its mode, so it never runs the source: when it is
|
|
29
29
|
// older than the source of this checkout, one warning says so (none under --json).
|
|
30
30
|
const stale = await import('./stale.js').catch(() => null);
|
|
31
31
|
const staleSha = stale ? stale.staleAgainstSource(packageRoot, join(packageRoot, 'dist')) : null;
|
|
32
32
|
if (staleSha && !stale.wantsJson()) {
|
|
33
|
-
process.stderr.write(`warning: the ops bundle (dist, built from ${staleSha.slice(0, 7)}) is older than the source of this checkout: a newer command can be missing. Next:
|
|
33
|
+
process.stderr.write(`warning: the ops bundle (dist, built from ${staleSha.slice(0, 7)}) is older than the source of this checkout: a newer command can be missing. Next: ops update\n`);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
package/dist/.build-stamp.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"sha":
|
|
3
|
-
"tree":
|
|
4
|
-
"dirty":
|
|
5
|
-
"builtAt": "2026-
|
|
6
|
-
"mode": "prod"
|
|
7
|
-
"links": []
|
|
2
|
+
"sha": null,
|
|
3
|
+
"tree": null,
|
|
4
|
+
"dirty": false,
|
|
5
|
+
"builtAt": "2026-11-08T22:30:05.955Z",
|
|
6
|
+
"mode": "prod"
|
|
8
7
|
}
|