@neon-rs/cli 0.0.196 → 0.0.200

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.
Files changed (2) hide show
  1. package/index.js +6 -1
  2. package/package.json +8 -8
package/index.js CHANGED
@@ -47676,7 +47676,12 @@ __nccwpck_require__.a(module, async (__webpack_handle_async_dependencies__, __we
47676
47676
 
47677
47677
 
47678
47678
  const absoluteRequire = (0,node_module__WEBPACK_IMPORTED_MODULE_3__.createRequire)(import.meta.url);
47679
- // FIXME: do we really know this is necessary? if so, document it
47679
+ // When compiling with ncc, the default global `require` function does
47680
+ // not know how to find the binary `@cargo-messages/*` modules, but the
47681
+ // compiled result of `createRequire` does. So this replaces the global
47682
+ // `require` with that one. This way when the `cargo-messages` loader
47683
+ // module attempts to load the right binary module for the device, the
47684
+ // call to `require` succeeds.
47680
47685
  global['require'] = function (spec) {
47681
47686
  return absoluteRequire(spec);
47682
47687
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neon-rs/cli",
3
- "version": "0.0.196",
3
+ "version": "0.0.200",
4
4
  "description": "Command-line build tool for Neon modules.",
5
5
  "type": "module",
6
6
  "exports": "./index.js",
@@ -27,12 +27,12 @@
27
27
  },
28
28
  "homepage": "https://github.com/dherman/neon-rs#readme",
29
29
  "optionalDependencies": {
30
- "@cargo-messages/android-arm-eabi": "0.0.196",
31
- "@cargo-messages/darwin-arm64": "0.0.196",
32
- "@cargo-messages/darwin-x64": "0.0.196",
33
- "@cargo-messages/linux-arm-gnueabihf": "0.0.196",
34
- "@cargo-messages/linux-x64-gnu": "0.0.196",
35
- "@cargo-messages/win32-arm64-msvc": "0.0.196",
36
- "@cargo-messages/win32-x64-msvc": "0.0.196"
30
+ "@cargo-messages/android-arm-eabi": "0.0.197",
31
+ "@cargo-messages/darwin-arm64": "0.0.197",
32
+ "@cargo-messages/darwin-x64": "0.0.197",
33
+ "@cargo-messages/linux-arm-gnueabihf": "0.0.197",
34
+ "@cargo-messages/linux-x64-gnu": "0.0.197",
35
+ "@cargo-messages/win32-arm64-msvc": "0.0.197",
36
+ "@cargo-messages/win32-x64-msvc": "0.0.197"
37
37
  }
38
38
  }