@neon-rs/cli 0.1.44 → 0.1.48
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/index.js +20 -17
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2,13 +2,6 @@
|
|
|
2
2
|
import { createRequire as __WEBPACK_EXTERNAL_createRequire } from "module";
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
|
-
/***/ 4079:
|
|
6
|
-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
7
|
-
|
|
8
|
-
module.exports = require(__nccwpck_require__.ab + "index.node")
|
|
9
|
-
|
|
10
|
-
/***/ }),
|
|
11
|
-
|
|
12
5
|
/***/ 8938:
|
|
13
6
|
/***/ ((__unused_webpack_module, exports) => {
|
|
14
7
|
|
|
@@ -40334,17 +40327,19 @@ function parseOutputFile(debug, out, platform) {
|
|
|
40334
40327
|
return manifest_lib/* LibraryManifest.load */.N.load().then(manifest => {
|
|
40335
40328
|
const path = manifest.getPlatformOutputPath(p);
|
|
40336
40329
|
if (!path) {
|
|
40337
|
-
throw new Error(`Platform $p not supported by this library.`);
|
|
40330
|
+
throw new Error(`Platform ${p} not supported by this library.`);
|
|
40338
40331
|
}
|
|
40339
|
-
return
|
|
40332
|
+
return {
|
|
40333
|
+
path, option: 'platform'
|
|
40334
|
+
};
|
|
40340
40335
|
});
|
|
40341
40336
|
}
|
|
40342
40337
|
else if (out || (!debug && NEON_DIST_OUTPUT)) {
|
|
40343
40338
|
const path = out || NEON_DIST_OUTPUT;
|
|
40344
|
-
return Promise.resolve(path);
|
|
40339
|
+
return Promise.resolve(path).then(path => ({ path, option: 'out' }));
|
|
40345
40340
|
}
|
|
40346
40341
|
else {
|
|
40347
|
-
return Promise.resolve('index.node');
|
|
40342
|
+
return Promise.resolve({ path: 'index.node', option: 'debug' });
|
|
40348
40343
|
}
|
|
40349
40344
|
}
|
|
40350
40345
|
class Dist {
|
|
@@ -40360,7 +40355,6 @@ class Dist {
|
|
|
40360
40355
|
summary: 'Mounted path of target directory in virtual filesystem. This is used to map paths from the log data back to their real paths, needed when tools such as cross-rs report messages from within a mounted Docker filesystem.'
|
|
40361
40356
|
},
|
|
40362
40357
|
{ name: '--manifest-path <path>', summary: 'Real path to Cargo.toml. (Default: cargo behavior)' },
|
|
40363
|
-
// { name: '-o, --out <dist>', summary: 'Copy output to file <dist>. (Default: $NEON_DIST_OUTPUT or index.node)' },
|
|
40364
40358
|
{ name: '-p, --platform <platform>', summary: 'Stage output file for caching to platform <platform>. (Default: $NEON_BUILD_PLATFORM or -d)' },
|
|
40365
40359
|
{ name: '-d, --debug', summary: 'Generate output file for debugging (./index.node)' },
|
|
40366
40360
|
{ name: '-v, --verbose', summary: 'Enable verbose logging. (Default: false)' }
|
|
@@ -40443,10 +40437,11 @@ class Dist {
|
|
|
40443
40437
|
}
|
|
40444
40438
|
async run() {
|
|
40445
40439
|
const file = this._file || (await this.findArtifact());
|
|
40446
|
-
const
|
|
40447
|
-
this.log(`output
|
|
40440
|
+
const { option, path } = await this._out;
|
|
40441
|
+
this.log(`output type = ${option}`);
|
|
40442
|
+
this.log(`output file = ${path}`);
|
|
40448
40443
|
// FIXME: needs all the logic of cargo-cp-artifact (timestamp check, M1 workaround, async, errors)
|
|
40449
|
-
await (0,promises_.copyFile)(file,
|
|
40444
|
+
await (0,promises_.copyFile)(file, path);
|
|
40450
40445
|
}
|
|
40451
40446
|
}
|
|
40452
40447
|
|
|
@@ -45745,6 +45740,14 @@ module.exports = eval("require")("@cargo-messages/android-arm-eabi");
|
|
|
45745
45740
|
module.exports = eval("require")("@cargo-messages/darwin-arm64");
|
|
45746
45741
|
|
|
45747
45742
|
|
|
45743
|
+
/***/ }),
|
|
45744
|
+
|
|
45745
|
+
/***/ 2990:
|
|
45746
|
+
/***/ ((module) => {
|
|
45747
|
+
|
|
45748
|
+
module.exports = eval("require")("@cargo-messages/darwin-x64");
|
|
45749
|
+
|
|
45750
|
+
|
|
45748
45751
|
/***/ }),
|
|
45749
45752
|
|
|
45750
45753
|
/***/ 5379:
|
|
@@ -60529,10 +60532,10 @@ module.exports = {
|
|
|
60529
60532
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
60530
60533
|
|
|
60531
60534
|
module.exports = (__nccwpck_require__(8372)/* .proxy */ .sj)({
|
|
60532
|
-
'darwin-x64': () => __nccwpck_require__(
|
|
60535
|
+
'darwin-x64': () => __nccwpck_require__(2990),
|
|
60533
60536
|
'win32-x64-msvc': () => __nccwpck_require__(1324),
|
|
60534
60537
|
'win32-arm64-msvc': () => __nccwpck_require__(7894),
|
|
60535
|
-
'darwin-x64': () => __nccwpck_require__(
|
|
60538
|
+
'darwin-x64': () => __nccwpck_require__(2990),
|
|
60536
60539
|
'darwin-arm64': () => __nccwpck_require__(4404),
|
|
60537
60540
|
'linux-x64-gnu': () => __nccwpck_require__(1316),
|
|
60538
60541
|
'linux-arm-gnueabihf': () => __nccwpck_require__(5379),
|