mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Rebuild binary npm packages used by compiler plugins, too.
Fixes #7297.
This commit is contained in:
@@ -1953,6 +1953,9 @@ class JsImage {
|
||||
|
||||
ret.arch = json.arch;
|
||||
|
||||
// Rebuild binary npm packages if unibuild arch matches host arch.
|
||||
const rebuildBinaries = archinfo.matches(archinfo.host(), ret.arch);
|
||||
|
||||
_.each(json.load, function (item) {
|
||||
rejectBadPath(item.path);
|
||||
|
||||
@@ -1962,7 +1965,8 @@ class JsImage {
|
||||
ret.nodeModulesDirectories,
|
||||
nodeModulesDirectories =
|
||||
NodeModulesDirectory.readDirsFromJSON(item.node_modules, {
|
||||
sourceRoot: dir
|
||||
sourceRoot: dir,
|
||||
rebuildBinaries,
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1085,13 +1085,17 @@ _.extend(Isopack.prototype, {
|
||||
}
|
||||
});
|
||||
|
||||
// Rebuild binary npm packages if unibuild arch matches host arch.
|
||||
const rebuildBinaries = archinfo.matches(
|
||||
archinfo.host(),
|
||||
unibuildMeta.arch
|
||||
);
|
||||
|
||||
const nodeModulesDirectories = bundler.NodeModulesDirectory
|
||||
.readDirsFromJSON(unibuildJson.node_modules, {
|
||||
packageName: self.name,
|
||||
sourceRoot: unibuildBasePath,
|
||||
// Rebuild binaries if unibuild arch matches host arch.
|
||||
rebuildBinaries: archinfo.matches(
|
||||
archinfo.host(), unibuildMeta.arch)
|
||||
rebuildBinaries,
|
||||
});
|
||||
|
||||
self.unibuilds.push(new Unibuild(self, {
|
||||
|
||||
Reference in New Issue
Block a user