@openvcs/sdk 0.2.16 → 0.2.17-nightly.20260406.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 +13 -0
- package/package.json +1 -4
- package/test/helpers.js +0 -21
package/README.md
CHANGED
|
@@ -216,6 +216,19 @@ npx openvcs init --help
|
|
|
216
216
|
Publishing is outside the SDK CLI. Use your normal npm workflow once `openvcs build`
|
|
217
217
|
has produced the runtime assets you want to ship.
|
|
218
218
|
|
|
219
|
+
CI release channels can publish prereleases to npm using dist-tags:
|
|
220
|
+
|
|
221
|
+
- `latest`: stable releases
|
|
222
|
+
- `beta`: builds from the `Beta` branch
|
|
223
|
+
- `nightly`: scheduled builds from `Dev` when there are changes since the last nightly
|
|
224
|
+
|
|
225
|
+
Examples:
|
|
226
|
+
|
|
227
|
+
```bash
|
|
228
|
+
npm install @openvcs/sdk@beta
|
|
229
|
+
npm install @openvcs/sdk@nightly
|
|
230
|
+
```
|
|
231
|
+
|
|
219
232
|
## License
|
|
220
233
|
|
|
221
234
|
Copyright © 2025-2026 OpenVCS Contributors. SPDX-License-Identifier: GPL-3.0-or-later
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openvcs/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.17-nightly.20260406.2",
|
|
4
4
|
"description": "OpenVCS SDK CLI for plugin scaffolding and runtime asset builds",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"homepage": "https://openvcs.app/",
|
|
@@ -42,9 +42,6 @@
|
|
|
42
42
|
"@types/node": "^25.3.3",
|
|
43
43
|
"typescript": "^5.8.2"
|
|
44
44
|
},
|
|
45
|
-
"dependencies": {
|
|
46
|
-
"tar": "^7.4.3"
|
|
47
|
-
},
|
|
48
45
|
"files": [
|
|
49
46
|
"src/",
|
|
50
47
|
"bin/",
|
package/test/helpers.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
const fs = require("node:fs");
|
|
2
2
|
const os = require("node:os");
|
|
3
3
|
const path = require("node:path");
|
|
4
|
-
const tar = require("tar");
|
|
5
4
|
|
|
6
5
|
function makeTempDir(prefix = "openvcs-sdk-test") {
|
|
7
6
|
return fs.mkdtempSync(path.join(os.tmpdir(), `${prefix}-`));
|
|
@@ -21,29 +20,9 @@ function writeText(filePath, text) {
|
|
|
21
20
|
fs.writeFileSync(filePath, text, "utf8");
|
|
22
21
|
}
|
|
23
22
|
|
|
24
|
-
async function readBundleEntries(bundlePath) {
|
|
25
|
-
const entries = new Map();
|
|
26
|
-
await tar.t({
|
|
27
|
-
file: bundlePath,
|
|
28
|
-
gzip: true,
|
|
29
|
-
onentry(entry) {
|
|
30
|
-
if (entry.type !== "File") {
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
const chunks = [];
|
|
34
|
-
entry.on("data", (chunk) => chunks.push(chunk));
|
|
35
|
-
entry.on("end", () => {
|
|
36
|
-
entries.set(entry.path, Buffer.concat(chunks));
|
|
37
|
-
});
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
return entries;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
23
|
module.exports = {
|
|
44
24
|
cleanupTempDir,
|
|
45
25
|
makeTempDir,
|
|
46
|
-
readBundleEntries,
|
|
47
26
|
writeJson,
|
|
48
27
|
writeText,
|
|
49
28
|
};
|