Skip to content

Commit b98cd65

Browse files
authored
Remove prepare script in our projects (#4296)
* remove prepare from exp packages * remove prepare from packages * cleanup
1 parent f53e5b9 commit b98cd65

File tree

38 files changed

+21
-58
lines changed

38 files changed

+21
-58
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
"dev": "lerna run --parallel --scope @firebase/* --scope firebase --scope rxfire dev",
2525
"build": "lerna run --scope @firebase/app-exp build:deps && lerna run --scope @firebase/* --scope firebase --scope rxfire --ignore @firebase/app-exp build",
2626
"build:exp": "lerna run --scope @firebase/*-exp --scope @firebase/*-compat --scope firebase-exp build",
27-
"build:release": "lerna run --scope @firebase/app-exp build:deps && lerna run --scope @firebase/* --scope firebase --scope rxfire --ignore @firebase/*-exp --ignore @firebase/*-compat prepare",
28-
"build:exp:release": "yarn --cwd packages/app build:deps && lerna run --scope @firebase/*-exp --scope @firebase/*-compat --scope firebase-exp prepare && yarn --cwd packages-exp/app-exp typings:public",
27+
"build:release": "lerna run --scope @firebase/app-exp build:deps && lerna run --scope @firebase/* --scope firebase --scope rxfire --ignore @firebase/*-exp --ignore @firebase/*-compat build",
2928
"build:changed": "ts-node-script scripts/ci-test/build_changed.ts",
3029
"link:packages": "lerna exec --scope @firebase/* --scope firebase --scope rxfire -- yarn link",
3130
"stage:packages": "./scripts/prepublish.sh",

packages-exp/app-compat/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
"test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all",
2424
"test:browser": "karma start --single-run",
2525
"test:browser:debug": "karma start --browsers Chrome --auto-watch",
26-
"test:node": "TS_NODE_FILES=true TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha test/**/*.test.* src/**/*.test.ts --config ../../config/mocharc.node.js",
27-
"prepare": "yarn build:release"
26+
"test:node": "TS_NODE_FILES=true TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha test/**/*.test.* src/**/*.test.ts --config ../../config/mocharc.node.js"
2827
},
2928
"license": "Apache-2.0",
3029
"dependencies": {

packages-exp/app-exp/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"test:all": "run-p test:browser test:node",
2222
"test:browser": "karma start --single-run",
2323
"test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha src/**/*.test.ts --config ../../config/mocharc.node.js",
24-
"prepare": "rollup -c rollup.config.release.js && yarn api-report",
2524
"api-report": "api-extractor run --local --verbose",
2625
"predoc": "node ../../scripts/exp/remove-exp.js temp",
2726
"doc": "api-documenter markdown --input temp --output docs",

packages-exp/auth-compat-exp/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
"test:all": "run-p test:browser test:node",
2121
"test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all",
2222
"test:browser": "karma start --single-run",
23-
"test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha src/**/*.test.* --config ../../config/mocharc.node.js",
24-
"prepare": "yarn build:release"
23+
"test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha src/**/*.test.* --config ../../config/mocharc.node.js"
2524
},
2625
"peerDependencies": {
2726
"@firebase/app-compat": "0.x",

packages-exp/auth-exp/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"test:browser:debug": "karma start --auto-watch",
2828
"test:browser:unit:debug": "karma start --auto-watch --unit",
2929
"test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'src/!(platform_browser|platform_react_native)/**/*.test.ts' --file index.node.ts --config ../../config/mocharc.node.js",
30-
"prepare": "rollup -c rollup.config.release.js",
3130
"api-report": "api-extractor run --local --verbose",
3231
"predoc": "node ../../scripts/exp/remove-exp.js temp",
3332
"doc": "api-documenter markdown --input temp --output docs",

packages-exp/firebase-exp/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"build:compat": "rollup -c compat/rollup.config.js",
3333
"build:compat:release": "rollup -c compat/rollup.config.release.js",
3434
"dev": "rollup -c -w",
35-
"prepare": "yarn build:release",
3635
"test": "echo 'No test suite for firebase wrapper'",
3736
"test:ci": "echo 'No test suite for firebase wrapper'"
3837
},

packages-exp/functions-compat/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141
"test:browser": "karma start --single-run",
4242
"test:browser:debug": "karma start --browsers=Chrome --auto-watch",
4343
"test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'src/{,!(browser)/**/}*.test.ts' --file src/index.node.ts --config ../../config/mocharc.node.js",
44-
"test:emulator": "env FIREBASE_FUNCTIONS_HOST=http://localhost FIREBASE_FUNCTIONS_PORT=5005 run-p test:node",
45-
"prepare": "yarn build:release"
44+
"test:emulator": "env FIREBASE_FUNCTIONS_HOST=http://localhost FIREBASE_FUNCTIONS_PORT=5005 run-p test:node"
4645
},
4746
"typings": "dist/functions-compat-public.d.ts",
4847
"dependencies": {

packages-exp/functions-exp/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"test:browser:debug": "karma start --browsers=Chrome --auto-watch",
2424
"test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'src/{,!(browser)/**/}*.test.ts' --file src/index.node.ts --config ../../config/mocharc.node.js",
2525
"test:emulator": "env FIREBASE_FUNCTIONS_EMULATOR_ORIGIN=http://localhost:5005 run-p test:node",
26-
"prepare": "yarn build:release",
2726
"api-report": "api-extractor run --local --verbose",
2827
"predoc": "node ../../scripts/exp/remove-exp.js temp",
2928
"doc": "api-documenter markdown --input temp --output docs",

packages-exp/functions-types-exp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"scripts": {
99
"test": "tsc",
1010
"test:ci": "node ../../scripts/run_tests_in_ci.js",
11-
"prepare": "node ../../scripts/exp/remove-exp.js ./index.d.ts",
11+
"build:release": "node ../../scripts/exp/remove-exp.js ./index.d.ts",
1212
"api-report": "api-extractor run --local --verbose",
1313
"predoc": "node ../../scripts/exp/remove-exp.js temp",
1414
"doc": "api-documenter markdown --input temp --output docs",

packages-exp/installations-compat/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"serve": "yarn serve:build && yarn serve:host",
2626
"serve:build": "rollup -c test-app/rollup.config.js",
2727
"serve:host": "http-server -c-1 test-app",
28-
"prepare": "yarn build:release",
2928
"api-report": "api-extractor run --local --verbose",
3029
"predoc": "node ../../scripts/exp/remove-exp.js temp",
3130
"doc": "api-documenter markdown --input temp --output docs",

0 commit comments

Comments
 (0)