diff --git a/CHANGELOG-4.md b/CHANGELOG-4.md index 91f8025dc..3e1310941 100644 --- a/CHANGELOG-4.md +++ b/CHANGELOG-4.md @@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [4.0.10] - 2023-02-05 + +### Added + +- `options.cli` flag to prevent `node-glob` from globbing already globbed files and erroring out with a `package.json not found in srcDir file glob patterns` message. + +### Changed + +- Copy subdirectories of `options.srDir` in the correct location. + ## [4.0.9] - 2023-02-03 ### Added diff --git a/README.md b/README.md index 15051c4da..8ec754293 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ nwbuild({ CLI usage ```shell -nwbuild ./nwapp --mode=run --version=latest --flavor=sdk +nwbuild ./nwapp/**/* --mode=run --version=latest --flavor=sdk ``` package.json usage @@ -83,7 +83,7 @@ nwbuild({ CLI usage ```shell -nwbuild ./nwapp --mode=build --version=latest --flavor=normal --platform=linux --arch=x64 --outDir=./out +nwbuild ./nwapp/**/* --mode=build --version=latest --flavor=normal --platform=linux --arch=x64 --outDir=./out ``` package.json usage @@ -301,7 +301,7 @@ The final code should look like this. const { nwbuild } = require("nw-builder"); await nwbuild({ - srcDir: "./nwapp", + srcDir: "./nwapp/**/*", mode: "build", version: "latest", flavor: "normal", diff --git a/docs/global.html b/docs/global.html index edf0c8d29..4cd331a4b 100644 --- a/docs/global.html +++ b/docs/global.html @@ -592,7 +592,7 @@
Properties:
> @@ -641,7 +641,8 @@
Properties:
"./" String of glob patterns which correspond to NW app codeString of space separated glob patterns which correspond to + NW app code @@ -849,6 +850,23 @@
Properties:
>If true the outDir directory is zipped + + + cli + + + boolean + + + <optional>
+ + false + + If true the CLI is used to glob srcDir and parse other + options + @@ -858,7 +876,7 @@
Properties:
> @@ -879,8 +897,8 @@

Home

Documentation generated by - JSDoc 4.0.0 on Fri Jan 06 - 2023 17:15:41 GMT-0500 (Eastern Standard Time) + JSDoc 4.0.0 on Sun Feb 05 + 2023 17:00:04 GMT-0500 (Eastern Standard Time)