Skip to content

Commit 8b6655b

Browse files
committed
ref: Rename build:pack to build:transpile
1 parent ffaf004 commit 8b6655b

File tree

23 files changed

+97
-96
lines changed

23 files changed

+97
-96
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ jobs:
120120
changed_browser: ${{ steps.changed.outputs.browser }}
121121
changed_browser_integration: ${{ steps.changed.outputs.browser_integration }}
122122
changed_any_code: ${{ steps.changed.outputs.any_code }}
123+
# Note: These next three have to be checked as strings ('true'/'false')!
123124
is_master: ${{ github.ref == 'refs/heads/master' }}
124125
is_release: ${{ startsWith(github.ref, 'refs/heads/release/') }}
125126
force_skip_cache:
@@ -290,7 +291,7 @@ jobs:
290291
- name: Check bundle sizes
291292
uses: getsentry/size-limit-action@v5
292293
# Don't run size check on release branches - at that point, we're already committed
293-
if: needs.job_get_metadata.outputs.is_release == false
294+
if: needs.job_get_metadata.outputs.is_release == 'false'
294295
with:
295296
github_token: ${{ secrets.GITHUB_TOKEN }}
296297
skip_step: build
@@ -352,7 +353,7 @@ jobs:
352353
needs: [job_get_metadata, job_build]
353354
runs-on: ubuntu-20.04
354355
# Build artifacts are only needed for releasing workflow.
355-
if: needs.job_get_metadata.outputs.is_release
356+
if: needs.job_get_metadata.outputs.is_release === 'true'
356357
steps:
357358
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
358359
uses: actions/checkout@v3

