@@ -26,6 +26,7 @@ import { writeFile as _writeFile } from 'fs';
26
26
import { promisify } from 'util' ;
27
27
import chalk from 'chalk' ;
28
28
import Listr from 'listr' ;
29
+ import { prepare as prepareAndBuildFirestore } from './prepare-firestore-for-exp-release' ;
29
30
30
31
const writeFile = promisify ( _writeFile ) ;
31
32
const git = simpleGit ( projectRoot ) ;
@@ -43,11 +44,18 @@ async function publishExpPackages() {
43
44
*/
44
45
await buildPackages ( ) ;
45
46
47
+ /**
48
+ * prepare and build firestore
49
+ */
50
+ await prepareAndBuildFirestore ( ) ;
51
+
46
52
// path to exp packages
47
53
const packagePaths = await mapWorkspaceToPackages ( [
48
54
`${ projectRoot } /packages-exp/*`
49
55
] ) ;
50
56
57
+ packagePaths . push ( `${ projectRoot } /packages/firestore` ) ;
58
+
51
59
/**
52
60
* It does 2 things:
53
61
*
@@ -62,26 +70,26 @@ async function publishExpPackages() {
62
70
/**
63
71
* Release packages to NPM
64
72
*/
65
- await publishToNpm ( packagePaths ) ;
73
+ // await publishToNpm(packagePaths);
66
74
67
75
/**
68
76
* reset the working tree to recover package names with -exp in the package.json files,
69
77
* then bump patch version of firebase-exp (the umbrella package) only
70
78
*/
71
- const firebaseExpVersion = new Map < string , string > ( ) ;
72
- firebaseExpVersion . set (
73
- FIREBASE_UMBRELLA_PACKAGE_NAME ,
74
- versions . get ( FIREBASE_UMBRELLA_PACKAGE_NAME )
75
- ) ;
76
- const firebaseExpPath = packagePaths . filter ( p =>
77
- p . includes ( FIREBASE_UMBRELLA_PACKAGE_NAME )
78
- ) ;
79
- await resetWorkingTreeAndBumpVersions ( firebaseExpPath , firebaseExpVersion ) ;
79
+ // const firebaseExpVersion = new Map<string, string>();
80
+ // firebaseExpVersion.set(
81
+ // FIREBASE_UMBRELLA_PACKAGE_NAME,
82
+ // versions.get(FIREBASE_UMBRELLA_PACKAGE_NAME)
83
+ // );
84
+ // const firebaseExpPath = packagePaths.filter(p =>
85
+ // p.includes(FIREBASE_UMBRELLA_PACKAGE_NAME)
86
+ // );
87
+ // await resetWorkingTreeAndBumpVersions(firebaseExpPath, firebaseExpVersion);
80
88
81
89
/**
82
90
* push to github
83
91
*/
84
- await commitAndPush ( versions ) ;
92
+ // await commitAndPush(versions);
85
93
} catch ( err ) {
86
94
/**
87
95
* Log any errors that happened during the process
0 commit comments