Skip to content

Commit 4facf05

Browse files
committed
build: add turbo for faster builds
1 parent 08cf20c commit 4facf05

File tree

15 files changed

+210
-160
lines changed

15 files changed

+210
-160
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ exe/
1919
.cache/
2020

2121
coverage
22+
.turbo

dist/actions/setup-cpp.js

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

dist/actions/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/setup-cpp.js

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

dist/legacy/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/modern/setup-cpp.js

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

dist/modern/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@
2727
"tsconfig.json"
2828
],
2929
"scripts": {
30-
"build": "run-s clean build.packages && run-p lint.tsc build.parcel copy.matchers",
31-
"build.packages": "pnpm run -r build",
32-
"build.parcel": "cross-env NODE_ENV=production parcel build && run-s build.babel && shx cp -r ./dist/actions/* ./dist/modern",
33-
"build.babel": "babel ./dist --out-dir dist --plugins @upleveled/babel-plugin-remove-node-prefix --plugins @babel/plugin-transform-private-methods --compact --no-babelrc --source-maps true",
30+
"build": "turbo build && pnpm run build.root",
31+
"build.root": "run-p lint.tsc build.root.parcel copy.matchers && run-s build.root.babel build.root.modern",
32+
"build.root.parcel": "cross-env NODE_ENV=production parcel build",
33+
"build.root.babel": "babel ./dist --out-dir dist --plugins @upleveled/babel-plugin-remove-node-prefix --plugins @babel/plugin-transform-private-methods --compact --no-babelrc --source-maps true",
34+
"build.root.modern": "shx cp -r ./dist/actions/* ./dist/modern",
3435
"bump": "ncu -u -x numerous,execa,prettier,@types/node,eslint,@types/eslint && pnpm update && pnpx typesync && pnpm run clean",
3536
"clean": "shx rm -rf ./dist ./exe ./packages/*/dist/ ./.parcel-cache && shx mkdir -p ./dist/legacy ./dist/actions ./dist/modern ",
3637
"copy.matchers": "run-p copy.matchers.legacy copy.matchers.actions",
@@ -117,6 +118,7 @@
117118
"time-delta": "github:aminya/time-delta#69d91a41cef28e569be9a2991129f5f7d1f0d00e",
118119
"ts-node": "^10.9.2",
119120
"ts-readme": "^1.1.3",
121+
"turbo": "2.0.5",
120122
"typescript": "^5.5.4",
121123
"ubuntu-version": "^2.0.0",
122124
"untildify-user": "workspace:*",
@@ -160,6 +162,10 @@
160162
"node": ">=12.x",
161163
"pnpm": "^9"
162164
},
165+
"packageManager": "[email protected]",
166+
"workspaces": [
167+
"packages/*"
168+
],
163169
"keywords": [
164170
"github-actions",
165171
"actions",

packages/ci-log/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"main": "./dist/index.js",
99
"source": "./src/index.ts",
1010
"scripts": {
11-
"build": "tsc"
11+
"build": "tsc --pretty",
12+
"lint": "tsc --noEmit --pretty"
1213
},
1314
"dependencies": {
1415
"@actions/core": "^1.10.1",

packages/exec-powershell/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"main": "./dist/index.js",
99
"source": "./src/index.ts",
1010
"scripts": {
11-
"build": "tsc"
11+
"build": "tsc --pretty",
12+
"lint": "tsc --noEmit --pretty"
1213
},
1314
"dependencies": {
1415
"execa": "<8",

0 commit comments

Comments
 (0)