@akanjs/cli 3.2.0-rc.6 → 3.2.0-rc.7
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/.build-stamp +2 -2
- package/README.ko.md +3 -1
- package/README.md +3 -1
- package/{cloud.command-g9k7zb5s.js → cloud.command-6angaryd.js} +2 -2
- package/{cloud.script-jttgtbch.js → cloud.script-w5b0a1sm.js} +2 -2
- package/{index-3wvc8cfa.js → index-1kj847m5.js} +38 -0
- package/{index-h4xv44b2.js → index-qn5xmscz.js} +1 -1
- package/index.js +4 -4
- package/{localRegistry.command-ef65g36k.js → localRegistry.command-mgb4fg60.js} +1 -1
- package/package.json +2 -2
- package/{subspace.command-hg0hqscf.js → subspace.command-48d86hvc.js} +1 -1
- package/{workspace.command-zvnybhr6.js → workspace.command-5mm9ahzc.js} +2 -2
package/.build-stamp
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
2b1260db864ba3e2ab2d63964e0a10d45b943de6edfc7a014463dde2dd0fd6f4
|
|
2
|
+
0bb319f8-a578-4217-a38d-0ba080fddbef
|
package/README.ko.md
CHANGED
|
@@ -110,7 +110,9 @@ Akan 프레임워크 패키지는 `dist/pkgs/*`에서만 배포합니다. `verif
|
|
|
110
110
|
|
|
111
111
|
릴리스 후보(rc)는 CI가 배포합니다. `rc` 브랜치에 push될 때마다 CI 전체를 돌린 뒤, 대기 중인 changeset이
|
|
112
112
|
릴리스할 버전의 다음 `<version>-rc.N`을 npm provenance와 함께 배포하고 그 커밋에 `v<version>-rc.N` 태그를 붙입니다.
|
|
113
|
-
정식 릴리스는 지금처럼 수동입니다: `bun run changeset:version
|
|
113
|
+
정식 릴리스는 지금처럼 수동입니다: `bun run changeset:version`, 커밋해서 `main`에 push, 그다음
|
|
114
|
+
`akan deploy-akan --registry npm`. npm 배포가 끝나면 `deploy-akan`이 그 커밋으로 에디터 확장 릴리스를 CI에
|
|
115
|
+
요청합니다. 커밋이 아직 `main`에 없으면 push한 뒤 돌릴 `gh workflow run` 명령을 알려 줍니다.
|
|
114
116
|
`npm-publish` environment는 `rc`만 허용하므로 `rc`에 push할 수 있는 사람은 rc를 배포할 수 있습니다. 저장소 규칙에서
|
|
115
117
|
`rc` push 권한을 제한하세요.
|
|
116
118
|
|
package/README.md
CHANGED
|
@@ -109,7 +109,9 @@ artifact is built last and is not overwritten by the root `akan` bootstrap scrip
|
|
|
109
109
|
|
|
110
110
|
Release candidates publish from CI: each push to the `rc` branch runs the CI suite, then publishes the next
|
|
111
111
|
`<version>-rc.N` of the version the pending changesets will release, with npm provenance, and tags that commit
|
|
112
|
-
`v<version>-rc.N`. Stable releases stay manual: `bun run changeset:version`,
|
|
112
|
+
`v<version>-rc.N`. Stable releases stay manual: `bun run changeset:version`, commit and push it to `main`, then
|
|
113
|
+
`akan deploy-akan --registry npm`. Once npm has the packages, `deploy-akan` asks CI to release the editor extension
|
|
114
|
+
from that commit; if the commit is not on `main` yet, it prints the `gh workflow run` command to run after pushing.
|
|
113
115
|
The `npm-publish` environment admits only `rc`, so whoever can push to `rc` can publish an rc: restrict pushes to
|
|
114
116
|
`rc` in the repository's rules.
|
|
115
117
|
|
|
@@ -9,7 +9,7 @@ import"./index-0fq1b5jp.js";
|
|
|
9
9
|
import"./index-9km2h20g.js";
|
|
10
10
|
import {
|
|
11
11
|
PlatformTestRun
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-1kj847m5.js";
|
|
13
13
|
import"./index-y9xbhs20.js";
|
|
14
14
|
import"./index-df0r4008.js";
|
|
15
15
|
import"./index-m9jj544v.js";
|
|
@@ -31,7 +31,7 @@ import"./index-dtxntsfx.js";
|
|
|
31
31
|
import"./index-w0nztbs0.js";
|
|
32
32
|
import {
|
|
33
33
|
CloudScript2
|
|
34
|
-
} from "./index-
|
|
34
|
+
} from "./index-qn5xmscz.js";
|
|
35
35
|
import {
|
|
36
36
|
writeOption,
|
|
37
37
|
oneNativeTargetOption,
|
|
@@ -1169,6 +1169,44 @@ ${run.format(results)}
|
|
|
1169
1169
|
Logger3.info(`${library}@${nextVersion} is published to ${registry ?? "npm"}`);
|
|
1170
1170
|
}
|
|
1171
1171
|
Logger3.info(`All libraries are published to ${registry ?? "npm"}`);
|
|
1172
|
+
if (!registry && isOfficialRelease)
|
|
1173
|
+
await this.releaseEditorExtension(workspace);
|
|
1174
|
+
}
|
|
1175
|
+
async releaseEditorExtension(workspace) {
|
|
1176
|
+
const repo = "akan-team/akanjs";
|
|
1177
|
+
const bundled = [
|
|
1178
|
+
"pkgs/@akanjs/vscode",
|
|
1179
|
+
"pkgs/@akanjs/language",
|
|
1180
|
+
":(exclude)pkgs/@akanjs/language/package.json",
|
|
1181
|
+
":(exclude)pkgs/@akanjs/language/CHANGELOG.md",
|
|
1182
|
+
"pkgs/akanjs/common/akanNames.ts",
|
|
1183
|
+
"pkgs/akanjs/common/akanGraph.ts",
|
|
1184
|
+
"pkgs/akanjs/common/capitalize.ts",
|
|
1185
|
+
"apps/akan/public/icon-512x512.png",
|
|
1186
|
+
"bun.lock"
|
|
1187
|
+
];
|
|
1188
|
+
try {
|
|
1189
|
+
if ((await workspace.spawn("git", ["status", "--porcelain", "--", ...bundled])).trim())
|
|
1190
|
+
throw new Error("files the extension bundles have uncommitted changes, such as the version `changeset version` wrote");
|
|
1191
|
+
const sha = (await workspace.spawn("git", ["rev-parse", "HEAD"])).trim();
|
|
1192
|
+
const onMain = (await workspace.spawn("gh", ["api", `repos/${repo}/compare/${sha}...main`, "--jq", ".status"])).trim();
|
|
1193
|
+
if (onMain !== "identical" && onMain !== "ahead")
|
|
1194
|
+
throw new Error(`${sha.slice(0, 9)} is not on main`);
|
|
1195
|
+
await workspace.spawn("gh", [
|
|
1196
|
+
"workflow",
|
|
1197
|
+
"run",
|
|
1198
|
+
"vscode-publish.yml",
|
|
1199
|
+
"--repo",
|
|
1200
|
+
repo,
|
|
1201
|
+
"--ref",
|
|
1202
|
+
"main",
|
|
1203
|
+
"-f",
|
|
1204
|
+
`sha=${sha}`
|
|
1205
|
+
]);
|
|
1206
|
+
Logger3.info(`CI is releasing the editor extension from ${sha.slice(0, 9)}: https://github.com/${repo}/actions/workflows/vscode-publish.yml`);
|
|
1207
|
+
} catch (error) {
|
|
1208
|
+
Logger3.warn(`The editor extension was not released: ${error instanceof Error ? error.message : String(error)}. Commit and push the release to main, then run from that commit \`gh workflow run vscode-publish.yml --repo ${repo} --ref main -f sha=$(git rev-parse HEAD)\``);
|
|
1209
|
+
}
|
|
1172
1210
|
}
|
|
1173
1211
|
#dependenciesFirst(libraries, dependencies) {
|
|
1174
1212
|
const ordered = [];
|
package/index.js
CHANGED
|
@@ -22,18 +22,18 @@ import path from "path";
|
|
|
22
22
|
|
|
23
23
|
// pkgs/@akanjs/cli/commandModules.ts
|
|
24
24
|
var commandModules = {
|
|
25
|
-
workspace: async () => (await import("./workspace.command-
|
|
25
|
+
workspace: async () => (await import("./workspace.command-5mm9ahzc.js")).WorkspaceCommand,
|
|
26
26
|
agent: async () => (await import("./agent.command-pdmb75bk.js")).AgentCommand,
|
|
27
27
|
code: async () => (await import("./code.command-ceyhrgrc.js")).CodeCommand,
|
|
28
28
|
application: async () => (await import("./application.command-xwch7rww.js")).ApplicationCommand,
|
|
29
29
|
library: async () => (await import("./library.command-4c2yjfqa.js")).LibraryCommand,
|
|
30
|
-
localRegistry: async () => (await import("./localRegistry.command-
|
|
30
|
+
localRegistry: async () => (await import("./localRegistry.command-mgb4fg60.js")).LocalRegistryCommand,
|
|
31
31
|
package: async () => (await import("./package.command-3wh1hh2j.js")).PackageCommand,
|
|
32
32
|
module: async () => (await import("./module.command-c6284z1b.js")).ModuleCommand,
|
|
33
33
|
page: async () => (await import("./page.command-sx22j4yv.js")).PageCommand,
|
|
34
34
|
context: async () => (await import("./context.command-n7dbh0ca.js")).ContextCommand,
|
|
35
|
-
cloud: async () => (await import("./cloud.command-
|
|
36
|
-
subspace: async () => (await import("./subspace.command-
|
|
35
|
+
cloud: async () => (await import("./cloud.command-6angaryd.js")).CloudCommand,
|
|
36
|
+
subspace: async () => (await import("./subspace.command-48d86hvc.js")).SubspaceCommand,
|
|
37
37
|
guideline: async () => (await import("./guideline.command-h5dfzrng.js")).GuidelineCommand,
|
|
38
38
|
scalar: async () => (await import("./scalar.command-qwvbhytf.js")).ScalarCommand,
|
|
39
39
|
primitive: async () => (await import("./primitive.command-4jaegn0m.js")).PrimitiveCommand,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/cli",
|
|
3
|
-
"version": "3.2.0-rc.
|
|
3
|
+
"version": "3.2.0-rc.7",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@earendil-works/pi-tui": "1.3.0",
|
|
40
40
|
"@inquirer/prompts": "^8.7.3",
|
|
41
41
|
"@tailwindcss/node": "^4.3.3",
|
|
42
|
-
"akanjs": "3.2.0-rc.
|
|
42
|
+
"akanjs": "3.2.0-rc.7",
|
|
43
43
|
"chalk": "^6.0.1",
|
|
44
44
|
"commander": "^15.0.0",
|
|
45
45
|
"dayjs": "^1.11.23",
|
|
@@ -818,7 +818,7 @@ class SubspaceRunner extends runner("subspace") {
|
|
|
818
818
|
if (!asked)
|
|
819
819
|
return { name: subspace.name, workspaceId, host, apps, libs: [], outcome: "cancelled", files: [] };
|
|
820
820
|
const { libs } = await subspace.slice();
|
|
821
|
-
const { CloudScript } = await import("./cloud.script-
|
|
821
|
+
const { CloudScript } = await import("./cloud.script-w5b0a1sm.js");
|
|
822
822
|
const { files } = await CommandContainer.get(CloudScript).uploadEnv(workspace, {
|
|
823
823
|
host,
|
|
824
824
|
workspaceId,
|
|
@@ -53,10 +53,10 @@ import"./index-cmg5ngqa.js";
|
|
|
53
53
|
import {
|
|
54
54
|
PackageScript
|
|
55
55
|
} from "./index-w0nztbs0.js";
|
|
56
|
-
import"./index-
|
|
56
|
+
import"./index-1kj847m5.js";
|
|
57
57
|
import {
|
|
58
58
|
CloudScript2
|
|
59
|
-
} from "./index-
|
|
59
|
+
} from "./index-qn5xmscz.js";
|
|
60
60
|
import"./index-2m6gaatn.js";
|
|
61
61
|
import"./index-39jz41jb.js";
|
|
62
62
|
import"./index-yp6mpazs.js";
|