Skip to content

Commit

Permalink
Added turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpocock committed Feb 20, 2023
1 parent ad72a61 commit 9236e16
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
cache: "pnpm"

- run: pnpm install --frozen-lockfile
- run: pnpm run build && pnpm run lint
- run: pnpm run ci
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
dist
dist
.turbo
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
"repository": "https://github.com/total-typescript/ts-reset",
"scripts": {
"build": "tsx scripts/build.ts",
"lint": "tsc && tsx scripts/lint.ts && check-export-map",
"release": "pnpm run build && pnpm run lint && changeset publish"
"ci": "turbo build check-exports lint lint-pkg-json",
"check-exports": "check-export-map",
"lint": "tsc",
"lint-pkg-json": "tsx scripts/lint.ts",
"release": "changeset publish"
},
"main": "./dist/recommended.js",
"module": "./dist/recommended.mjs",
Expand Down Expand Up @@ -68,6 +71,7 @@
"@types/node": "^18.14.0",
"check-export-map": "^1.3.0",
"tsx": "^3.12.3",
"turbo": "^1.8.1",
"typescript": "^4.9.5"
}
}
63 changes: 63 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"build": {
"outputs": ["dist"]
},
"check-exports": {
"dependsOn": ["build"]
},
"lint": {},
"lint-pkg-json": {},
"publish": {
"dependsOn": ["build", "check-exports", "lint", "lint-pkg-json"],
"cache": false
}
}
}

0 comments on commit 9236e16

Please sign in to comment.