Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bigorn0 committed Jun 29, 2024
1 parent c83dc4c commit 27c481c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down Expand Up @@ -130,8 +128,6 @@ export async function rescopeOfficialPrebuildsFromPackage({ buildMetadata, resco
}
}
}
const modulePkg2 = await readPackageData(meta.rescopedModuleBaseDir);
log(">>>>>>>>>>>>>>>>>>>>>>>>>> DEBUG rescopeOfficialPrebuildsFromPackage FINAL: %O", modulePkg2)
}
return toPublish;
}

0 comments on commit 27c481c

Please sign in to comment.