Ensure distDir exists

Summary:
That avoids failures like these:

{F693123233}

Reviewed By: aigoncharov

Differential Revision: D33585422

fbshipit-source-id: b2b5af2daf7beaa796b331c5988e51ea3ed94699
This commit is contained in:
Pascal Hartig
2022-01-14 11:01:14 -08:00
committed by Facebook GitHub Bot
parent a555167d13
commit a51f25e9c2

View File

@@ -245,6 +245,7 @@ async function modifyPackageManifest(
async function packNpmArchive(dir: string, versionNumber: any) {
console.log(`⚙️ Packing flipper-server.tgz`);
await fs.mkdirp(distDir);
const archive = path.resolve(distDir, 'flipper-server.tgz');
await spawn('yarn', ['pack', '--filename', archive], {
cwd: dir,