@neon-rs/cli 0.0.3 → 0.0.4
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.
|
@@ -7,6 +7,7 @@ import { execa } from 'execa';
|
|
|
7
7
|
const mktemp = temp.track().mkdir;
|
|
8
8
|
const OPTIONS = [
|
|
9
9
|
{ name: 'file', alias: 'f', type: String, defaultValue: 'index.node' },
|
|
10
|
+
{ name: 'target', alias: 't', type: String, defaultValue: null },
|
|
10
11
|
{ name: 'out-dir', alias: 'd', type: String, defaultValue: null }
|
|
11
12
|
];
|
|
12
13
|
const require = createRequire(import.meta.url);
|
|
@@ -22,11 +23,12 @@ function lookup(target) {
|
|
|
22
23
|
}
|
|
23
24
|
export default class PackBuild {
|
|
24
25
|
static summary() { return 'Create an npm tarball from a prebuild.'; }
|
|
25
|
-
static syntax() { return 'neon pack-build [-f <addon>] [-t <target>]'; }
|
|
26
|
+
static syntax() { return 'neon pack-build [-f <addon>] [-t <target>] [-d <dir>]'; }
|
|
26
27
|
static options() {
|
|
27
28
|
return [
|
|
28
29
|
{ name: '-f, --file <addon>', summary: 'Prebuilt .node file to pack. (Default: index.node)' },
|
|
29
|
-
{ name: '-t, --target <target>', summary: 'Rust target triple the addon was built for. (Default: rustc default host)' }
|
|
30
|
+
{ name: '-t, --target <target>', summary: 'Rust target triple the addon was built for. (Default: rustc default host)' },
|
|
31
|
+
{ name: '-d, --out-dir <path>', summary: 'Output directory, recursively created if needed. (Default: ./dist)' }
|
|
30
32
|
];
|
|
31
33
|
}
|
|
32
34
|
static seeAlso() {
|