Skip to content

Commit a973f21

Browse files
committed
fix: Build scripts
1 parent f235516 commit a973f21

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

apps/browser-extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "module",
55
"scripts": {
66
"dev": "vite dev --port 5174",
7-
"build": "vite build && tsc ./build/*.ts && zip -r ./roast-extension.zip ./build",
7+
"build:extension": "vite build && tsc ./build/*.ts && zip -r ./roast-extension.zip ./build",
88
"preview": "vite preview",
99
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
1010
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",

apps/website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "module",
55
"scripts": {
66
"dev": "vite dev --config=vite.dev.config.js --host=roast-dev.dev",
7-
"build": "vite build",
7+
"build:website": "vite build",
88
"preview": "vite preview",
99
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
1010
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "roast",
33
"private": true,
44
"scripts": {
5-
"build": "turbo build",
5+
"build:website": "turbo build:website",
6+
"build:extension": "turbo build:extension",
67
"dev": "turbo dev",
78
"lint": "turbo lint",
89
"format": "prettier --write \"**/*.{ts,tsx,md}\""

turbo.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,19 @@
1414
".svelte-kit/**"
1515
]
1616
},
17-
"build-extension": {
17+
"build:website": {
18+
"dependsOn": [
19+
"^build"
20+
],
21+
"inputs": [
22+
"$TURBO_DEFAULT$",
23+
".env*"
24+
],
25+
"outputs": [
26+
".svelte-kit/**"
27+
]
28+
},
29+
"build:extension": {
1830
"dependsOn": [
1931
"^build"
2032
],

0 commit comments

Comments
 (0)