@simonklee/yoga 0.2.27 → 0.2.29

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
@@ -63,6 +63,12 @@ zig build
63
63
  # Build the native library (release)
64
64
  zig build -Doptimize=ReleaseFast
65
65
 
66
+ # Build native library and prepare dist placeholders (ReleaseFast, for bun --compile)
67
+ bun run build:native
68
+
69
+ # Build native library and placeholders (debug)
70
+ bun run build:native:dev
71
+
66
72
  # Build TypeScript to dist/
67
73
  bun run build
68
74
 
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.27",
3
+ "version": "0.2.29",
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",
@@ -28,7 +28,10 @@
28
28
  "scripts": {
29
29
  "build:zig": "zig build -Doptimize=ReleaseFast",
30
30
  "build:zig:dev": "zig build",
31
- "build:native": "zig build && bun run scripts/copy-native-to-dist.ts",
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",
34
+ "clean:native": "bun run scripts/clean-native.ts",
32
35
  "build": "tsc -p tsconfig.json",
33
36
  "prepublishOnly": "bun run build",
34
37
  "test": "bun test",