Skip to content

Commit 725d98f

Browse files
committed
ref: run build:types separately from build:pack
1 parent 7f62d23 commit 725d98f

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

nx.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"targetDefaults": {
1616
"build:bundle": {
17-
"dependsOn": ["^build:types"],
17+
"dependsOn": [],
1818
"outputs": [
1919
"{projectRoot}/build/bundles"
2020
]
@@ -27,10 +27,8 @@
2727
},
2828
"build:pack": {
2929
"dependsOn": [
30-
"build:types",
3130
"build:pack:uncached",
3231
"^build:pack",
33-
"^build:types",
3432
"^build:pack:uncached"
3533
],
3634
"outputs": [
@@ -52,7 +50,7 @@
5250
"targets": {
5351
"@sentry/serverless": {
5452
"build:bundle": {
55-
"dependsOn": ["^build:types"],
53+
"dependsOn": [],
5654
"outputs": [
5755
"{projectRoot}/build/aws"
5856
]

package.json

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

0 commit comments

Comments
 (0)