Skip to content

Commit 34186fc

Browse files
committed
fix release script
1 parent d1f7e02 commit 34186fc

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

scripts/exp/prepare-util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export async function createCompatProject(config: CompatConfig) {
6565

6666
compatPkgJson.dependencies = {
6767
...srcPkgJson.dependencies,
68-
[srcPkgJson.name]: '0.0.900'
68+
[srcPkgJson.name]: srcPkgJson.version
6969
};
7070

7171
compatPkgJson.peerDependencies = {

scripts/exp/release.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,18 @@ async function publishExpPackages({ dryRun }: { dryRun: boolean }) {
157157
throw new Error('Version check failed');
158158
}
159159

160+
// publish all packages under packages-exp plus firestore, storage and database
161+
const packagesToPublish = await mapWorkspaceToPackages([
162+
`${projectRoot}/packages-exp/*`
163+
]);
164+
packagePaths.push(`${projectRoot}/packages/firestore`);
165+
packagePaths.push(`${projectRoot}/packages/storage`);
166+
packagePaths.push(`${projectRoot}/packages/database`);
167+
160168
/**
161169
* Release packages to NPM
162170
*/
163-
await publishToNpm(packagePaths, dryRun);
171+
await publishToNpm(packagesToPublish, dryRun);
164172

165173
/**
166174
* reset the working tree to recover package names with -exp in the package.json files,
@@ -385,7 +393,8 @@ async function publishToNpm(packagePaths: string[], dryRun = false) {
385393
}
386394

387395
async function publishPackage(packagePath: string, dryRun: boolean) {
388-
const args = ['publish', '--access', 'public', '--tag', 'exp'];
396+
// const args = ['publish', '--access', 'public', '--tag', 'exp'];
397+
const args = ['pack'];
389398
if (dryRun) {
390399
args.push('--dry-run');
391400
}

0 commit comments

Comments
 (0)