Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit ffa1d51

Browse files
committed
Fix package.json scripts
1 parent 4387da0 commit ffa1d51

File tree

4 files changed

+23
-7
lines changed

4 files changed

+23
-7
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ jobs:
5151
run: pnpm install
5252

5353
- name: Run TypeScript (no emit)
54-
run: pnpm tsc:check
54+
run: pnpm all:ts-check
5555

5656
- name: Build
57-
run: pnpm build
57+
run: pnpm all:build
5858

5959
- name: Run tests
60-
run: pnpm test
60+
run: pnpm all:test
6161

6262
- name: Release
6363
if: github.repository_owner == 'vintl-dev'

.github/workflows/test-pr.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ jobs:
5050
run: pnpm install
5151

5252
- name: Run linter
53-
run: pnpm lint
53+
run: pnpm all:lint
5454

5555
- name: Run TypeScript (no emit)
56-
run: pnpm tsc:check
56+
run: pnpm all:ts-check
5757

5858
- name: Build
59-
run: pnpm build
59+
run: pnpm all:build
6060

6161
- name: Run tests
62-
run: pnpm test
62+
run: pnpm all:test

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
"description": "Monorepository for all the Unplugins related to VIntl library",
66
"repository": "github:vintl-dev/unplugins",
77
"license": "MIT",
8+
"scripts": {
9+
"all:ts-check": "turbo ts-check",
10+
"all:lint": "turbo lint",
11+
"all:build": "turbo build",
12+
"all:test": "turbo test"
13+
},
814
"engines": {
915
"node": ">=16"
1016
},

turbo.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,21 @@
55
"outputs": ["dist"]
66
},
77
"@vintl/unplugin#lint": {},
8+
"@vintl/unplugin#tsc:check": {},
9+
"@vintl/unplugin#test": {
10+
"dependsOn": ["@vintl/unplugin#build"]
11+
},
812
"//#build": {
913
"dependsOn": ["@vintl/unplugin#build"]
1014
},
1115
"//#lint": {
1216
"dependsOn": ["@vintl/unplugin#lint"]
17+
},
18+
"//#ts-check": {
19+
"dependsOn": ["@vintl/unplugin#tsc:check"]
20+
},
21+
"//#test": {
22+
"dependsOn": ["@vintl/unplugin#test"]
1323
}
1424
}
1525
}

0 commit comments

Comments
 (0)