mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Merge pull request #12535 from meteor/fix/meteor-3-rebuild-node-modules-missing-files
[Meteor 3] Fix missing files when copying node modules to rebuild native deps
This commit is contained in:
@@ -420,7 +420,7 @@ async function copyNpmPackageWithSymlinkedNodeModules(fromPkgDir, toPkgDir) {
|
||||
if (item === "node_modules") {
|
||||
// We'll link or copy node_modules in a follow-up step.
|
||||
needToHandleNodeModules = true;
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
|
||||
await files.cp_r(
|
||||
@@ -442,7 +442,7 @@ async function copyNpmPackageWithSymlinkedNodeModules(fromPkgDir, toPkgDir) {
|
||||
if (depPath === ".bin") {
|
||||
// Avoid copying node_modules/.bin because commands like
|
||||
// .bin/node-gyp and .bin/node-pre-gyp tend to cause problems.
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
|
||||
const absDepFromPath = files.pathJoin(nodeModulesFromPath, depPath);
|
||||
@@ -450,7 +450,7 @@ async function copyNpmPackageWithSymlinkedNodeModules(fromPkgDir, toPkgDir) {
|
||||
if (! files.stat(absDepFromPath).isDirectory()) {
|
||||
// Only copy package directories, even though there might be other
|
||||
// kinds of files in node_modules.
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
|
||||
const absDepToPath = files.pathJoin(nodeModulesToPath, depPath);
|
||||
|
||||
Reference in New Issue
Block a user