Skip to content

Commit 1880d76

Browse files
author
Ben Newman
committed
Fix faulty node_modules portability caching logic.
1 parent 9411f0a commit 1880d76

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tools/isobuild/meteor-npm.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ meteorNpm.dependenciesArePortable = function (nodeModulesDir) {
147147
// away the next time those packages are (re)installed.
148148
const portableFile = files.pathJoin(item, ".meteor-portable");
149149
if (files.exists(portableFile)) {
150-
return JSON.parse(files.readFile(portableFile));
150+
return ! JSON.parse(files.readFile(portableFile));
151151
}
152-
const portable = ! search(item);
153-
files.writeFile(portableFile, JSON.stringify(portable) + "\n");
154-
return portable;
152+
const result = search(item);
153+
files.writeFile(portableFile, JSON.stringify(! result) + "\n");
154+
return result;
155155
}
156-
return ! search(item);
156+
return search(item);
157157
}
158158
}) || false;
159159
};

0 commit comments

Comments
 (0)