Skip to content

Commit a742d47

Browse files
build browser bundle when building
1 parent 7168584 commit a742d47

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"node": ">=18"
88
},
99
"scripts": {
10-
"build": "turbo run build --filter=!docs",
10+
"build": "turbo run build build:browser --filter=!docs",
1111
"dev": "turbo run dev",
1212
"lint": "turbo run lint",
1313
"test": "turbo run test -- --watch=false",

turbo.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
"$schema": "https://turbo.build/schema.json",
33
"pipeline": {
44
"build": {
5-
"outputs": ["dist/**", "storybook-static/**"],
5+
"outputs": ["dist/**"],
66
"dependsOn": ["^build"]
77
},
8+
"build:browser": {
9+
"outputs": ["browser.js"],
10+
"dependsOn": ["^build", "^build:browser"]
11+
},
812
"lint": {
913
"dependsOn": ["^lint"]
1014
},

0 commit comments

Comments
 (0)