nw-builder 4.0.3 → 4.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/cli.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nw-builder",
3
- "version": "4.0.3",
3
+ "version": "4.0.4",
4
4
  "description": "Build NW.js desktop applications for MacOS, Windows and Linux.",
5
5
  "keywords": [
6
6
  "NW.js",
@@ -29,9 +29,9 @@
29
29
  "format": "prettier --write \"./**/*.{js,cjs,md}\"",
30
30
  "lint": "eslint ./src",
31
31
  "docs": "jsdoc ./src/nwbuild.js -d docs",
32
- "test:cli": "cd ./test/e2e && nwbuild ./nwapp --mode=build --version=0.70.1 --flavour=normal --platform=win --arch=x64 --outDir=./build",
33
32
  "test:unit": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
34
33
  "test:e2e": "cd ./test/e2e && node bld.js",
34
+ "demo:cli": "cd ./test/e2e && nwbuild ./nwapp/**/* ./node_modules/**/* --mode=build --version=0.70.1 --flavour=normal --platform=win --arch=x64 --outDir=./build",
35
35
  "demo:nix": "cd ./test/e2e && node nix.js",
36
36
  "demo:osx": "cd ./test/e2e && node osx.js",
37
37
  "demo:win": "cd ./test/e2e && node win.js",
package/src/cli.js CHANGED
@@ -3,7 +3,7 @@
3
3
  import yargs from "yargs/yargs";
4
4
  import { hideBin } from "yargs/helpers";
5
5
 
6
- import { nwbuild } from "./nwbuild.js";
6
+ import nwbuild from "./nwbuild.js";
7
7
 
8
8
  const cli = yargs(hideBin(process.argv))
9
9
  .version(false)
@@ -36,5 +36,5 @@ const cli = yargs(hideBin(process.argv))
36
36
 
37
37
  nwbuild({
38
38
  ...cli,
39
- srcDir: cli._[0],
40
- });
39
+ srcDir: cli._.join(" "),
40
+ });