@simonklee/yoga 0.2.28 → 0.2.30

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 CHANGED
@@ -60,20 +60,23 @@ Requirements: Bun and Zig 0.15.2+.
60
60
  # Build the native library (debug)
61
61
  zig build
62
62
 
63
+ # Build native library and dist placeholders (debug)
64
+ bun run build:native:dev
65
+
63
66
  # Build the native library (release)
64
67
  zig build -Doptimize=ReleaseFast
65
68
 
66
- # Build native library and prepare dist placeholders (ReleaseFast, for bun --compile)
69
+ # Build native library and dist placeholders (release, for bun --compile)
67
70
  bun run build:native
68
71
 
69
- # Build native library and placeholders (debug)
70
- bun run build:native:dev
71
-
72
72
  # Build TypeScript to dist/
73
+ bun run build:ts
74
+ # or
73
75
  bun run build
74
76
 
75
77
  # Tests
76
78
  zig build test
79
+ bun run build:native:dev # Prepare dist placeholders for bun test
77
80
  bun test
78
81
  ```
79
82
 
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simonklee/yoga",
3
- "version": "0.2.28",
3
+ "version": "0.2.30",
4
4
  "description": "A fast FFI wrapper for Facebook's Yoga layout engine for Bun, providing a yoga-layout compatible API",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -26,14 +26,13 @@
26
26
  "url": "https://github.com/simonklee/yoga"
27
27
  },
28
28
  "scripts": {
29
- "build:zig": "zig build -Doptimize=ReleaseFast",
30
- "build:zig:dev": "zig build",
31
- "build:zig:linux-arm64": "zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux-gnu",
32
- "build:native": "bun run build:zig && bun run scripts/copy-native-to-dist.ts",
33
- "build:native:dev": "bun run build:zig:dev && bun run scripts/copy-native-to-dist.ts",
29
+ "build": "bun run build:ts",
30
+ "build:ts": "tsc -p tsconfig.json",
31
+ "build:native": "zig build -Doptimize=ReleaseFast && bun run scripts/copy-native-to-dist.ts",
32
+ "build:native:dev": "zig build && bun run scripts/copy-native-to-dist.ts",
33
+ "build:native:linux-arm64": "zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux-gnu",
34
34
  "clean:native": "bun run scripts/clean-native.ts",
35
- "build": "tsc -p tsconfig.json",
36
- "prepublishOnly": "bun run build",
35
+ "prepublishOnly": "bun run build:ts",
37
36
  "test": "bun test",
38
37
  "bench": "bun run bench.ts"
39
38
  },