@hunghg255/napi-zig-cli 1.3.0 → 1.5.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hunghg255/napi-zig-cli",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "description": "Command line tool for napi-zig: scaffold, build, cross-compile and publish Node.js native addons written in Zig",
5
5
  "keywords": [
6
6
  "napi",
@@ -2,8 +2,9 @@ const std = @import("std");
2
2
  const napi = @import("napi");
3
3
 
4
4
  pub fn build(b: *std.Build) void {
5
- // -Ddynamic-host: resolve Node-API in the host process at load time
6
- // instead of importing it from `node.exe` (needed for Electron on Windows).
5
+ // -Ddynamic-host: resolve every Node-API function in the host process
6
+ // when the addon is loaded instead of binding them as imports (the
7
+ // setup tested with Electron).
7
8
  const dynamic_host = b.option(bool, "dynamic-host", "Bind Node-API at load time (Electron, renamed hosts)") orelse false;
8
9
 
9
10
  const addon = napi.addAddon(b, .{
@@ -21,7 +21,7 @@
21
21
  "test": "node --test"
22
22
  },
23
23
  "devDependencies": {
24
- "@hunghg255/napi-zig-cli": "^1.3.0"
24
+ "@hunghg255/napi-zig-cli": "^1.5.0"
25
25
  },
26
26
  "license": "MIT"
27
27
  }