nx.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"options": {
66
"cacheableOperations": [
77
"build:bundle",
8-
"build:pack",
8+
"build:transpile",
99
"build:tarball",
1010
"build:types"
1111
]
@@ -21,15 +21,15 @@
2121
},
2222
"build:tarball": {
2323
"dependsOn": [
24-
"build:pack"
24+
"build:transpile"
2525
],
2626
"outputs": []
2727
},
28-
"build:pack": {
28+
"build:transpile": {
2929
"dependsOn": [
30-
"build:pack:uncached",
31-
"^build:pack",
32-
"^build:pack:uncached"
30+
"build:transpile:uncached",
31+
"^build:transpile",
32+
"^build:transpile:uncached"
3333
],
3434
"outputs": [
3535
"{projectRoot}/build/npm",

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"private": true,
33
"scripts": {
4-
"build": "node ./scripts/verify-packages-versions.js && run-s build:types build:pack build:bundle",
4+
"build": "node ./scripts/verify-packages-versions.js && run-s build:types build:transpile build:bundle",
55
"build:bundle": "lerna run build:bundle",
6-
"build:dev": "run-s build:types build:pack",
6+
"build:dev": "run-s build:types build:transpile",
77
"build:dev:filter": "lerna run build:dev --include-filtered-dependencies --include-filtered-dependents --scope",
8-
"build:pack": "lerna run build:pack",
8+
"build:transpile": "lerna run build:transpile",
99
"build:types": "lerna run build:types",
1010
"build:watch": "lerna run build:watch",
1111
"build:dev:watch": "lerna run build:dev:watch",

packages/angular/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@
4141
"zone.js": "^0.11.8"
4242
},
4343
"scripts": {
44-
"build": "yarn build:pack",
45-
"build:pack": "ng build --prod",
44+
"build": "yarn build:transpile",
45+
"build:transpile": "ng build --prod",
4646
"build:dev": "run-s build",
47-
"build:watch": "run-p build:pack:watch",
48-
"build:pack:watch": "ng build --prod --watch",
47+
"build:watch": "run-p build:transpile:watch",
48+
"build:transpile:watch": "ng build --prod --watch",
4949
"build:tarball": "npm pack ./build",
5050
"circularDepCheck": "madge --circular src/index.ts",
5151
"clean": "rimraf build coverage sentry-angular-*.tgz",

packages/browser/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@
4444
"webpack": "^4.30.0"
4545
},
4646
"scripts": {
47-
"build": "run-p build:pack build:bundle build:types",
47+
"build": "run-p build:transpile build:bundle build:types",
4848
"build:bundle": "rollup --config rollup.bundle.config.js",
49-
"build:pack": "rollup -c rollup.npm.config.js",
49+
"build:transpile": "rollup -c rollup.npm.config.js",
5050
"build:types": "tsc -p tsconfig.types.json",
51-
"build:watch": "run-p build:pack:watch build:bundle:watch build:types:watch",
51+
"build:watch": "run-p build:transpile:watch build:bundle:watch build:types:watch",
5252
"build:bundle:watch": "rollup --config rollup.bundle.config.js --watch",
53-
"build:pack:watch": "rollup -c rollup.npm.config.js --watch",
53+
"build:transpile:watch": "rollup -c rollup.npm.config.js --watch",
5454
"build:types:watch": "tsc -p tsconfig.types.json --watch",
5555
"build:tarball": "ts-node ../../scripts/prepack.ts --bundles && npm pack ./build/npm",
5656
"circularDepCheck": "madge --circular src/index.ts",

packages/core/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
"tslib": "^1.9.3"
2222
},
2323
"scripts": {
24-
"build": "run-p build:pack build:types",
24+
"build": "run-p build:transpile build:types",
2525
"build:dev": "run-s build",
26-
"build:pack": "rollup -c rollup.npm.config.js",
26+
"build:transpile": "rollup -c rollup.npm.config.js",
2727
"build:types": "tsc -p tsconfig.types.json",
28-
"build:watch": "run-p build:pack:watch build:types:watch",
28+
"build:watch": "run-p build:transpile:watch build:types:watch",
2929
"build:dev:watch": "run-s build:watch",
30-
"build:pack:watch": "rollup -c rollup.npm.config.js --watch",
30+
"build:transpile:watch": "rollup -c rollup.npm.config.js --watch",
3131
"build:types:watch": "tsc -p tsconfig.types.json --watch",
3232
"build:tarball": "ts-node ../../scripts/prepack.ts && npm pack ./build",
3333
"circularDepCheck": "madge --circular src/index.ts",

packages/gatsby/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@
3535
"react": "^18.0.0"
3636
},
3737
"scripts": {
38-
"build": "run-p build:pack build:types",
38+
"build": "run-p build:transpile build:types",
3939
"build:dev": "run-s build",
4040
"build:plugin": "tsc -p tsconfig.plugin.json",
41-
"build:pack": "run-p build:rollup build:plugin",
41+
"build:transpile": "run-p build:rollup build:plugin",
4242
"build:rollup": "rollup -c rollup.npm.config.js",
4343
"build:types": "tsc -p tsconfig.types.json",
44-
"build:watch": "run-p build:pack:watch build:types:watch",
44+
"build:watch": "run-p build:transpile:watch build:types:watch",
4545
"build:dev:watch": "run-s build:watch",
46-
"build:pack:watch": "rollup -c rollup.npm.config.js --watch",
46+
"build:transpile:watch": "rollup -c rollup.npm.config.js --watch",
4747
"build:types:watch": "tsc -p tsconfig.types.json --watch",
4848
"build:tarball": "ts-node ../../scripts/prepack.ts && npm pack ./build",
4949
"circularDepCheck": "madge --circular src/index.ts",

packages/hub/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
"tslib": "^1.9.3"
2323
},
2424
"scripts": {
25-
"build": "run-p build:pack build:types",
25+
"build": "run-p build:transpile build:types",
2626
"build:dev": "run-s build",
27-
"build:pack": "rollup -c rollup.npm.config.js",
27+
"build:transpile": "rollup -c rollup.npm.config.js",
2828
"build:types": "tsc -p tsconfig.types.json",
29-
"build:watch": "run-p build:pack:watch build:types:watch",
29+
"build:watch": "run-p build:transpile:watch build:types:watch",
3030
"build:dev:watch": "run-s build:watch",
31-
"build:pack:watch": "rollup -c rollup.npm.config.js --watch",
31+
"build:transpile:watch": "rollup -c rollup.npm.config.js --watch",
3232
"build:types:watch": "tsc -p tsconfig.types.json --watch",
3333
"build:tarball": "ts-node ../../scripts/prepack.ts && npm pack ./build",
3434
"circularDepCheck": "madge --circular src/index.ts",

packages/integrations/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
"chai": "^4.1.2"
2626
},
2727
"scripts": {
28-
"build": "run-p build:pack build:types build:bundle",
28+
"build": "run-p build:transpile build:types build:bundle",
2929
"build:bundle": "ts-node scripts/buildBundles.ts",
30-
"build:dev": "run-p build:pack build:types",
31-
"build:pack": "rollup -c rollup.npm.config.js",
30+
"build:dev": "run-p build:transpile build:types",
31+
"build:transpile": "rollup -c rollup.npm.config.js",
3232
"build:types": "tsc -p tsconfig.types.json",
33-
"build:watch": "run-p build:pack:watch build:types:watch",
33+
"build:watch": "run-p build:transpile:watch build:types:watch",
3434
"build:dev:watch": "run-s build:watch",
35-
"build:pack:watch": "rollup -c rollup.npm.config.js --watch",
35+
"build:transpile:watch": "rollup -c rollup.npm.config.js --watch",
3636
"build:types:watch": "tsc -p tsconfig.types.json --watch",
3737
"build:tarball": "ts-node ../../scripts/prepack.ts --bundles && npm pack ./build/npm",
3838
"circularDepCheck": "madge --circular src/index.ts",

packages/nextjs/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@
4747
}
4848
},
4949
"scripts": {
50-
"build": "run-p build:pack build:types",
50+
"build": "run-p build:transpile build:types",
5151
"build:dev": "run-s build",
52-
"build:pack": "ts-node scripts/buildRollup.ts",
52+
"build:transpile": "ts-node scripts/buildRollup.ts",
5353
"build:types": "tsc -p tsconfig.types.json",
54-
"build:watch": "run-p build:pack:watch build:types:watch",
54+
"build:watch": "run-p build:transpile:watch build:types:watch",
5555
"build:dev:watch": "run-s build:watch",
56-
"build:pack:watch": "nodemon --ext ts --watch src scripts/buildRollup.ts",
56+
"build:transpile:watch": "nodemon --ext ts --watch src scripts/buildRollup.ts",
5757
"build:types:watch": "tsc -p tsconfig.types.json --watch",
5858
"build:tarball": "ts-node ../../scripts/prepack.ts && npm pack ./build",
5959
"circularDepCheck": "madge --circular src/index.client.ts && madge --circular --exclude 'config/types\\.ts' src/index.server.ts # see https://github.com/pahen/madge/issues/306",

0 commit comments

Comments
 (0)