Skip to content

ref(build): Run repo-level builds in parallel #5094

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"private": true,
"scripts": {
"build": "node ./scripts/verify-packages-versions.js && lerna run --stream --concurrency 1 --sort build",
"build": "node ./scripts/verify-packages-versions.js && yarn run-p build:rollup build:types build:bundle && yarn build:extras",
"build:bundle": "lerna run --parallel build:bundle",
"build:dev": "lerna run --stream --concurrency 1 --sort build:dev",
"build:dev:filter": "lerna run --stream --concurrency 1 --sort build:dev --include-filtered-dependencies --include-filtered-dependents --scope",
"build:rollup": "lerna run --stream --concurrency 1 --sort build:rollup",
"build:types": "lerna run --stream --concurrency 1 --sort build:types",
"build:dev": "run-p build:types build:rollup",
"build:extras": "lerna run --parallel build:extras",
"build:rollup": "lerna run --parallel build:rollup",
"build:types": "lerna run --stream build:types",
"build:watch": "lerna run --parallel build:watch",
"build:dev:watch": "lerna run --parallel build:dev:watch",
"build:types:watch": "ts-node scripts/build-types-watch.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"build": "yarn build:ngc",
"build:ngc": "ng build --prod",
"build:dev": "run-s build",
"build:extras": "yarn build",
"build:watch": "run-p build:ngc:watch",
"build:ngc:watch": "ng build --prod --watch",
"build:npm": "npm pack ./build",
Expand Down
1 change: 1 addition & 0 deletions packages/ember/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"scripts": {
"build": "ember build --environment=production",
"build:extras": "yarn build",
"build:npm": "ember ts:precompile && npm pack && ember ts:clean",
"clean": "yarn rimraf sentry-ember-*.tgz",
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*",
Expand Down
3 changes: 2 additions & 1 deletion packages/gatsby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@
"react": "^18.0.0"
},
"scripts": {
"build": "run-p build:rollup build:types build:plugin",
"build": "run-p build:rollup build:types && yarn build:extras",
"build:dev": "run-s build",
"build:extras": "yarn build:plugin",
"build:plugin": "tsc -p tsconfig.plugin.json",
"build:rollup": "rollup -c rollup.npm.config.js",
"build:types": "tsc -p tsconfig.types.json",
Expand Down
3 changes: 2 additions & 1 deletion packages/serverless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@
"read-pkg": "^5.2.0"
},
"scripts": {
"build": "run-p build:rollup build:types && yarn build:awslambda-layer",
"build": "run-p build:rollup build:types && yarn build:extras",
"build:awslambda-layer": "node scripts/build-awslambda-layer.js",
"build:dev": "run-p build:rollup build:types",
"build:extras": "yarn build:awslambda-layer",
"build:rollup": "rollup -c rollup.npm.config.js",
"build:types": "tsc -p tsconfig.types.json",
"build:watch": "run-p build:rollup:watch build:types:watch",
Expand Down
4 changes: 3 additions & 1 deletion packages/tracing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
"@types/express": "^4.17.1"
},
"scripts": {
"build": "run-p build:rollup build:types build:bundle && ts-node ../../scripts/prepack.ts --bundles #necessary for integration tests",
"build": "run-p build:rollup build:types build:bundle && yarn build:extras #necessary for integration tests",
"build:bundle": "rollup --config rollup.bundle.config.js",
"build:dev": "run-p build:rollup build:types",
"build:extras": "yarn build:prepack",
"build:prepack": "ts-node ../../scripts/prepack.ts --bundles",
"build:rollup": "rollup -c rollup.npm.config.js",
"build:types": "tsc -p tsconfig.types.json",
"build:watch": "run-p build:rollup:watch build:bundle:watch build:types:watch",
Expand Down
6 changes: 6 additions & 0 deletions packages/tracing/tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"extends": "./tsconfig.json",

// We don't need types for this because we don't ship it in our npm bundle. Skipping it here also lets us get around
// the fact that it introduces a dependency on `@sentry/browser` which doesn't exist anywhere else in the SDK, which
// then prevents us from building that and this at the same time when doing a parallellized build from the repo root
// level.
"exclude": ["src/index.bundle.ts"],

"compilerOptions": {
"declaration": true,
"declarationMap": true,
Expand Down