Skip to content
This repository was archived by the owner on Dec 30, 2023. It is now read-only.

Commit 70e034e

Browse files
authored
chore(TypeScript): 🏷 Improve typings and configs (#25)
1 parent 7f6f54f commit 70e034e

File tree

12 files changed

+10592
-25
lines changed

12 files changed

+10592
-25
lines changed

.codeclimate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# https://docs.codeclimate.com/docs/advanced-configuration
22
---
33
exclude_patterns:
4+
- "./types/**/*"
45
- "**/tests/*"
56
- "**/*.test.ts"

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@
5050
"@terminal-nerds/tsup-config": "0.1.1",
5151
"@terminal-nerds/typescript-config": "0.4.0",
5252
"@terminal-nerds/vitest-config": "0.4.0",
53+
"@total-typescript/ts-reset": "0.3.7",
5354
"@types/node": "18.13.0",
5455
"browserslist": "4.21.5",
56+
"bun-types": "0.5.7",
5557
"concurrently": "7.6.0",
5658
"del-cli": "5.0.0",
5759
"depcheck": "1.4.3",

packages/regexp/tsconfig.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
3-
"extends": "@terminal-nerds/typescript-config",
3+
"extends": "../../tsconfig.json",
44
"compilerOptions": {
5-
"module": "ESNext",
6-
"moduleResolution": "NodeNext",
75
"tsBuildInfoFile": "./node_modules/.cache/tsbuildinfo"
86
},
97
"exclude": ["dist/", "node_modules/"],
10-
"include": ["source/", "tests/", "./tsup.config.ts"]
8+
"include": ["coverage/", "source/", "tests/", "./tsup.config.ts", "../../types/*.d.ts"]
119
}

packages/snippets/tsconfig.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
3-
"extends": "@terminal-nerds/typescript-config",
3+
"extends": "../../tsconfig.json",
44
"compilerOptions": {
5-
"module": "ESNext",
6-
"moduleResolution": "NodeNext",
75
"tsBuildInfoFile": "./node_modules/.cache/tsbuildinfo"
86
},
97
"exclude": ["dist/", "node_modules/"],
10-
"include": ["source/", "./tsup.config.ts"]
8+
"include": ["coverage/", "source/", "tests/", "./tsup.config.ts", "../../types/*.d.ts"]
119
}

packages/string/tsconfig.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
3-
"extends": "@terminal-nerds/typescript-config",
3+
"extends": "../../tsconfig.json",
44
"compilerOptions": {
5-
"module": "ESNext",
6-
"moduleResolution": "NodeNext",
75
"tsBuildInfoFile": "./node_modules/.cache/tsbuildinfo"
86
},
97
"exclude": ["dist/", "node_modules/"],
10-
"include": ["source/", "tests/", "./tsup.config.ts"]
8+
"include": ["coverage/", "source/", "tests/", "./tsup.config.ts", "../../types/*.d.ts"]
119
}

pnpm-lock.yaml

Lines changed: 33 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
3-
"extends": "@terminal-nerds/typescript-config",
3+
"extends": "../../tsconfig.json",
44
"compilerOptions": {
5-
"module": "ESNext",
6-
"moduleResolution": "NodeNext",
75
"tsBuildInfoFile": "./node_modules/.cache/tsbuildinfo"
86
},
97
"exclude": ["dist/", "node_modules/"],
10-
"include": ["source/", "tests/", "./tsup.config.ts"]
8+
"include": ["coverage/", "source/", "tests/", "./tsup.config.ts", "../../types/*.d.ts"]
119
}

scripts/generate/tsconfig.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
3-
"extends": "@terminal-nerds/typescript-config",
3+
"extends": "../../tsconfig.json",
44
"compilerOptions": {
5-
"module": "ESNext",
6-
"moduleResolution": "NodeNext",
75
"tsBuildInfoFile": "./node_modules/.cache/tsbuildinfo"
86
},
97
"exclude": ["dist/", "node_modules/"],
10-
"include": ["source/"]
8+
"include": ["source/", "./tsup.config.ts", "../../types/*.d.ts"]
119
}

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
"$schema": "https://json.schemastore.org/tsconfig",
33
"extends": "@terminal-nerds/typescript-config",
44
"compilerOptions": {
5+
"lib": ["DOM", "ESNext"],
56
"module": "ESNext",
67
"moduleResolution": "NodeNext",
78
"tsBuildInfoFile": "./node_modules/.cache/tsbuildinfo"
89
},
9-
"exclude": ["dist/", "node_modules/"],
10-
"include": ["source/", "./tsup.config.ts", "./vitest.config.ts"]
10+
"exclude": ["coverage/", "dist/", "node_modules/", "packages/*/coverage/", "packages/*/dist"],
11+
"include": ["packages/", "./tsup.config.ts", "./vitest.config.ts", "types/*.d.ts"]
1112
}

types/bun.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import "bun-types";

0 commit comments

Comments
 (0)