Skip to content

Commit 40e64a1

Browse files
white list src dir and LICENSE for npm releases
1 parent d7e6d7d commit 40e64a1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
"default": "./src/nwbuild.js"
1919
},
2020
"type": "module",
21+
"files": [
22+
"./src",
23+
"./LICENSE"
24+
25+
],
2126
"homepage": "https://github.com/nwutils/nw-builder",
2227
"repository": {
2328
"type": "git",

src/util/parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const parse = async (options, pkg) => {
1515
options = { ...pkg.nwbuild };
1616
}
1717

18-
options.srcDir = options.srcDir ?? `${cwd()}/**/*`;
18+
options.srcDir = `${cwd()}/${options.srcDir}` ?? `${cwd()}/**/*`;
1919
options.mode = options.mode ?? "build";
2020
options.version = options.version ?? "latest";
2121
options.flavor = options.flavor || "normal";

0 commit comments

Comments
 (0)