@cosmicdrift/kumiko-cli 0.350.0 → 0.352.0
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/bin/kumiko-upgrade.ts +13 -0
- package/package.json +9 -8
- package/src/changes.json +6 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
// Same bin as @cosmicdrift/kumiko-dev-server's kumiko-upgrade. Repos that only
|
|
3
|
+
// depend on kumiko-cli + kumiko-guards never get a transitive dependency's bin
|
|
4
|
+
// linked, and guard-upgrade-state needs it in node_modules/.bin.
|
|
5
|
+
|
|
6
|
+
import { runUpgradeCli } from "@cosmicdrift/kumiko-framework/upgrade-cli";
|
|
7
|
+
|
|
8
|
+
// biome-ignore lint/suspicious/noConsole: CLI output is the feature.
|
|
9
|
+
const out = { log: (l: string) => console.log(l), err: (l: string) => console.error(l) };
|
|
10
|
+
const appCwd = process.env["INIT_CWD"] ?? process.cwd();
|
|
11
|
+
const code = await runUpgradeCli(process.argv.slice(2), appCwd, out);
|
|
12
|
+
// Let the event loop drain stdout (piped by guard-upgrade-state) before exit.
|
|
13
|
+
process.exitCode = code;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.352.0",
|
|
4
4
|
"description": "CLI for Kumiko apps. `bunx @cosmicdrift/kumiko-cli new app <name>` scaffolds a runnable workspace; `add feature <name>` mounts a feature; `check` runs boot validation plus the guard suites with the step list derived from kumiko.json; `agent lint`, `project` and `consumer` operate on an existing app.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"runtime": "dev"
|
|
19
19
|
},
|
|
20
20
|
"bin": {
|
|
21
|
-
"kumiko": "./bin/cli.ts"
|
|
21
|
+
"kumiko": "./bin/cli.ts",
|
|
22
|
+
"kumiko-upgrade": "./bin/kumiko-upgrade.ts"
|
|
22
23
|
},
|
|
23
24
|
"exports": {
|
|
24
25
|
".": {
|
|
@@ -35,12 +36,12 @@
|
|
|
35
36
|
}
|
|
36
37
|
},
|
|
37
38
|
"dependencies": {
|
|
38
|
-
"@cosmicdrift/kumiko-bundled-features": "0.
|
|
39
|
-
"@cosmicdrift/kumiko-dev-server": "0.
|
|
40
|
-
"@cosmicdrift/kumiko-framework": "0.
|
|
41
|
-
"@cosmicdrift/kumiko-guards": "0.
|
|
42
|
-
"@cosmicdrift/kumiko-repo-manifest": "0.
|
|
43
|
-
"@cosmicdrift/kumiko-testing": "0.
|
|
39
|
+
"@cosmicdrift/kumiko-bundled-features": "0.352.0",
|
|
40
|
+
"@cosmicdrift/kumiko-dev-server": "0.352.0",
|
|
41
|
+
"@cosmicdrift/kumiko-framework": "0.352.0",
|
|
42
|
+
"@cosmicdrift/kumiko-guards": "0.352.0",
|
|
43
|
+
"@cosmicdrift/kumiko-repo-manifest": "0.352.0",
|
|
44
|
+
"@cosmicdrift/kumiko-testing": "0.352.0",
|
|
44
45
|
"zod": "^4.4.3"
|
|
45
46
|
},
|
|
46
47
|
"publishConfig": {
|
package/src/changes.json
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.351.0",
|
|
4
|
+
"type": "fix",
|
|
5
|
+
"title": "kumiko-upgrade ships with kumiko-cli and takes the installed version from the repo's own install or bun.lock",
|
|
6
|
+
"detail": "`kumiko-upgrade` ships with kumiko-cli and reads the repo's own version\nRepos that depend only on `@cosmicdrift/kumiko-cli` and `@cosmicdrift/kumiko-guards` now get the `kumiko-upgrade` bin, which the upgrade-state guard runs. The installed version comes from the repo itself: its `node_modules`, the framework's package directories, then its `bun.lock`. It no longer walks up into a parent workspace, and with the isolated linker `installedVersion` is no longer `null`. Changelog entries newer than the installed version are not reported as pending, even when a parent workspace holds a newer install."
|
|
7
|
+
},
|
|
2
8
|
{
|
|
3
9
|
"version": "0.342.0",
|
|
4
10
|
"type": "breaking",
|