Skip to content

Commit c6d27b5

Browse files
authored
Package storage-types/exp (#4329)
1 parent 86ea407 commit c6d27b5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/storage/exp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"main": "./dist/index.browser.cjs.js",
55
"module": "./dist/index.browser.esm2017.js",
66
"browser": "./dist/index.browser.esm2017.js",
7-
"typings": "./dist/storage.d.ts",
7+
"typings": "./dist/storage-public.d.ts",
88
"private": true
99
}

scripts/exp/prepare-storage-for-exp-release.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ export async function prepare() {
3737
// Update package.json
3838
const packageJson = await readPackageJson(packagePath);
3939
const expPackageJson = await readPackageJson(`${packagePath}/exp`);
40+
const typesPackageJson = await readPackageJson(`${packagePath}-types`);
4041
packageJson.version = '0.0.900';
42+
typesPackageJson.version = '0.0.900';
43+
typesPackageJson.files = `['exp/index.d.ts']`;
4144

4245
packageJson.peerDependencies = {
4346
'@firebase/app-exp': '0.x',
@@ -60,4 +63,9 @@ export async function prepare() {
6063
`${JSON.stringify(packageJson, null, 2)}\n`,
6164
{ encoding: 'utf-8' }
6265
);
66+
await writeFile(
67+
`${packagePath}-types/package.json`,
68+
`${JSON.stringify(typesPackageJson, null, 2)}\n`,
69+
{ encoding: 'utf-8' }
70+
);
6371
}

0 commit comments

Comments
 (0)