Skip to content

Commit 3fa9d38

Browse files
committed
chore: add turborepo
1 parent e1d9b42 commit 3fa9d38

File tree

4 files changed

+97
-6
lines changed

4 files changed

+97
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
22
dist
3+
.turbo

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
"private": true,
44
"type": "module",
55
"scripts": {
6-
"build": "pnpm -r run build",
7-
"dev": "pnpm -r --parallel run dev",
8-
"test": "pnpm -r run test",
9-
"test:run": "pnpm -r run test:run",
10-
"typecheck": "pnpm -r run typecheck",
6+
"build": "turbo run build",
7+
"dev": "turbo run dev",
8+
"test": "turbo run test",
9+
"test:run": "turbo run test:run",
10+
"typecheck": "turbo run typecheck",
1111
"format": "prettier --write .",
1212
"format:check": "prettier --check ."
1313
},
1414
"devDependencies": {
15-
"prettier": "^3.7.4"
15+
"prettier": "^3.7.4",
16+
"turbo": "^2.6.3"
1617
},
1718
"packageManager": "pnpm@10.25.0"
1819
}

pnpm-lock.yaml

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

turbo.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"tasks": {
4+
"build": {
5+
"dependsOn": ["^build"],
6+
"outputs": ["dist/**"]
7+
},
8+
"dev": {
9+
"cache": false,
10+
"persistent": true
11+
},
12+
"test": {
13+
"cache": false,
14+
"persistent": true
15+
},
16+
"test:run": {
17+
"dependsOn": ["^build"],
18+
"outputs": []
19+
},
20+
"typecheck": {
21+
"dependsOn": ["^build"],
22+
"outputs": []
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)