From 4938c2764dc73e9ee3f5765d574eb770ca1a4a80 Mon Sep 17 00:00:00 2001 From: zodern Date: Fri, 3 Mar 2023 14:43:32 -0600 Subject: [PATCH] Fix missing files when copying node modules --- tools/isobuild/meteor-npm.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/isobuild/meteor-npm.js b/tools/isobuild/meteor-npm.js index e317535a1e..6af2cc0ac9 100644 --- a/tools/isobuild/meteor-npm.js +++ b/tools/isobuild/meteor-npm.js @@ -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);