Skip to content

Commit 150225a

Browse files
committed
fix: CI
1 parent 35ba9aa commit 150225a

File tree

4 files changed

+37
-14
lines changed

4 files changed

+37
-14
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,18 @@ jobs:
2626
- uses: actions/checkout@v4
2727
with:
2828
fetch-depth: 0 # required for git-diff later
29+
# 2 ▸ Set up pnpm
30+
- uses: pnpm/action-setup@v3
31+
with:
32+
version: 10.12.1
33+
run_install: false
2934

30-
# 2 ▸ Node + pnpm-store cache
35+
# 3 ▸ Node + pnpm-store cache
3136
- uses: actions/setup-node@v4
3237
with:
3338
node-version: 20
3439
cache: pnpm
3540

36-
# 3 ▸ Set up pnpm
37-
- uses: pnpm/action-setup@v3
38-
with:
39-
version: 10.12.1
40-
run_install: false
41-
4241
# 4 ▸ Install deps (deterministic)
4342
- name: Install dependencies
4443
run: pnpm install --frozen-lockfile

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
"packages/*"
77
],
88
"packageManager": "[email protected]",
9+
"references": [
10+
{
11+
"path": "packages/core"
12+
},
13+
{
14+
"path": "packages/cli"
15+
}
16+
],
917
"scripts": {
1018
"preinstall": "npx only-allow pnpm",
1119
"reset": "git clean -fdx && pnpm install --frozen-lockfile && pnpm prepack:core && pnpm i-tarball",
@@ -22,7 +30,7 @@
2230
"format": "prettier --write .",
2331
"lint": "eslint .",
2432
"lint:fix": "eslint . --fix",
25-
"typecheck": "tsc --noEmit",
33+
"typecheck": "tsc --noEmit --project tsconfig.base.json",
2634
"size": "npx esbuild ./packages/core/dist/index.js --bundle --minify --format=esm --external:react --define:process.env.NODE_ENV='\"production\"' | gzip -c | wc -c"
2735
},
2836
"devDependencies": {

packages/core/tsconfig.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
{
22
"extends": "../../tsconfig.base.json",
33
/* — compile exactly one file — */
4-
"include": ["src/**/*"],
5-
"exclude": ["src/postcss/coming-soon"],
4+
"include": [
5+
"src/**/*"
6+
],
7+
"exclude": [
8+
"src/postcss/coming-soon",
9+
"node_modules",
10+
],
611
/* — compiler output — */
712
"compilerOptions": {
813
"target": "ES2020",
@@ -19,4 +24,4 @@
1924
"strict": true, // enable all strict type-checking options
2025
"skipLibCheck": true // Hides all errors coming from node_modules
2126
}
22-
}
27+
}

tsconfig.base.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,21 @@
1212
"declaration": true, // <- emit declaration files
1313
"emitDeclarationOnly": false, // <- emit declaration files only
1414
"outDir": "dist", // <- output directory
15+
"skipLibCheck": true, // <- skip type checking of declaration files in node_modules
1516
/* Maps for monorepo imports like "@react-zero-ui/core" */
1617
"composite": true,
17-
"rootDir": "src",
18+
"rootDir": "./",
1819
"forceConsistentCasingInFileNames": true
1920
},
20-
"exclude": ["dist", "node_modules"]
21-
}
21+
"exclude": [
22+
"dist",
23+
"**/*.tsx",
24+
"**/*.jsx",
25+
"**/*.test.ts",
26+
"pnpm-lock.yaml",
27+
"pnpm-workspace.yaml",
28+
"examples/**",
29+
"**/fixtures/**",
30+
"**/coming-soon/**"
31+
]
32+
}

0 commit comments

Comments
 (0)