Skip to content

Commit ecae30f

Browse files
committed
make firstore exp release work again
1 parent ba77732 commit ecae30f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/firestore/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"api-report:exp": "(cd exp; api-extractor run --local --verbose) && TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' ts-node ../../repo-scripts/prune-dts/prune-dts.ts --input dist/exp/private.d.ts --output dist/exp/index.d.ts",
1111
"api-report:lite": "(cd lite; api-extractor run --local --verbose) && TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' ts-node ../../repo-scripts/prune-dts/prune-dts.ts --input dist/lite/private.d.ts --output dist/lite/index.d.ts",
1212
"bundle": "rollup -c",
13-
"prebuild": "tsc --emitDeclarationOnly --declaration -p tsconfig.json && run-p api-report:exp api-report:lite",
13+
"prebuild": "tsc --emitDeclarationOnly --declaration -p tsconfig.json; run-p api-report:exp api-report:lite",
1414
"build": "run-p 'bundle rollup.config.browser.js' 'bundle rollup.config.browser.memory.js' 'bundle rollup.config.node.js' 'bundle rollup.config.node.memory.js' 'bundle rollup.config.rn.js' 'bundle rollup.config.rn.memory.js' build:lite build:exp",
1515
"build:scripts": "tsc -moduleResolution node --module commonjs scripts/*.ts && ls scripts/*.js | xargs -I % sh -c 'terser % -o %'",
1616
"build:release": "run-p 'bundle rollup.config.browser.js' 'bundle rollup.config.browser.memory.js' 'bundle rollup.config.node.js' 'bundle rollup.config.node.memory.js' 'bundle rollup.config.rn.js' 'bundle rollup.config.rn.memory.js'",
@@ -19,6 +19,7 @@
1919
"build:exp": "rollup -c rollup.config.exp.js",
2020
"build:lite": "rollup -c rollup.config.lite.js",
2121
"build:exp:release": "yarn build:exp && yarn build:lite",
22+
"postbuild:exp:release": "node ../../scripts/exp/remove-exp.js dist/exp/index.d.ts && node ../../scripts/exp/remove-exp.js dist/lite/index.d.ts",
2223
"predev": "yarn prebuild",
2324
"dev": "rollup -c -w",
2425
"lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
@@ -43,7 +44,6 @@
4344
"test:node:persistence:prod": "node ./scripts/run-tests.js --main=index.node.ts --persistence 'test/{,!(browser)/**/}*.test.ts'",
4445
"test:travis": "ts-node --compiler-options='{\"module\":\"commonjs\"}' ../../scripts/emulator-testing/firestore-test-runner.ts",
4546
"test:minified": "(cd ../../integration/firestore ; yarn test)",
46-
"prepare": "yarn build:release",
4747
"api-report": "api-extractor run --local --verbose",
4848
"predoc": "node ../../scripts/exp/remove-exp.js temp",
4949
"doc": "api-documenter markdown --input temp --output docs"

scripts/exp/release.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ async function publishExpPackages({ dryRun }: { dryRun: boolean }) {
7878
* since the last release. This simplifies the script and works fine for exp packages.
7979
*
8080
* 2. Removes -exp in package names because we will publish them using
81-
* the existing package names under a special release tag (e.g. firebase@exp).
81+
* the existing package names under a special release tag (firebase@exp).
8282
*/
8383
const versions = await updatePackageNamesAndVersions(packagePaths);
8484

0 commit comments

Comments
 (0)