Skip to content

Commit 75ccd16

Browse files
committed
update release build
1 parent a1cec3d commit 75ccd16

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

scripts/exp/release.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async function publishExpPackages({ dryRun }: { dryRun: boolean }) {
6666
await prepareStorageForRelease();
6767
await prepareDatabaseForRelease();
6868
/**
69-
* build packages
69+
* build packages except for the umbrella package (firebase) which will be built after firestore/storage/database compat packages are created
7070
*/
7171
await buildPackages();
7272

@@ -75,6 +75,11 @@ async function publishExpPackages({ dryRun }: { dryRun: boolean }) {
7575
*/
7676
await createFirestoreCompatProject();
7777

78+
/**
79+
* build firebase
80+
*/
81+
await buildFirebasePackage();
82+
7883
// path to exp packages
7984
let packagePaths = await mapWorkspaceToPackages([
8085
`${projectRoot}/packages-exp/*`
@@ -291,6 +296,13 @@ async function buildPackages() {
291296
rmdirSync(installationsDistDirPath, { recursive: true });
292297
}
293298

299+
spinner.stopAndPersist({
300+
symbol: '✅'
301+
});
302+
}
303+
304+
async function buildFirebasePackage() {
305+
const spinner = ora(' Building firebase').start();
294306
// Build firebase-exp
295307
await spawn(
296308
'yarn',
@@ -300,7 +312,6 @@ async function buildPackages() {
300312
stdio: 'inherit'
301313
}
302314
);
303-
304315
spinner.stopAndPersist({
305316
symbol: '✅'
306317
});

0 commit comments

Comments
 (0)