Skip to content

Commit

Permalink
build browser bundle when building
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Sep 1, 2024
1 parent 7168584 commit a742d47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"node": ">=18"
},
"scripts": {
"build": "turbo run build --filter=!docs",
"build": "turbo run build build:browser --filter=!docs",
"dev": "turbo run dev",
"lint": "turbo run lint",
"test": "turbo run test -- --watch=false",
Expand Down
6 changes: 5 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"build": {
"outputs": ["dist/**", "storybook-static/**"],
"outputs": ["dist/**"],
"dependsOn": ["^build"]
},
"build:browser": {
"outputs": ["browser.js"],
"dependsOn": ["^build", "^build:browser"]
},
"lint": {
"dependsOn": ["^lint"]
},
Expand Down

0 comments on commit a742d47

Please sign in to comment.