@kcconfigs/tsconfig 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/package.json +59 -0
- package/src/base/tsconfig.json +31 -0
- package/src/tsconfig.base.json +8 -0
- package/src/tsconfig.bundler.json +12 -0
- package/src/tsconfig.default.json +18 -0
- package/src/tsconfig.dts.json +10 -0
- package/src/tsconfig.root.json +4 -0
- package/src/tsconfig.zshy.json +12 -0
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# TSConfig
|
|
2
|
+
|
|
3
|
+
## When use internally
|
|
4
|
+
|
|
5
|
+
When using this package inside this mono-repo, Relative path `./node_modules` is required for types package to resolve correctly.
|
|
6
|
+
|
|
7
|
+
Except any config without custom typeRoots (e.g. base).
|
|
8
|
+
|
|
9
|
+
## Todo list
|
|
10
|
+
|
|
11
|
+
- [ ] - Try install externally if package resolution works?
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kcconfigs/tsconfig",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Common typescript configuration for kc's",
|
|
5
|
+
"devDependencies": {
|
|
6
|
+
"@types/node": "^24.0.0",
|
|
7
|
+
"@biomejs/biome": "2.3.8",
|
|
8
|
+
"@kcconfigs/biome": "0.0.1",
|
|
9
|
+
"@kctypes/generic": "1.30.3",
|
|
10
|
+
"@kctypes/package_json": "1.30.4"
|
|
11
|
+
},
|
|
12
|
+
"peerDependencies": {
|
|
13
|
+
"typescript": "^5.0.0"
|
|
14
|
+
},
|
|
15
|
+
"main": "./src/tsconfig.default.json",
|
|
16
|
+
"exports": {
|
|
17
|
+
"./base": "./src/tsconfig.base.json",
|
|
18
|
+
"./root": "./src/tsconfig.root.json",
|
|
19
|
+
"./default": "./src/tsconfig.default.json",
|
|
20
|
+
"./dts": "./src/tsconfig.dts.json",
|
|
21
|
+
"./bundler": "./src/tsconfig.bundler.json",
|
|
22
|
+
"./zshy": "./src/tsconfig.zshy.json"
|
|
23
|
+
},
|
|
24
|
+
"license": "AGPL-3.0-only",
|
|
25
|
+
"homepage": "https://github.com/kc-workspace/kcws/tree/main/packages/@kcconfigs/tsconfig",
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"directory": "@kcconfigs/tsconfig",
|
|
29
|
+
"url": "git+https://github.com/kc-workspace/kcws.git"
|
|
30
|
+
},
|
|
31
|
+
"author": {
|
|
32
|
+
"name": "Kamontat Chantrachirathumrong",
|
|
33
|
+
"email": "kcws@kc.in.th",
|
|
34
|
+
"url": "https://github.com/kamontat"
|
|
35
|
+
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"config",
|
|
38
|
+
"typescript",
|
|
39
|
+
"tsconfig"
|
|
40
|
+
],
|
|
41
|
+
"files": [
|
|
42
|
+
"CHANGELOG.json",
|
|
43
|
+
"CHANGELOG.md",
|
|
44
|
+
"src"
|
|
45
|
+
],
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": ">=14"
|
|
48
|
+
},
|
|
49
|
+
"publishConfig": {
|
|
50
|
+
"access": "public"
|
|
51
|
+
},
|
|
52
|
+
"scripts": {
|
|
53
|
+
"fix": "biome check --fix --unsafe",
|
|
54
|
+
"format": "biome format --fix",
|
|
55
|
+
"format:check": "biome format",
|
|
56
|
+
"lint": "biome lint --fix --unsafe",
|
|
57
|
+
"lint:check": "biome lint"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
// Project performance optimizations
|
|
5
|
+
"incremental": true,
|
|
6
|
+
"composite": true,
|
|
7
|
+
|
|
8
|
+
// Environment setup & latest features
|
|
9
|
+
"target": "ESNext",
|
|
10
|
+
"module": "Preserve",
|
|
11
|
+
"moduleDetection": "force",
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
|
|
14
|
+
// Output settings
|
|
15
|
+
"isolatedModules": true,
|
|
16
|
+
"esModuleInterop": true,
|
|
17
|
+
"forceConsistentCasingInFileNames": true,
|
|
18
|
+
|
|
19
|
+
// Best practices
|
|
20
|
+
"strict": true,
|
|
21
|
+
"skipLibCheck": true,
|
|
22
|
+
"noFallthroughCasesInSwitch": true,
|
|
23
|
+
"noUncheckedIndexedAccess": true,
|
|
24
|
+
"noImplicitOverride": true,
|
|
25
|
+
|
|
26
|
+
// Some stricter flags (disabled by default)
|
|
27
|
+
"noUnusedLocals": true,
|
|
28
|
+
"noUnusedParameters": true,
|
|
29
|
+
"noPropertyAccessFromIndexSignature": true
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.schemastore.org/tsconfig",
|
|
3
|
+
"extends": "./tsconfig.default.json",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
// Bundler mode
|
|
6
|
+
"moduleResolution": "bundler",
|
|
7
|
+
"allowImportingTsExtensions": true,
|
|
8
|
+
"noEmit": true,
|
|
9
|
+
|
|
10
|
+
"isolatedDeclarations": true
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.schemastore.org/tsconfig",
|
|
3
|
+
"extends": "./tsconfig.base.json",
|
|
4
|
+
"include": ["../../../../package.json", "../../../../src/**/*.ts"],
|
|
5
|
+
"exclude": ["../../../../src/**/*.test.ts"],
|
|
6
|
+
"compilerOptions": {
|
|
7
|
+
"rootDir": "../../../..",
|
|
8
|
+
"outDir": "../../../../dist",
|
|
9
|
+
"typeRoots": [
|
|
10
|
+
"../node_modules/@types",
|
|
11
|
+
"../node_modules/@kctypes",
|
|
12
|
+
"../../../../node_modules/@types",
|
|
13
|
+
"../../../../node_modules/@kctypes"
|
|
14
|
+
],
|
|
15
|
+
|
|
16
|
+
"verbatimModuleSyntax": true
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.schemastore.org/tsconfig",
|
|
3
|
+
"extends": "./tsconfig.default.json",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"incremental": false,
|
|
6
|
+
"sourceMap": true,
|
|
7
|
+
"declaration": true,
|
|
8
|
+
"declarationMap": true,
|
|
9
|
+
"isolatedDeclarations": true,
|
|
10
|
+
"emitDeclarationOnly": true
|
|
11
|
+
}
|
|
12
|
+
}
|