Skip to content

Commit 27da761

Browse files
committed
fix: ๐Ÿ› path
1 parent 0aa4954 commit 27da761

File tree

11 files changed

+46
-41
lines changed

11 files changed

+46
-41
lines changed

โ€ŽREADME.mdโ€Ž

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@ bun install -D es-proj
77
### tsconfig.json
88
Available extends:
99

10-
- `es-proj/tsconfig.dom.json`
11-
- `es-proj/tsconfig.node.json`
12-
- `es-proj/tsconfig.react.json`
13-
- `es-proj/tsconfig.rn.json`
10+
- `es-proj/tsconfig/dom`
11+
- `es-proj/tsconfig/node`
12+
- `es-proj/tsconfig/react`
13+
- `es-proj/tsconfig/rn`
1414

1515
```json
1616
{
17-
"extends": "es-proj/tsconfig.react.json",
18-
"compilerOptions": {}
17+
"extends": "es-proj/tsconfig/react"
1918
}
2019
```
2120

โ€Žpackage.jsonโ€Ž

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
"license": "ISC",
55
"keywords": ["biome", "tsconfig"],
66
"author": "Zhang Yiheng (a.k.a Ian) <[email protected]> (https://github.com/ianzone)",
7-
"files": ["biome.json", "tsconfig*.json"],
7+
"files": ["biome.json", "tsconfig/tsconfig*.json"],
88
"exports": {
9-
"./biome": "./biome.json"
9+
"./biome": "./biome.json",
10+
"./tsconfig/*": "./tsconfig/tsconfig.*.json"
1011
},
1112
"scripts": {
1213
"commit": "git add -A && git-cz",

โ€Žtsconfig.jsonโ€Ž

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,4 @@
11
{
2-
"$schema": "https://json.schemastore.org/tsconfig",
3-
"compilerOptions": {
4-
// ๆž„ๅปบ
5-
"lib": ["ESNext"], // ไฝฟ็”จ็š„ๅบ“็š„ๅฃฐๆ˜Ž
6-
"target": "ESNext", // ็”Ÿๆˆ็š„็›ฎๆ ‡ไปฃ็ ่ง„่Œƒ
7-
"module": "ESNext", // ็”Ÿๆˆ็š„ๆจกๅ—่ง„่Œƒ
8-
"moduleResolution": "bundler", // ๅฏไปฅๅœจไฝฟ็”จ็”จ exports ๅฃฐๆ˜Ž็ฑปๅž‹็š„ๅŒๆ—ถ๏ผŒไฝฟ็”จ็›ธๅฏน่ทฏๅพ„ๆจกๅ—ๅฏไปฅไธๅ†™ๆ‰ฉๅฑ•ๅ
9-
"allowImportingTsExtensions": true, // ๅ…่ฎธๅฏผๅ…ฅtsๆ‰ฉๅฑ•ๅ็š„ๆ–‡ไปถ, ๆŸไบ›ๆž„ๅปบๅทฅๅ…ทๅฏ่ƒฝ้œ€่ฆ
10-
"verbatimModuleSyntax": true, // ไฟ็•™ๆจกๅ—็š„ๅŽŸๅง‹่ฏญๆณ•, ๆŸไบ›ๆž„ๅปบๅทฅๅ…ทๅฏ่ƒฝ้œ€่ฆ
11-
"resolveJsonModule": true, // ๅ…่ฎธๅฏผๅ…ฅjsonๆ–‡ไปถ
12-
"noEmit": true,
13-
"outDir": "dist",
14-
"sourceMap": true, // ็”Ÿๆˆๆบๆ˜ ๅฐ„ๆ–‡ไปถ
15-
"mapRoot": "dist/maps",
16-
"sourceRoot": ".", // ๆบๆ–‡ไปถ็š„ๆ น็›ฎๅฝ•
17-
"declaration": true, // ็”Ÿๆˆ .d.ts ๆ–‡ไปถ
18-
"declarationDir": "dist/types",
19-
"incremental": true, // ๅขž้‡็ผ–่ฏ‘
20-
"tsBuildInfoFile": ".cache/.tsbuildinfo", // ๅขž้‡็ผ–่ฏ‘็š„็ผ“ๅญ˜็›ฎๅฝ•
21-
22-
// ๆฃ€ๆŸฅ
23-
"strict": true,
24-
"skipLibCheck": true,
25-
"noUnusedLocals": true,
26-
"noUnusedParameters": true,
27-
"noFallthroughCasesInSwitch": true,
28-
"forceConsistentCasingInFileNames": true
29-
}
2+
"extends": "./tsconfig/tsconfig.base.json",
3+
"compilerOptions": {}
304
}

โ€Žtsconfig.node.jsonโ€Ž

Lines changed: 0 additions & 4 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"compilerOptions": {
4+
// ๆž„ๅปบ
5+
"lib": ["ESNext"], // ไฝฟ็”จ็š„ๅบ“็š„ๅฃฐๆ˜Ž
6+
"target": "ESNext", // ็”Ÿๆˆ็š„็›ฎๆ ‡ไปฃ็ ่ง„่Œƒ
7+
"module": "ESNext", // ็”Ÿๆˆ็š„ๆจกๅ—่ง„่Œƒ
8+
"moduleResolution": "bundler", // ๅฏไปฅๅœจไฝฟ็”จ็”จ exports ๅฃฐๆ˜Ž็ฑปๅž‹็š„ๅŒๆ—ถ๏ผŒไฝฟ็”จ็›ธๅฏน่ทฏๅพ„ๆจกๅ—ๅฏไปฅไธๅ†™ๆ‰ฉๅฑ•ๅ
9+
"allowImportingTsExtensions": true, // ๅ…่ฎธๅฏผๅ…ฅtsๆ‰ฉๅฑ•ๅ็š„ๆ–‡ไปถ, ๆŸไบ›ๆž„ๅปบๅทฅๅ…ทๅฏ่ƒฝ้œ€่ฆ
10+
"verbatimModuleSyntax": true, // ไฟ็•™ๆจกๅ—็š„ๅŽŸๅง‹่ฏญๆณ•, ๆŸไบ›ๆž„ๅปบๅทฅๅ…ทๅฏ่ƒฝ้œ€่ฆ
11+
"resolveJsonModule": true, // ๅ…่ฎธๅฏผๅ…ฅjsonๆ–‡ไปถ
12+
"noEmit": true,
13+
"outDir": "dist",
14+
"sourceMap": true, // ็”Ÿๆˆๆบๆ˜ ๅฐ„ๆ–‡ไปถ
15+
"mapRoot": "dist/maps",
16+
"sourceRoot": ".", // ๆบๆ–‡ไปถ็š„ๆ น็›ฎๅฝ•
17+
"declaration": true, // ็”Ÿๆˆ .d.ts ๆ–‡ไปถ
18+
"declarationDir": "dist/types",
19+
"incremental": true, // ๅขž้‡็ผ–่ฏ‘
20+
"tsBuildInfoFile": ".cache/.tsbuildinfo", // ๅขž้‡็ผ–่ฏ‘็š„็ผ“ๅญ˜็›ฎๅฝ•
21+
"baseUrl": ".",
22+
23+
// ๆฃ€ๆŸฅ
24+
"strict": true,
25+
"skipLibCheck": true,
26+
"noUnusedLocals": true,
27+
"noUnusedParameters": true,
28+
"noFallthroughCasesInSwitch": true,
29+
"forceConsistentCasingInFileNames": true
30+
}
31+
}

โ€Žtsconfig.dom.jsonโ€Ž renamed to โ€Žtsconfig/tsconfig.dom.jsonโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./tsconfig.json",
2+
"extends": "./tsconfig.base.json",
33
"compilerOptions": {
44
"lib": ["ESNext", "DOM"]
55
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "./tsconfig.base.json",
3+
"compilerOptions": {}
4+
}
File renamed without changes.

0 commit comments

Comments
ย (0)