bvisor 0.0.2 → 0.0.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 +5 -4
- package/package.json +3 -4
package/README.md
CHANGED
|
@@ -6,11 +6,13 @@ Node.js bindings for bVisor. Linux only.
|
|
|
6
6
|
|
|
7
7
|
Requires: Zig 0.16+, Docker
|
|
8
8
|
|
|
9
|
+
From the repo root (next to build.zig), run:
|
|
10
|
+
|
|
9
11
|
```bash
|
|
10
|
-
|
|
11
|
-
npm run dev
|
|
12
|
+
zig build test-node
|
|
12
13
|
```
|
|
13
14
|
|
|
15
|
+
For a targeted test, from this directory, run:
|
|
14
16
|
```bash
|
|
15
17
|
# Install the latest published bvisor and run test.ts in a linux container
|
|
16
18
|
npm run test:published
|
|
@@ -22,6 +24,5 @@ Bump versions across all packages, then publish:
|
|
|
22
24
|
|
|
23
25
|
```bash
|
|
24
26
|
bun run version:patch
|
|
25
|
-
bun publish
|
|
27
|
+
bun run publish:all
|
|
26
28
|
```
|
|
27
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bvisor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -16,12 +16,11 @@
|
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
18
|
"build": "tsc",
|
|
19
|
+
"prebuild": "cd ../../.. && zig build",
|
|
19
20
|
"prepublishOnly": "npm run build",
|
|
20
|
-
"predev": "cd ../../.. && zig build",
|
|
21
|
-
"dev": "docker run --rm -v .:/app -w /app oven/bun:alpine sh -c 'bun install && bun test.ts'",
|
|
22
21
|
"test:published": "docker run --rm -v ./test.ts:/test.ts:ro oven/bun:alpine sh -c 'cd /tmp && echo {} > package.json && bun add bvisor && cp /test.ts . && bun test.ts'",
|
|
23
22
|
"version:patch": "npm version patch --workspaces --no-git-tag-version --force && npm version patch --no-git-tag-version --force",
|
|
24
|
-
"publish:all": "
|
|
23
|
+
"publish:all": "npm run prebuild && cd platforms/linux-arm64-musl && bun publish --access public && cd ../linux-arm64-gnu && bun publish --access public && cd ../linux-x64-musl && bun publish --access public && cd ../linux-x64-gnu && bun publish --access public && cd ../.. && bun publish --access public"
|
|
25
24
|
},
|
|
26
25
|
"workspaces": [
|
|
27
26
|
"platforms/*"
|