mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fix faulty node_modules portability caching logic.
This commit is contained in:
@@ -147,13 +147,13 @@ meteorNpm.dependenciesArePortable = function (nodeModulesDir) {
|
||||
// away the next time those packages are (re)installed.
|
||||
const portableFile = files.pathJoin(item, ".meteor-portable");
|
||||
if (files.exists(portableFile)) {
|
||||
return JSON.parse(files.readFile(portableFile));
|
||||
return ! JSON.parse(files.readFile(portableFile));
|
||||
}
|
||||
const portable = ! search(item);
|
||||
files.writeFile(portableFile, JSON.stringify(portable) + "\n");
|
||||
return portable;
|
||||
const result = search(item);
|
||||
files.writeFile(portableFile, JSON.stringify(! result) + "\n");
|
||||
return result;
|
||||
}
|
||||
return ! search(item);
|
||||
return search(item);
|
||||
}
|
||||
}) || false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user