packages/backend,cli: revert publish config and remove postpack script requirement from image-build

This commit is contained in:
Patrik Oldsberg
2020-06-25 19:56:18 +02:00
parent d49e05e9e7
commit c06c7d7e6b
2 changed files with 5 additions and 9 deletions
+4 -1
View File
@@ -25,6 +25,7 @@ type LernaPackage = {
name: string;
private: boolean;
location: string;
scripts: Record<string, string>;
};
type FileEntry =
@@ -92,7 +93,9 @@ async function moveToDistWorkspace(
cwd: target.location,
});
// TODO(Rugvip): yarn pack doesn't call postpack, once the bug is fixed this can be removed
await run('yarn', ['postpack'], { cwd: target.location });
if (target.scripts.postpack) {
await run('yarn', ['postpack'], { cwd: target.location });
}
const outputDir = relativePath(paths.targetRoot, target.location);
const absoluteOutputPath = resolvePath(workspaceDir, outputDir);