nw-builder 4.2.0 → 4.2.1

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 +1 -1
  2. package/src/nwbuild.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nw-builder",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "Build NW.js desktop applications for MacOS, Windows and Linux.",
5
5
  "keywords": [
6
6
  "NW.js",
package/src/nwbuild.js CHANGED
@@ -98,7 +98,7 @@ const nwbuild = async (options) => {
98
98
  options = await parse(options, manifest);
99
99
 
100
100
  if (options.mode !== "get") {
101
- files = await getFiles(options.srcDir);
101
+ files = options.glob ? await getFiles(options.srcDir) : options.srcDir;
102
102
  manifest = await getManifest(files, options.glob);
103
103
  if (typeof manifest?.nwbuild === "object") {
104
104
  options = manifest.nwbuild;