Skip to content

Commit ebfd28f

Browse files
committed
Don't copy any toplevel .npmrc file
I used one to install a native module for Brackets. Shouldn't be necessary on Brackets-Electron
1 parent 3c44e82 commit ebfd28f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/extensibility/node/package-validator.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,10 @@ function extractAndValidateFiles(zipPath, extractDir, options, callback) {
311311
unzipper.extract({
312312
path: extractDir,
313313
filter: function (file) {
314-
return file.type !== "SymbolicLink";
314+
console.log(JSON.stringify(file));
315+
return file.type !== "SymbolicLink" &&
316+
// Exclude toplevel .npmrc file
317+
!(file.filename === ".npmrc" && file.path === ".npmrc");
315318
}
316319
});
317320
}

0 commit comments

Comments
 (0)