diff --git a/lib/pack.js b/lib/pack.js index dbe60d4..46ed1f1 100644 --- a/lib/pack.js +++ b/lib/pack.js @@ -84,17 +84,15 @@ export async function rescopeOfficialPrebuildsFromPackage({ buildMetadata, resco for (const meta of buildMetadata) { if (!rescopeOnlyPrebuilds) { const modulePkg = await readPackageData(meta.moduleBaseDir); - log(">>>>>>>>>>>>>>>>>>>>>>>>>> DEBUG rescopeOfficialPrebuildsFromPackage: %O", modulePkg) const newJSONPkg = sanitizeModulePackageJSON({ rescopedModuleName: meta.rescopedModuleName, modulePkg, version: meta.version, }); - log(">>>>>>>>>>>>>>>>>>>>>>>>>> DEBUG rescopeOfficialPrebuildsFromPackage NEW: %O", newJSONPkg) await pack({ srcBaseDir: meta.moduleBaseDir, destBaseDir: meta.rescopedModuleBaseDir, - packageJSONData: meta.modulePkg, + packageJSONData: newJSONPkg, modulesToPublish: toPublish, relocatePrebuilds: false, }); @@ -130,8 +128,6 @@ export async function rescopeOfficialPrebuildsFromPackage({ buildMetadata, resco } } } - const modulePkg2 = await readPackageData(meta.rescopedModuleBaseDir); - log(">>>>>>>>>>>>>>>>>>>>>>>>>> DEBUG rescopeOfficialPrebuildsFromPackage FINAL: %O", modulePkg2) } return toPublish; }