@neon-rs/cli 0.0.167 → 0.0.169
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 +142 -38
- package/package.json +8 -8
package/index.js
CHANGED
|
@@ -10245,7 +10245,7 @@ function wrappy (fn, cb) {
|
|
|
10245
10245
|
|
|
10246
10246
|
/***/ }),
|
|
10247
10247
|
|
|
10248
|
-
/***/
|
|
10248
|
+
/***/ 6153:
|
|
10249
10249
|
/***/ ((__unused_webpack_module, __webpack_exports__, __nccwpck_require__) => {
|
|
10250
10250
|
|
|
10251
10251
|
|
|
@@ -12029,8 +12029,8 @@ var temp = __nccwpck_require__(591);
|
|
|
12029
12029
|
const rust_namespaceObject = JSON.parse('{"aarch64-apple-darwin":"darwin-arm64","x86_64-apple-darwin":"darwin-x64","aarch64-apple-ios":"ios-arm64","x86_64-apple-ios":"ios-x64","aarch64-linux-android":"android-arm64","armv7-linux-androideabi":"android-arm-eabi","i686-linux-android":"android-ia32","x86_64-linux-android":"android-x64","aarch64-pc-windows-msvc":"win32-arm64-msvc","i686-pc-windows-gnu":"win32-ia32-gnu","i686-pc-windows-msvc":"win32-ia32-msvc","x86_64-pc-windows-gnu":"win32-x64-gnu","x86_64-pc-windows-msvc":"win32-x64-msvc","aarch64-unknown-linux-gnu":"linux-arm64-gnu","aarch64-unknown-linux-musl":"linux-arm64-musl","arm-unknown-linux-gnueabihf":"linux-arm-gnueabihf","arm-unknown-linux-musleabihf":"linux-arm-musleabihf","armv7-unknown-linux-gnueabihf":"linux-arm-gnueabihf","armv7-unknown-linux-musleabihf":"linux-arm-musleabihf","i686-unknown-linux-gnu":"linux-ia32-gnu","i686-unknown-linux-musl":"linux-ia32-musl","mips-unknown-linux-gnu":"linux-mips-gnu","mips-unknown-linux-musl":"linux-mips-musl","mips64-unknown-linux-gnuabi64":"linux-mips64-gnuabi64","mips64-unknown-linux-muslabi64":"linux-mips64-muslabi64","mips64el-unknown-linux-gnuabi64":"linux-mips64el-gnuabi64","mips64el-unknown-linux-muslabi64":"linux-mips64el-muslabi64","mipsel-unknown-linux-gnu":"linux-mipsel-gnu","mipsel-unknown-linux-musl":"linux-mipsel-musl","powerpc-unknown-linux-gnu":"linux-powerpc-gnu","powerpc64-unknown-linux-gnu":"linux-powerpc64-gnu","powerpc64le-unknown-linux-gnu":"linux-powerpc64le-gnu","riscv64gc-unknown-linux-gnu":"linux-riscv64gc-gnu","s390x-unknown-linux-gnu":"linux-s390x-gnu","sparc64-unknown-linux-gnu":"linux-sparc64-gnu","x86_64-unknown-linux-gnu":"linux-x64-gnu","x86_64-unknown-linux-gnux32":"linux-x64-gnux32","x86_64-unknown-linux-musl":"linux-x64-musl","i686-unknown-freebsd":"freebsd-ia32","x86_64-unknown-freebsd":"freebsd-x64"}');
|
|
12030
12030
|
;// CONCATENATED MODULE: ./data/node.json
|
|
12031
12031
|
const node_namespaceObject = JSON.parse('{"darwin-arm64":{"platform":"darwin","arch":"arm64","abi":null,"llvm":["aarch64-apple-darwin"]},"darwin-x64":{"platform":"darwin","arch":"x64","abi":null,"llvm":["x86_64-apple-darwin"]},"ios-arm64":{"platform":"ios","arch":"arm64","abi":null,"llvm":["aarch64-apple-ios"]},"ios-x64":{"platform":"ios","arch":"x64","abi":null,"llvm":["x86_64-apple-ios"]},"android-arm64":{"platform":"android","arch":"arm64","abi":null,"llvm":["aarch64-linux-android"]},"android-arm-eabi":{"platform":"android","arch":"arm","abi":"eabi","llvm":["armv7-linux-androideabi"]},"android-ia32":{"platform":"android","arch":"ia32","abi":null,"llvm":["i686-linux-android"]},"android-x64":{"platform":"android","arch":"x64","abi":null,"llvm":["x86_64-linux-android"]},"win32-arm64-msvc":{"platform":"win32","arch":"arm64","abi":"msvc","llvm":["aarch64-pc-windows-msvc"]},"win32-ia32-gnu":{"platform":"win32","arch":"ia32","abi":"gnu","llvm":["i686-pc-windows-gnu"]},"win32-ia32-msvc":{"platform":"win32","arch":"ia32","abi":"msvc","llvm":["i686-pc-windows-msvc"]},"win32-x64-gnu":{"platform":"win32","arch":"x64","abi":"gnu","llvm":["x86_64-pc-windows-gnu"]},"win32-x64-msvc":{"platform":"win32","arch":"x64","abi":"msvc","llvm":["x86_64-pc-windows-msvc"]},"linux-arm64-gnu":{"platform":"linux","arch":"arm64","abi":"gnu","llvm":["aarch64-unknown-linux-gnu"]},"linux-arm64-musl":{"platform":"linux","arch":"arm64","abi":"musl","llvm":["aarch64-unknown-linux-musl"]},"linux-arm-gnueabihf":{"platform":"linux","arch":"arm","abi":"gnueabihf","llvm":["arm-unknown-linux-gnueabihf","armv7-unknown-linux-gnueabihf"]},"linux-arm-musleabihf":{"platform":"linux","arch":"arm","abi":"musleabihf","llvm":["arm-unknown-linux-musleabihf","armv7-unknown-linux-musleabihf"]},"linux-ia32-gnu":{"platform":"linux","arch":"ia32","abi":"gnu","llvm":["i686-unknown-linux-gnu"]},"linux-ia32-musl":{"platform":"linux","arch":"ia32","abi":"musl","llvm":["i686-unknown-linux-musl"]},"linux-mips-gnu":{"platform":"linux","arch":"mips","abi":"gnu","llvm":["mips-unknown-linux-gnu"]},"linux-mips-musl":{"platform":"linux","arch":"mips","abi":"musl","llvm":["mips-unknown-linux-musl"]},"linux-mips64-gnuabi64":{"platform":"linux","arch":"mips64","abi":"gnuabi64","llvm":["mips64-unknown-linux-gnuabi64"]},"linux-mips64-muslabi64":{"platform":"linux","arch":"mips64","abi":"muslabi64","llvm":["mips64-unknown-linux-muslabi64"]},"linux-mips64el-gnuabi64":{"platform":"linux","arch":"mips64el","abi":"gnuabi64","llvm":["mips64el-unknown-linux-gnuabi64"]},"linux-mips64el-muslabi64":{"platform":"linux","arch":"mips64el","abi":"muslabi64","llvm":["mips64el-unknown-linux-muslabi64"]},"linux-mipsel-gnu":{"platform":"linux","arch":"mipsel","abi":"gnu","llvm":["mipsel-unknown-linux-gnu"]},"linux-mipsel-musl":{"platform":"linux","arch":"mipsel","abi":"musl","llvm":["mipsel-unknown-linux-musl"]},"linux-powerpc-gnu":{"platform":"linux","arch":"powerpc","abi":"gnu","llvm":["powerpc-unknown-linux-gnu"]},"linux-powerpc64-gnu":{"platform":"linux","arch":"powerpc64","abi":"gnu","llvm":["powerpc64-unknown-linux-gnu"]},"linux-powerpc64le-gnu":{"platform":"linux","arch":"powerpc64le","abi":"gnu","llvm":["powerpc64le-unknown-linux-gnu"]},"linux-riscv64gc-gnu":{"platform":"linux","arch":"riscv64gc","abi":"gnu","llvm":["riscv64gc-unknown-linux-gnu"]},"linux-s390x-gnu":{"platform":"linux","arch":"s390x","abi":"gnu","llvm":["s390x-unknown-linux-gnu"]},"linux-sparc64-gnu":{"platform":"linux","arch":"sparc64","abi":"gnu","llvm":["sparc64-unknown-linux-gnu"]},"linux-x64-gnu":{"platform":"linux","arch":"x64","abi":"gnu","llvm":["x86_64-unknown-linux-gnu"]},"linux-x64-gnux32":{"platform":"linux","arch":"x64","abi":"gnux32","llvm":["x86_64-unknown-linux-gnux32"]},"linux-x64-musl":{"platform":"linux","arch":"x64","abi":"musl","llvm":["x86_64-unknown-linux-musl"]},"freebsd-ia32":{"platform":"freebsd","arch":"ia32","abi":null,"llvm":["i686-unknown-freebsd"]},"freebsd-x64":{"platform":"freebsd","arch":"x64","abi":null,"llvm":["x86_64-unknown-freebsd"]}}');
|
|
12032
|
-
;// CONCATENATED MODULE: ./data/
|
|
12033
|
-
const
|
|
12032
|
+
;// CONCATENATED MODULE: ./data/preset.json
|
|
12033
|
+
const preset_namespaceObject = JSON.parse('{"windows":{"win32-x64-msvc":"x86_64-pc-windows-msvc"},"macos":{"darwin-x64":"x86_64-apple-darwin","darwin-arm64":"aarch64-apple-darwin"},"linux":{"linux-x64-gnu":"x86_64-unknown-linux-gnu","linux-arm-gnueabihf":"armv7-unknown-linux-gnueabihf"},"desktop":{"win32-x64-msvc":"x86_64-pc-windows-msvc","darwin-x64":"x86_64-apple-darwin","darwin-arm64":"aarch64-apple-darwin","linux-x64-gnu":"x86_64-unknown-linux-gnu"},"mobile":{"win32-arm64-msvc":"aarch64-pc-windows-msvc","linux-arm-gnueabihf":"armv7-unknown-linux-gnueabihf","android-arm-eabi":"armv7-linux-androideabi"},"common":["desktop"],"extended":["desktop","mobile"]}');
|
|
12034
12034
|
;// CONCATENATED MODULE: ./src/target.ts
|
|
12035
12035
|
|
|
12036
12036
|
|
|
@@ -12052,16 +12052,16 @@ function assertIsNodeTarget(x) {
|
|
|
12052
12052
|
throw new RangeError(`invalid Node target: ${x}`);
|
|
12053
12053
|
}
|
|
12054
12054
|
}
|
|
12055
|
-
function
|
|
12056
|
-
return (typeof x === 'string') && (x in
|
|
12055
|
+
function isTargetPreset(x) {
|
|
12056
|
+
return (typeof x === 'string') && (x in preset_namespaceObject);
|
|
12057
12057
|
}
|
|
12058
|
-
function
|
|
12059
|
-
if (!
|
|
12060
|
-
throw new RangeError(`invalid target family
|
|
12058
|
+
function assertIsTargetPreset(x) {
|
|
12059
|
+
if (!isTargetPreset(x)) {
|
|
12060
|
+
throw new RangeError(`invalid target family preset: ${x}`);
|
|
12061
12061
|
}
|
|
12062
12062
|
}
|
|
12063
|
-
function
|
|
12064
|
-
return
|
|
12063
|
+
function lookupTargetPreset(key) {
|
|
12064
|
+
return preset_namespaceObject[key];
|
|
12065
12065
|
}
|
|
12066
12066
|
function merge(maps) {
|
|
12067
12067
|
const merged = Object.create(null);
|
|
@@ -12070,9 +12070,12 @@ function merge(maps) {
|
|
|
12070
12070
|
}
|
|
12071
12071
|
return merged;
|
|
12072
12072
|
}
|
|
12073
|
+
function expandTargetPreset(preset) {
|
|
12074
|
+
return expandTargetFamily(lookupTargetPreset(preset));
|
|
12075
|
+
}
|
|
12073
12076
|
function expandTargetFamily(family) {
|
|
12074
|
-
return
|
|
12075
|
-
?
|
|
12077
|
+
return isTargetPreset(family)
|
|
12078
|
+
? expandTargetPreset(family)
|
|
12076
12079
|
: Array.isArray(family)
|
|
12077
12080
|
? merge(family.map(expandTargetFamily))
|
|
12078
12081
|
: family;
|
|
@@ -12175,6 +12178,19 @@ function assertIsTargetMap(json, path) {
|
|
|
12175
12178
|
}
|
|
12176
12179
|
}
|
|
12177
12180
|
}
|
|
12181
|
+
function assertIsTargetFamily(json, path) {
|
|
12182
|
+
if (typeof json === 'string') {
|
|
12183
|
+
assertIsTargetPreset(json);
|
|
12184
|
+
return;
|
|
12185
|
+
}
|
|
12186
|
+
if (Array.isArray(json)) {
|
|
12187
|
+
for (const elt of json) {
|
|
12188
|
+
assertIsTargetPreset(elt);
|
|
12189
|
+
}
|
|
12190
|
+
return;
|
|
12191
|
+
}
|
|
12192
|
+
assertIsTargetMap(json, path);
|
|
12193
|
+
}
|
|
12178
12194
|
function assertIsBinaryV1(json) {
|
|
12179
12195
|
assertHasProps(['binary'], json, "neon");
|
|
12180
12196
|
const binary = json.binary;
|
|
@@ -12218,7 +12234,7 @@ function assertIsSourceCfg(json) {
|
|
|
12218
12234
|
if (typeof json.org !== 'string') {
|
|
12219
12235
|
throw new TypeError(`expected "neon.org" to be a string, found ${json.org}`);
|
|
12220
12236
|
}
|
|
12221
|
-
|
|
12237
|
+
assertIsTargetFamily(json.targets, "neon.targets");
|
|
12222
12238
|
}
|
|
12223
12239
|
function assertIsPreamble(json) {
|
|
12224
12240
|
if (!json || typeof json !== 'object') {
|
|
@@ -12355,11 +12371,13 @@ function normalizeSourceCfg(json) {
|
|
|
12355
12371
|
}
|
|
12356
12372
|
class SourceManifest extends AbstractManifest {
|
|
12357
12373
|
_sourceJSON;
|
|
12374
|
+
_expandedTargets;
|
|
12358
12375
|
constructor(json) {
|
|
12359
12376
|
super(json);
|
|
12360
12377
|
this._upgraded = normalizeSourceCfg(this._json);
|
|
12361
12378
|
assertHasSourceCfg(this._json);
|
|
12362
12379
|
this._sourceJSON = this._json;
|
|
12380
|
+
this._expandedTargets = expandTargetFamily(this._sourceJSON.neon.targets);
|
|
12363
12381
|
}
|
|
12364
12382
|
static async load(dir) {
|
|
12365
12383
|
return new SourceManifest(await readManifest(dir));
|
|
@@ -12369,18 +12387,21 @@ class SourceManifest extends AbstractManifest {
|
|
|
12369
12387
|
}
|
|
12370
12388
|
packageNames() {
|
|
12371
12389
|
const cfg = this.cfg();
|
|
12372
|
-
return Object.keys(
|
|
12390
|
+
return Object.keys(this._expandedTargets).map(key => `${cfg.org}/${key}`);
|
|
12373
12391
|
}
|
|
12374
12392
|
packageFor(target) {
|
|
12375
12393
|
const cfg = this.cfg();
|
|
12376
|
-
for (const key in
|
|
12377
|
-
const value =
|
|
12394
|
+
for (const key in this._expandedTargets) {
|
|
12395
|
+
const value = this._expandedTargets[key];
|
|
12378
12396
|
if (value === target) {
|
|
12379
12397
|
return `${cfg.org}/${key}`;
|
|
12380
12398
|
}
|
|
12381
12399
|
}
|
|
12382
12400
|
return undefined;
|
|
12383
12401
|
}
|
|
12402
|
+
rustTargetFor(node) {
|
|
12403
|
+
return this._expandedTargets[node];
|
|
12404
|
+
}
|
|
12384
12405
|
manifestFor(target) {
|
|
12385
12406
|
const targetInfo = getTargetDescriptor(target);
|
|
12386
12407
|
const name = this.packageFor(target);
|
|
@@ -12416,11 +12437,10 @@ class SourceManifest extends AbstractManifest {
|
|
|
12416
12437
|
}
|
|
12417
12438
|
async addTargetPair(pair) {
|
|
12418
12439
|
const { node, rust } = pair;
|
|
12419
|
-
|
|
12420
|
-
if (targets[node] === rust) {
|
|
12440
|
+
if (this._expandedTargets[node] === rust) {
|
|
12421
12441
|
return null;
|
|
12422
12442
|
}
|
|
12423
|
-
|
|
12443
|
+
this._expandedTargets[node] = rust;
|
|
12424
12444
|
await this.save();
|
|
12425
12445
|
return pair;
|
|
12426
12446
|
}
|
|
@@ -12434,22 +12454,43 @@ class SourceManifest extends AbstractManifest {
|
|
|
12434
12454
|
async addRustTarget(target) {
|
|
12435
12455
|
return await this.addTargetPair({ node: rust2Node(target), rust: target });
|
|
12436
12456
|
}
|
|
12437
|
-
|
|
12438
|
-
|
|
12439
|
-
let modified = [];
|
|
12457
|
+
filterNewTargets(family) {
|
|
12458
|
+
let newTargets = [];
|
|
12440
12459
|
for (const [key, value] of Object.entries(family)) {
|
|
12441
12460
|
const node = key;
|
|
12442
12461
|
const rust = value;
|
|
12443
|
-
if (
|
|
12462
|
+
if (this._expandedTargets[node] === rust) {
|
|
12444
12463
|
continue;
|
|
12445
12464
|
}
|
|
12446
|
-
|
|
12447
|
-
modified.push({ node, rust });
|
|
12465
|
+
newTargets.push({ node, rust });
|
|
12448
12466
|
}
|
|
12449
|
-
|
|
12450
|
-
|
|
12467
|
+
return newTargets;
|
|
12468
|
+
}
|
|
12469
|
+
async addTargets(family, opts = {}) {
|
|
12470
|
+
let newTargets = this.filterNewTargets(family);
|
|
12471
|
+
if (!newTargets.length) {
|
|
12472
|
+
return [];
|
|
12473
|
+
}
|
|
12474
|
+
for (const { node, rust } of newTargets) {
|
|
12475
|
+
if (opts.targetsSrc) {
|
|
12476
|
+
opts.targetsSrc[node] = rust;
|
|
12477
|
+
}
|
|
12478
|
+
this._expandedTargets[node] = rust;
|
|
12479
|
+
}
|
|
12480
|
+
await this.save();
|
|
12481
|
+
return newTargets;
|
|
12482
|
+
}
|
|
12483
|
+
async addTargetPreset(preset) {
|
|
12484
|
+
const targetsSrc = this.cfg().targets;
|
|
12485
|
+
if (typeof targetsSrc === 'string') {
|
|
12486
|
+
this.cfg().targets = [targetsSrc, preset];
|
|
12487
|
+
return this.addTargets(expandTargetFamily(preset));
|
|
12488
|
+
}
|
|
12489
|
+
if (Array.isArray(targetsSrc)) {
|
|
12490
|
+
targetsSrc.push(preset);
|
|
12491
|
+
return this.addTargets(expandTargetFamily(preset));
|
|
12451
12492
|
}
|
|
12452
|
-
return
|
|
12493
|
+
return this.addTargets(expandTargetFamily(preset), { targetsSrc });
|
|
12453
12494
|
}
|
|
12454
12495
|
async updateTargets(log, bundle) {
|
|
12455
12496
|
const packages = this.packageNames();
|
|
@@ -12752,8 +12793,8 @@ class AddTarget {
|
|
|
12752
12793
|
this.log(`adding Node target ${this._target}`);
|
|
12753
12794
|
return optionArray(await sourceManifest.addNodeTarget(this._target));
|
|
12754
12795
|
}
|
|
12755
|
-
else if (
|
|
12756
|
-
return sourceManifest.
|
|
12796
|
+
else if (isTargetPreset(this._target)) {
|
|
12797
|
+
return sourceManifest.addTargetPreset(this._target);
|
|
12757
12798
|
}
|
|
12758
12799
|
else {
|
|
12759
12800
|
throw new Error(`unrecognized target ${this._target}`);
|
|
@@ -12849,7 +12890,7 @@ const rust_target_OPTIONS = [
|
|
|
12849
12890
|
{ name: 'verbose', alias: 'v', type: Boolean, defaultValue: false }
|
|
12850
12891
|
];
|
|
12851
12892
|
class RustTarget {
|
|
12852
|
-
static summary() { return '
|
|
12893
|
+
static summary() { return 'Display the Rust target triple for a given build target.'; }
|
|
12853
12894
|
static syntax() { return 'neon rust-target <target> | (-p <plat> -a <arch> [--abi <abi>])'; }
|
|
12854
12895
|
static options() {
|
|
12855
12896
|
return [
|
|
@@ -12909,8 +12950,7 @@ class RustTarget {
|
|
|
12909
12950
|
this.log(`reading package.json`);
|
|
12910
12951
|
const sourceManifest = await SourceManifest.load();
|
|
12911
12952
|
this.log(`manifest: ${sourceManifest.stringify()}`);
|
|
12912
|
-
const
|
|
12913
|
-
const rust = targets[this._target];
|
|
12953
|
+
const rust = sourceManifest.rustTargetFor(this._target);
|
|
12914
12954
|
if (!rust) {
|
|
12915
12955
|
throw new Error(`no Rust target found for ${this._target}`);
|
|
12916
12956
|
}
|
|
@@ -12918,6 +12958,55 @@ class RustTarget {
|
|
|
12918
12958
|
}
|
|
12919
12959
|
}
|
|
12920
12960
|
|
|
12961
|
+
;// CONCATENATED MODULE: ./src/commands/preset.ts
|
|
12962
|
+
|
|
12963
|
+
|
|
12964
|
+
const preset_OPTIONS = [
|
|
12965
|
+
{ name: 'pretty', alias: 'p', type: Boolean, defaultValue: false },
|
|
12966
|
+
{ name: 'verbose', alias: 'v', type: Boolean, defaultValue: false }
|
|
12967
|
+
];
|
|
12968
|
+
class Preset {
|
|
12969
|
+
static summary() { return 'Display the target JSON data for a given preset.'; }
|
|
12970
|
+
static syntax() { return 'neon preset [-p] [-v] <preset>'; }
|
|
12971
|
+
static options() {
|
|
12972
|
+
return [
|
|
12973
|
+
{ name: '<preset>', summary: 'The target family preset to look up.' },
|
|
12974
|
+
{ name: '-p, --pretty', summary: 'Pretty-print the JSON output. (Default: false)' },
|
|
12975
|
+
{ name: '-v, --verbose', summary: 'Enable verbose logging. (Default: false)' }
|
|
12976
|
+
];
|
|
12977
|
+
}
|
|
12978
|
+
static seeAlso() { }
|
|
12979
|
+
static extraSection() { }
|
|
12980
|
+
_pretty;
|
|
12981
|
+
_verbose;
|
|
12982
|
+
_preset;
|
|
12983
|
+
constructor(argv) {
|
|
12984
|
+
const options = dist_default()(preset_OPTIONS, { argv, partial: true });
|
|
12985
|
+
this._pretty = options.pretty || false;
|
|
12986
|
+
this._verbose = !!options.verbose;
|
|
12987
|
+
if (!options._unknown || options._unknown.length === 0) {
|
|
12988
|
+
throw new Error("Missing argument, expected <preset>");
|
|
12989
|
+
}
|
|
12990
|
+
if (options._unknown.length > 1) {
|
|
12991
|
+
throw new Error(`Unexpected argument ${options._unknown[1]}`);
|
|
12992
|
+
}
|
|
12993
|
+
assertIsTargetPreset(options._unknown[0]);
|
|
12994
|
+
this._preset = options._unknown[0];
|
|
12995
|
+
}
|
|
12996
|
+
log(msg) {
|
|
12997
|
+
if (this._verbose) {
|
|
12998
|
+
console.error("[neon preset] " + msg);
|
|
12999
|
+
}
|
|
13000
|
+
}
|
|
13001
|
+
async run() {
|
|
13002
|
+
const map = expandTargetPreset(this._preset);
|
|
13003
|
+
const output = this._pretty
|
|
13004
|
+
? JSON.stringify(map, null, 2)
|
|
13005
|
+
: JSON.stringify(map);
|
|
13006
|
+
console.log(output);
|
|
13007
|
+
}
|
|
13008
|
+
}
|
|
13009
|
+
|
|
12921
13010
|
// EXTERNAL MODULE: ./src/print.ts + 26 modules
|
|
12922
13011
|
var print = __nccwpck_require__(9050);
|
|
12923
13012
|
;// CONCATENATED MODULE: ./src/commands/help.ts
|
|
@@ -12958,6 +13047,7 @@ class Help {
|
|
|
12958
13047
|
|
|
12959
13048
|
|
|
12960
13049
|
|
|
13050
|
+
|
|
12961
13051
|
var CommandName;
|
|
12962
13052
|
(function (CommandName) {
|
|
12963
13053
|
CommandName["Help"] = "help";
|
|
@@ -12969,6 +13059,7 @@ var CommandName;
|
|
|
12969
13059
|
CommandName["InstallBuilds"] = "install-builds";
|
|
12970
13060
|
CommandName["UpdateTargets"] = "update-targets";
|
|
12971
13061
|
CommandName["RustTarget"] = "rust-target";
|
|
13062
|
+
CommandName["Preset"] = "preset";
|
|
12972
13063
|
})(CommandName || (CommandName = {}));
|
|
12973
13064
|
;
|
|
12974
13065
|
function isCommandName(s) {
|
|
@@ -12990,7 +13081,8 @@ const COMMANDS = {
|
|
|
12990
13081
|
[CommandName.AddTarget]: AddTarget,
|
|
12991
13082
|
[CommandName.InstallBuilds]: UpdateTargets,
|
|
12992
13083
|
[CommandName.UpdateTargets]: UpdateTargets,
|
|
12993
|
-
[CommandName.RustTarget]: RustTarget
|
|
13084
|
+
[CommandName.RustTarget]: RustTarget,
|
|
13085
|
+
[CommandName.Preset]: Preset
|
|
12994
13086
|
};
|
|
12995
13087
|
function commandFor(name) {
|
|
12996
13088
|
return COMMANDS[name];
|
|
@@ -13003,7 +13095,8 @@ function summaries() {
|
|
|
13003
13095
|
{ name: CommandName.Tarball, summary: Tarball.summary() },
|
|
13004
13096
|
{ name: CommandName.AddTarget, summary: AddTarget.summary() },
|
|
13005
13097
|
{ name: CommandName.UpdateTargets, summary: UpdateTargets.summary() },
|
|
13006
|
-
{ name: CommandName.RustTarget, summary: RustTarget.summary() }
|
|
13098
|
+
{ name: CommandName.RustTarget, summary: RustTarget.summary() },
|
|
13099
|
+
{ name: CommandName.Preset, summary: Preset.summary() }
|
|
13007
13100
|
];
|
|
13008
13101
|
}
|
|
13009
13102
|
|
|
@@ -13017,7 +13110,7 @@ __nccwpck_require__.a(module, async (__webpack_handle_async_dependencies__, __we
|
|
|
13017
13110
|
/* harmony import */ var command_line_commands__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(5046);
|
|
13018
13111
|
/* harmony import */ var command_line_commands__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(command_line_commands__WEBPACK_IMPORTED_MODULE_0__);
|
|
13019
13112
|
/* harmony import */ var _print_js__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__(9050);
|
|
13020
|
-
/* harmony import */ var _command_js__WEBPACK_IMPORTED_MODULE_2__ = __nccwpck_require__(
|
|
13113
|
+
/* harmony import */ var _command_js__WEBPACK_IMPORTED_MODULE_2__ = __nccwpck_require__(6153);
|
|
13021
13114
|
/* harmony import */ var node_module__WEBPACK_IMPORTED_MODULE_3__ = __nccwpck_require__(2033);
|
|
13022
13115
|
/* harmony import */ var node_module__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__nccwpck_require__.n(node_module__WEBPACK_IMPORTED_MODULE_3__);
|
|
13023
13116
|
|
|
@@ -16040,8 +16133,8 @@ const chalkStderr = createChalk({level: stderrColor ? stderrColor.level : 0});
|
|
|
16040
16133
|
|
|
16041
16134
|
/* harmony default export */ const chalk_source = (chalk);
|
|
16042
16135
|
|
|
16043
|
-
// EXTERNAL MODULE: ./src/command.ts +
|
|
16044
|
-
var command = __nccwpck_require__(
|
|
16136
|
+
// EXTERNAL MODULE: ./src/command.ts + 40 modules
|
|
16137
|
+
var command = __nccwpck_require__(6153);
|
|
16045
16138
|
;// CONCATENATED MODULE: ./src/print.ts
|
|
16046
16139
|
|
|
16047
16140
|
|
|
@@ -16447,6 +16540,17 @@ module.exports = {
|
|
|
16447
16540
|
/***/ 7037:
|
|
16448
16541
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
16449
16542
|
|
|
16543
|
+
// module.exports = require('@neon-rs/load').__UNSTABLE_proxy({
|
|
16544
|
+
// 'darwin-x64': () => require('@cargo-messages/darwin-x64'),
|
|
16545
|
+
// 'win32-x64-msvc': () => require('@cargo-messages/win32-x64-msvc'),
|
|
16546
|
+
// 'aarch64-pc-windows-msvc': () => require('@cargo-messages/win32-arm64-msvc'),
|
|
16547
|
+
// 'darwin-x64': () => require('@cargo-messages/darwin-x64'),
|
|
16548
|
+
// 'darwin-arm64': () => require('@cargo-messages/darwin-arm64'),
|
|
16549
|
+
// 'linux-x64-gnu': () => require('@cargo-messages/linux-x64-gnu'),
|
|
16550
|
+
// 'linux-arm-gnueabihf': () => require('@cargo-messages/linux-arm-gnueabihf'),
|
|
16551
|
+
// 'android-arm-eabi': () => require('@cargo-messages/android-arm-eabi')
|
|
16552
|
+
// });
|
|
16553
|
+
|
|
16450
16554
|
module.exports = (__nccwpck_require__(1869)/* .lazy */ .Vo)({
|
|
16451
16555
|
targets: {
|
|
16452
16556
|
'darwin-x64': () => __nccwpck_require__(2990),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neon-rs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.169",
|
|
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.
|
|
31
|
-
"@cargo-messages/darwin-arm64": "0.0.
|
|
32
|
-
"@cargo-messages/darwin-x64": "0.0.
|
|
33
|
-
"@cargo-messages/linux-arm-gnueabihf": "0.0.
|
|
34
|
-
"@cargo-messages/linux-x64-gnu": "0.0.
|
|
35
|
-
"@cargo-messages/win32-arm64-msvc": "0.0.
|
|
36
|
-
"@cargo-messages/win32-x64-msvc": "0.0.
|
|
30
|
+
"@cargo-messages/android-arm-eabi": "0.0.169",
|
|
31
|
+
"@cargo-messages/darwin-arm64": "0.0.169",
|
|
32
|
+
"@cargo-messages/darwin-x64": "0.0.169",
|
|
33
|
+
"@cargo-messages/linux-arm-gnueabihf": "0.0.169",
|
|
34
|
+
"@cargo-messages/linux-x64-gnu": "0.0.169",
|
|
35
|
+
"@cargo-messages/win32-arm64-msvc": "0.0.169",
|
|
36
|
+
"@cargo-messages/win32-x64-msvc": "0.0.169"
|
|
37
37
|
}
|
|
38
38
|
}
|