Skip to content

Commit 9236e16

Browse files
committed
Added turbo
1 parent ad72a61 commit 9236e16

File tree

5 files changed

+89
-4
lines changed

5 files changed

+89
-4
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ jobs:
1818
cache: "pnpm"
1919

2020
- run: pnpm install --frozen-lockfile
21-
- run: pnpm run build && pnpm run lint
21+
- run: pnpm run ci

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2-
dist
2+
dist
3+
.turbo

package.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66
"repository": "https://github.com/total-typescript/ts-reset",
77
"scripts": {
88
"build": "tsx scripts/build.ts",
9-
"lint": "tsc && tsx scripts/lint.ts && check-export-map",
10-
"release": "pnpm run build && pnpm run lint && changeset publish"
9+
"ci": "turbo build check-exports lint lint-pkg-json",
10+
"check-exports": "check-export-map",
11+
"lint": "tsc",
12+
"lint-pkg-json": "tsx scripts/lint.ts",
13+
"release": "changeset publish"
1114
},
1215
"main": "./dist/recommended.js",
1316
"module": "./dist/recommended.mjs",
@@ -68,6 +71,7 @@
6871
"@types/node": "^18.14.0",
6972
"check-export-map": "^1.3.0",
7073
"tsx": "^3.12.3",
74+
"turbo": "^1.8.1",
7175
"typescript": "^4.9.5"
7276
}
7377
}

pnpm-lock.yaml

+63
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

turbo.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"pipeline": {
4+
"build": {
5+
"outputs": ["dist"]
6+
},
7+
"check-exports": {
8+
"dependsOn": ["build"]
9+
},
10+
"lint": {},
11+
"lint-pkg-json": {},
12+
"publish": {
13+
"dependsOn": ["build", "check-exports", "lint", "lint-pkg-json"],
14+
"cache": false
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)