ppackage 2.3.4 → 2.3.5
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.
- package/index.js +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -19,6 +19,7 @@ const GIT_FOLDER = ".git";
|
|
|
19
19
|
const NPM_PACKAGE_PATH = 'package.json';
|
|
20
20
|
const DOCKERIGNORE_PATH = ".dockerignore";
|
|
21
21
|
const NPMIGNORE_PATH = ".npmignore";
|
|
22
|
+
const NPMRC_PATH = ".npmrc"; //default ignored by npm
|
|
22
23
|
const GITIGNORE_PATH = ".gitignore";
|
|
23
24
|
|
|
24
25
|
|
|
@@ -163,7 +164,7 @@ class ppackage {
|
|
|
163
164
|
await passthru("git", ["config", "--unset", "core.bare"]);
|
|
164
165
|
await passthru("git", ["reset", "HEAD", "--", "."]);
|
|
165
166
|
|
|
166
|
-
for(let line of [GITIGNORE_PATH, DOCKERIGNORE_PATH, NPMIGNORE_PATH])
|
|
167
|
+
for(let line of [GITIGNORE_PATH, DOCKERIGNORE_PATH, NPMIGNORE_PATH, NPMRC_PATH])
|
|
167
168
|
await passthru("git", ["checkout", "--", line]).catch(()=>{});
|
|
168
169
|
|
|
169
170
|
let restore = [];
|