Browse Source

now-alpine + suppress a pkg warning (#277)

* explicitly list pkg targets (alpine is not in default list)

* suppress pkg warnings by adding 'may-exclude'
master
Igor Klopov 8 years ago
committed by Leo Lamprecht
parent
commit
2a00eb632a
  1. 2
      lib/get-files.js
  2. 2
      package.json

2
lib/get-files.js

@ -39,7 +39,7 @@ async function npm(path, pkg, nowConfig = null, {
// always include the "main" file
if (pkg.main) {
search.push(require.resolve(resolve(path, pkg.main)))
search.push(require.resolve(resolve(path, pkg.main), 'may-exclude')) // pkg: may-exclude suppresses warnings
}
// compile list of ignored patterns and files

2
package.json

@ -12,7 +12,7 @@
"precommit": "npm run lint",
"lint": "xo",
"test": "npm run lint && ava",
"pack": "pkg . --out-dir packed"
"pack": "pkg . --out-dir packed -t node7-alpine-x64,node7-linux-x64,node7-macos-x64,node7-win-x64"
},
"pkg": {
"scripts": [

Loading…
Cancel
Save