@uniac/cli 0.2.1 → 0.2.2
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 +5 -3
- package/package.json +6 -9
- package/targets.js +20 -0
package/README.md
CHANGED
|
@@ -37,9 +37,11 @@ On any other platform, grab a tar.gz from
|
|
|
37
37
|
|
|
38
38
|
`.github/workflows/release.yml` publishes on `cli-v*` tags: it runs
|
|
39
39
|
[`scripts/package-platform-npm.js`](./scripts/package-platform-npm.js)
|
|
40
|
-
to
|
|
41
|
-
|
|
42
|
-
platform packages followed by
|
|
40
|
+
to stage the platform packages and this meta package (with
|
|
41
|
+
exact-version `optionalDependencies` pins) from GoReleaser's `dist/`,
|
|
42
|
+
then publishes the platform packages followed by the meta package.
|
|
43
|
+
This directory is the staging template; the published copies live only
|
|
44
|
+
under the gitignored `platform-packages/`. See
|
|
43
45
|
[`../go/README.md`](../go/README.md) for the full release runbook.
|
|
44
46
|
|
|
45
47
|
## License
|
package/package.json
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniac/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Control-plane CLI for Uniac services",
|
|
6
6
|
"bin": {
|
|
7
7
|
"uniac": "bin/uniac.js"
|
|
8
8
|
},
|
|
9
|
-
"scripts": {
|
|
10
|
-
"postinstall": "node ./npm-install/postinstall.js"
|
|
11
|
-
},
|
|
12
9
|
"files": [
|
|
13
10
|
"bin/uniac.js",
|
|
14
|
-
"
|
|
11
|
+
"targets.js",
|
|
15
12
|
"README.md",
|
|
16
13
|
"LICENSE"
|
|
17
14
|
],
|
|
@@ -26,9 +23,9 @@
|
|
|
26
23
|
},
|
|
27
24
|
"homepage": "https://uniac.ai",
|
|
28
25
|
"optionalDependencies": {
|
|
29
|
-
"@uniac/cli-darwin-arm64": "0.2.
|
|
30
|
-
"@uniac/cli-darwin-x64": "0.2.
|
|
31
|
-
"@uniac/cli-linux-arm64": "0.2.
|
|
32
|
-
"@uniac/cli-linux-x64": "0.2.
|
|
26
|
+
"@uniac/cli-darwin-arm64": "0.2.2",
|
|
27
|
+
"@uniac/cli-darwin-x64": "0.2.2",
|
|
28
|
+
"@uniac/cli-linux-arm64": "0.2.2",
|
|
29
|
+
"@uniac/cli-linux-x64": "0.2.2"
|
|
33
30
|
}
|
|
34
31
|
}
|
package/targets.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// The npm distribution's platform matrix — the one statement of which
|
|
2
|
+
// prebuilt-binary packages exist. Consumed at runtime by bin/uniac.js
|
|
3
|
+
// (to resolve the matching package) and at release time by
|
|
4
|
+
// scripts/package-platform-npm.js (which fails the release if this
|
|
5
|
+
// table and GoReleaser's build matrix disagree, so the two change
|
|
6
|
+
// together deliberately).
|
|
7
|
+
//
|
|
8
|
+
// Key: `${process.platform}-${process.arch}` of the installing
|
|
9
|
+
// machine. Value: the GoReleaser build (goos/goarch) that serves it.
|
|
10
|
+
export const TARGETS = {
|
|
11
|
+
"darwin-arm64": { goos: "darwin", goarch: "arm64" },
|
|
12
|
+
"darwin-x64": { goos: "darwin", goarch: "amd64" },
|
|
13
|
+
"linux-arm64": { goos: "linux", goarch: "arm64" },
|
|
14
|
+
"linux-x64": { goos: "linux", goarch: "amd64" },
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// One binary package per target, version-locked to @uniac/cli.
|
|
18
|
+
export function packageName(key) {
|
|
19
|
+
return `@uniac/cli-${key}`;
|
|
20
|
+
}
|