@ocavue/tsconfig 0.3.3 → 0.3.4
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/CHANGELOG.md +7 -0
- package/dom/app.json +53 -5
- package/dom/build-bundler.json +55 -5
- package/dom/build-tsc.json +54 -5
- package/dom/root.json +53 -5
- package/es/app.json +47 -9
- package/es/build-bundler.json +49 -9
- package/es/build-tsc.json +48 -11
- package/es/root.json +47 -9
- package/package.json +8 -1
- package/include/all.json +0 -6
- package/include/root.json +0 -6
- package/include/src.json +0 -9
- package/module/bundler.json +0 -8
- package/module/node.json +0 -7
- package/shared/base.json +0 -43
- package/shared/dom.json +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.3.4](https://github.com/ocavue/tsconfig/compare/v0.3.3...v0.3.4) (2025-04-17)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* inline extends ([#15](https://github.com/ocavue/tsconfig/issues/15)) ([158f94c](https://github.com/ocavue/tsconfig/commit/158f94c226e73e1263f22cf4d568e40b6e623757))
|
|
9
|
+
|
|
3
10
|
## [0.3.3](https://github.com/ocavue/tsconfig/compare/v0.3.2...v0.3.3) (2025-04-13)
|
|
4
11
|
|
|
5
12
|
|
package/dom/app.json
CHANGED
|
@@ -1,7 +1,55 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"target": "ES2020",
|
|
6
|
+
|
|
7
|
+
// Enable all strict type-checking options.
|
|
8
|
+
"strict": true,
|
|
9
|
+
// Disable unused local variables.
|
|
10
|
+
"noUnusedLocals": true,
|
|
11
|
+
// Force you to use "override" keyword when overriding a method.
|
|
12
|
+
"noImplicitOverride": true,
|
|
13
|
+
// Disable fallthrough cases in switch statements.
|
|
14
|
+
"noFallthroughCasesInSwitch": true,
|
|
15
|
+
// Emit additional JavaScript to ease support for importing CommonJS
|
|
16
|
+
// modules. This is necessary for some libraries with CommonJS/AMD/UMD
|
|
17
|
+
// modules.
|
|
18
|
+
"esModuleInterop": true,
|
|
19
|
+
// Skip type checking all .d.ts files. This improves performance and
|
|
20
|
+
// reduces the number of errors that you cannot fix directly.
|
|
21
|
+
"skipLibCheck": true,
|
|
22
|
+
// Allow JavaScript files to be included in the project.
|
|
23
|
+
"allowJs": true,
|
|
24
|
+
// Allow JSON files to be imported as modules.
|
|
25
|
+
"resolveJsonModule": true,
|
|
26
|
+
// Force TypeScript to consider all files as modules. This helps to avoid
|
|
27
|
+
// ['cannot redeclare block-scoped variable'](https://www.totaltypescript.com/cannot-redeclare-block-scoped-variable)
|
|
28
|
+
// errors.
|
|
29
|
+
"moduleDetection": "force",
|
|
30
|
+
// Prevents a few TS features which are unsafe when treating modules as
|
|
31
|
+
// isolated files.
|
|
32
|
+
"isolatedModules": true,
|
|
33
|
+
// Force you to use import type and export type
|
|
34
|
+
"verbatimModuleSyntax": true,
|
|
35
|
+
// Ensure that casing is correct in imports.
|
|
36
|
+
"forceConsistentCasingInFileNames": true,
|
|
37
|
+
// Allow TypeScript to cache build information and skip compilation
|
|
38
|
+
// when no changes are detected.
|
|
39
|
+
"composite": true,
|
|
40
|
+
|
|
41
|
+
"lib": [
|
|
42
|
+
"ESNext",
|
|
43
|
+
"ESNext.AsyncIterable",
|
|
44
|
+
"DOM",
|
|
45
|
+
"DOM.Iterable",
|
|
46
|
+
"DOM.AsyncIterable"
|
|
47
|
+
],
|
|
48
|
+
|
|
49
|
+
"module": "preserve",
|
|
50
|
+
"moduleResolution": "bundler",
|
|
51
|
+
"emitDeclarationOnly": true
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
"include": ["${configDir}/**/*"]
|
|
7
55
|
}
|
package/dom/build-bundler.json
CHANGED
|
@@ -1,7 +1,57 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"target": "ES2020",
|
|
6
|
+
|
|
7
|
+
// Enable all strict type-checking options.
|
|
8
|
+
"strict": true,
|
|
9
|
+
// Disable unused local variables.
|
|
10
|
+
"noUnusedLocals": true,
|
|
11
|
+
// Force you to use "override" keyword when overriding a method.
|
|
12
|
+
"noImplicitOverride": true,
|
|
13
|
+
// Disable fallthrough cases in switch statements.
|
|
14
|
+
"noFallthroughCasesInSwitch": true,
|
|
15
|
+
// Emit additional JavaScript to ease support for importing CommonJS
|
|
16
|
+
// modules. This is necessary for some libraries with CommonJS/AMD/UMD
|
|
17
|
+
// modules.
|
|
18
|
+
"esModuleInterop": true,
|
|
19
|
+
// Skip type checking all .d.ts files. This improves performance and
|
|
20
|
+
// reduces the number of errors that you cannot fix directly.
|
|
21
|
+
"skipLibCheck": true,
|
|
22
|
+
// Allow JavaScript files to be included in the project.
|
|
23
|
+
"allowJs": true,
|
|
24
|
+
// Allow JSON files to be imported as modules.
|
|
25
|
+
"resolveJsonModule": true,
|
|
26
|
+
// Force TypeScript to consider all files as modules. This helps to avoid
|
|
27
|
+
// ['cannot redeclare block-scoped variable'](https://www.totaltypescript.com/cannot-redeclare-block-scoped-variable)
|
|
28
|
+
// errors.
|
|
29
|
+
"moduleDetection": "force",
|
|
30
|
+
// Prevents a few TS features which are unsafe when treating modules as
|
|
31
|
+
// isolated files.
|
|
32
|
+
"isolatedModules": true,
|
|
33
|
+
// Force you to use import type and export type
|
|
34
|
+
"verbatimModuleSyntax": true,
|
|
35
|
+
// Ensure that casing is correct in imports.
|
|
36
|
+
"forceConsistentCasingInFileNames": true,
|
|
37
|
+
// Allow TypeScript to cache build information and skip compilation
|
|
38
|
+
// when no changes are detected.
|
|
39
|
+
"composite": true,
|
|
40
|
+
|
|
41
|
+
"lib": [
|
|
42
|
+
"ESNext",
|
|
43
|
+
"ESNext.AsyncIterable",
|
|
44
|
+
"DOM",
|
|
45
|
+
"DOM.Iterable",
|
|
46
|
+
"DOM.AsyncIterable"
|
|
47
|
+
],
|
|
48
|
+
|
|
49
|
+
"module": "preserve",
|
|
50
|
+
"moduleResolution": "bundler",
|
|
51
|
+
"emitDeclarationOnly": true,
|
|
52
|
+
|
|
53
|
+
"rootDir": "${configDir}/src"
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
"include": ["src/**/*"]
|
|
7
57
|
}
|
package/dom/build-tsc.json
CHANGED
|
@@ -1,7 +1,56 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"target": "ES2020",
|
|
6
|
+
|
|
7
|
+
// Enable all strict type-checking options.
|
|
8
|
+
"strict": true,
|
|
9
|
+
// Disable unused local variables.
|
|
10
|
+
"noUnusedLocals": true,
|
|
11
|
+
// Force you to use "override" keyword when overriding a method.
|
|
12
|
+
"noImplicitOverride": true,
|
|
13
|
+
// Disable fallthrough cases in switch statements.
|
|
14
|
+
"noFallthroughCasesInSwitch": true,
|
|
15
|
+
// Emit additional JavaScript to ease support for importing CommonJS
|
|
16
|
+
// modules. This is necessary for some libraries with CommonJS/AMD/UMD
|
|
17
|
+
// modules.
|
|
18
|
+
"esModuleInterop": true,
|
|
19
|
+
// Skip type checking all .d.ts files. This improves performance and
|
|
20
|
+
// reduces the number of errors that you cannot fix directly.
|
|
21
|
+
"skipLibCheck": true,
|
|
22
|
+
// Allow JavaScript files to be included in the project.
|
|
23
|
+
"allowJs": true,
|
|
24
|
+
// Allow JSON files to be imported as modules.
|
|
25
|
+
"resolveJsonModule": true,
|
|
26
|
+
// Force TypeScript to consider all files as modules. This helps to avoid
|
|
27
|
+
// ['cannot redeclare block-scoped variable'](https://www.totaltypescript.com/cannot-redeclare-block-scoped-variable)
|
|
28
|
+
// errors.
|
|
29
|
+
"moduleDetection": "force",
|
|
30
|
+
// Prevents a few TS features which are unsafe when treating modules as
|
|
31
|
+
// isolated files.
|
|
32
|
+
"isolatedModules": true,
|
|
33
|
+
// Force you to use import type and export type
|
|
34
|
+
"verbatimModuleSyntax": true,
|
|
35
|
+
// Ensure that casing is correct in imports.
|
|
36
|
+
"forceConsistentCasingInFileNames": true,
|
|
37
|
+
// Allow TypeScript to cache build information and skip compilation
|
|
38
|
+
// when no changes are detected.
|
|
39
|
+
"composite": true,
|
|
40
|
+
|
|
41
|
+
"lib": [
|
|
42
|
+
"ESNext",
|
|
43
|
+
"ESNext.AsyncIterable",
|
|
44
|
+
"DOM",
|
|
45
|
+
"DOM.Iterable",
|
|
46
|
+
"DOM.AsyncIterable"
|
|
47
|
+
],
|
|
48
|
+
|
|
49
|
+
"module": "NodeNext",
|
|
50
|
+
"moduleResolution": "NodeNext",
|
|
51
|
+
|
|
52
|
+
"rootDir": "${configDir}/src"
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
"include": ["src/**/*"]
|
|
7
56
|
}
|
package/dom/root.json
CHANGED
|
@@ -1,7 +1,55 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"target": "ES2020",
|
|
6
|
+
|
|
7
|
+
// Enable all strict type-checking options.
|
|
8
|
+
"strict": true,
|
|
9
|
+
// Disable unused local variables.
|
|
10
|
+
"noUnusedLocals": true,
|
|
11
|
+
// Force you to use "override" keyword when overriding a method.
|
|
12
|
+
"noImplicitOverride": true,
|
|
13
|
+
// Disable fallthrough cases in switch statements.
|
|
14
|
+
"noFallthroughCasesInSwitch": true,
|
|
15
|
+
// Emit additional JavaScript to ease support for importing CommonJS
|
|
16
|
+
// modules. This is necessary for some libraries with CommonJS/AMD/UMD
|
|
17
|
+
// modules.
|
|
18
|
+
"esModuleInterop": true,
|
|
19
|
+
// Skip type checking all .d.ts files. This improves performance and
|
|
20
|
+
// reduces the number of errors that you cannot fix directly.
|
|
21
|
+
"skipLibCheck": true,
|
|
22
|
+
// Allow JavaScript files to be included in the project.
|
|
23
|
+
"allowJs": true,
|
|
24
|
+
// Allow JSON files to be imported as modules.
|
|
25
|
+
"resolveJsonModule": true,
|
|
26
|
+
// Force TypeScript to consider all files as modules. This helps to avoid
|
|
27
|
+
// ['cannot redeclare block-scoped variable'](https://www.totaltypescript.com/cannot-redeclare-block-scoped-variable)
|
|
28
|
+
// errors.
|
|
29
|
+
"moduleDetection": "force",
|
|
30
|
+
// Prevents a few TS features which are unsafe when treating modules as
|
|
31
|
+
// isolated files.
|
|
32
|
+
"isolatedModules": true,
|
|
33
|
+
// Force you to use import type and export type
|
|
34
|
+
"verbatimModuleSyntax": true,
|
|
35
|
+
// Ensure that casing is correct in imports.
|
|
36
|
+
"forceConsistentCasingInFileNames": true,
|
|
37
|
+
// Allow TypeScript to cache build information and skip compilation
|
|
38
|
+
// when no changes are detected.
|
|
39
|
+
"composite": true,
|
|
40
|
+
|
|
41
|
+
"lib": [
|
|
42
|
+
"ESNext",
|
|
43
|
+
"ESNext.AsyncIterable",
|
|
44
|
+
"DOM",
|
|
45
|
+
"DOM.Iterable",
|
|
46
|
+
"DOM.AsyncIterable"
|
|
47
|
+
],
|
|
48
|
+
|
|
49
|
+
"module": "preserve",
|
|
50
|
+
"moduleResolution": "bundler",
|
|
51
|
+
"emitDeclarationOnly": true
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
"include": ["${configDir}/*"]
|
|
7
55
|
}
|
package/es/app.json
CHANGED
|
@@ -1,11 +1,49 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"target": "ES2020",
|
|
6
|
+
|
|
7
|
+
// Enable all strict type-checking options.
|
|
8
|
+
"strict": true,
|
|
9
|
+
// Disable unused local variables.
|
|
10
|
+
"noUnusedLocals": true,
|
|
11
|
+
// Force you to use "override" keyword when overriding a method.
|
|
12
|
+
"noImplicitOverride": true,
|
|
13
|
+
// Disable fallthrough cases in switch statements.
|
|
14
|
+
"noFallthroughCasesInSwitch": true,
|
|
15
|
+
// Emit additional JavaScript to ease support for importing CommonJS
|
|
16
|
+
// modules. This is necessary for some libraries with CommonJS/AMD/UMD
|
|
17
|
+
// modules.
|
|
18
|
+
"esModuleInterop": true,
|
|
19
|
+
// Skip type checking all .d.ts files. This improves performance and
|
|
20
|
+
// reduces the number of errors that you cannot fix directly.
|
|
21
|
+
"skipLibCheck": true,
|
|
22
|
+
// Allow JavaScript files to be included in the project.
|
|
23
|
+
"allowJs": true,
|
|
24
|
+
// Allow JSON files to be imported as modules.
|
|
25
|
+
"resolveJsonModule": true,
|
|
26
|
+
// Force TypeScript to consider all files as modules. This helps to avoid
|
|
27
|
+
// ['cannot redeclare block-scoped variable'](https://www.totaltypescript.com/cannot-redeclare-block-scoped-variable)
|
|
28
|
+
// errors.
|
|
29
|
+
"moduleDetection": "force",
|
|
30
|
+
// Prevents a few TS features which are unsafe when treating modules as
|
|
31
|
+
// isolated files.
|
|
32
|
+
"isolatedModules": true,
|
|
33
|
+
// Force you to use import type and export type
|
|
34
|
+
"verbatimModuleSyntax": true,
|
|
35
|
+
// Ensure that casing is correct in imports.
|
|
36
|
+
"forceConsistentCasingInFileNames": true,
|
|
37
|
+
// Allow TypeScript to cache build information and skip compilation
|
|
38
|
+
// when no changes are detected.
|
|
39
|
+
"composite": true,
|
|
40
|
+
|
|
41
|
+
"lib": ["ESNext", "ESNext.AsyncIterable"],
|
|
42
|
+
|
|
43
|
+
"module": "preserve",
|
|
44
|
+
"moduleResolution": "bundler",
|
|
45
|
+
"emitDeclarationOnly": true
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
"include": ["${configDir}/**/*"]
|
|
11
49
|
}
|
package/es/build-bundler.json
CHANGED
|
@@ -1,11 +1,51 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"target": "ES2020",
|
|
6
|
+
|
|
7
|
+
// Enable all strict type-checking options.
|
|
8
|
+
"strict": true,
|
|
9
|
+
// Disable unused local variables.
|
|
10
|
+
"noUnusedLocals": true,
|
|
11
|
+
// Force you to use "override" keyword when overriding a method.
|
|
12
|
+
"noImplicitOverride": true,
|
|
13
|
+
// Disable fallthrough cases in switch statements.
|
|
14
|
+
"noFallthroughCasesInSwitch": true,
|
|
15
|
+
// Emit additional JavaScript to ease support for importing CommonJS
|
|
16
|
+
// modules. This is necessary for some libraries with CommonJS/AMD/UMD
|
|
17
|
+
// modules.
|
|
18
|
+
"esModuleInterop": true,
|
|
19
|
+
// Skip type checking all .d.ts files. This improves performance and
|
|
20
|
+
// reduces the number of errors that you cannot fix directly.
|
|
21
|
+
"skipLibCheck": true,
|
|
22
|
+
// Allow JavaScript files to be included in the project.
|
|
23
|
+
"allowJs": true,
|
|
24
|
+
// Allow JSON files to be imported as modules.
|
|
25
|
+
"resolveJsonModule": true,
|
|
26
|
+
// Force TypeScript to consider all files as modules. This helps to avoid
|
|
27
|
+
// ['cannot redeclare block-scoped variable'](https://www.totaltypescript.com/cannot-redeclare-block-scoped-variable)
|
|
28
|
+
// errors.
|
|
29
|
+
"moduleDetection": "force",
|
|
30
|
+
// Prevents a few TS features which are unsafe when treating modules as
|
|
31
|
+
// isolated files.
|
|
32
|
+
"isolatedModules": true,
|
|
33
|
+
// Force you to use import type and export type
|
|
34
|
+
"verbatimModuleSyntax": true,
|
|
35
|
+
// Ensure that casing is correct in imports.
|
|
36
|
+
"forceConsistentCasingInFileNames": true,
|
|
37
|
+
// Allow TypeScript to cache build information and skip compilation
|
|
38
|
+
// when no changes are detected.
|
|
39
|
+
"composite": true,
|
|
40
|
+
|
|
41
|
+
"lib": ["ESNext", "ESNext.AsyncIterable"],
|
|
42
|
+
|
|
43
|
+
"module": "preserve",
|
|
44
|
+
"moduleResolution": "bundler",
|
|
45
|
+
"emitDeclarationOnly": true,
|
|
46
|
+
|
|
47
|
+
"rootDir": "${configDir}/src"
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
"include": ["src/**/*"]
|
|
11
51
|
}
|
package/es/build-tsc.json
CHANGED
|
@@ -1,13 +1,50 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"target": "ES2020",
|
|
6
|
+
|
|
7
|
+
// Enable all strict type-checking options.
|
|
8
|
+
"strict": true,
|
|
9
|
+
// Disable unused local variables.
|
|
10
|
+
"noUnusedLocals": true,
|
|
11
|
+
// Force you to use "override" keyword when overriding a method.
|
|
12
|
+
"noImplicitOverride": true,
|
|
13
|
+
// Disable fallthrough cases in switch statements.
|
|
14
|
+
"noFallthroughCasesInSwitch": true,
|
|
15
|
+
// Emit additional JavaScript to ease support for importing CommonJS
|
|
16
|
+
// modules. This is necessary for some libraries with CommonJS/AMD/UMD
|
|
17
|
+
// modules.
|
|
18
|
+
"esModuleInterop": true,
|
|
19
|
+
// Skip type checking all .d.ts files. This improves performance and
|
|
20
|
+
// reduces the number of errors that you cannot fix directly.
|
|
21
|
+
"skipLibCheck": true,
|
|
22
|
+
// Allow JavaScript files to be included in the project.
|
|
23
|
+
"allowJs": true,
|
|
24
|
+
// Allow JSON files to be imported as modules.
|
|
25
|
+
"resolveJsonModule": true,
|
|
26
|
+
// Force TypeScript to consider all files as modules. This helps to avoid
|
|
27
|
+
// ['cannot redeclare block-scoped variable'](https://www.totaltypescript.com/cannot-redeclare-block-scoped-variable)
|
|
28
|
+
// errors.
|
|
29
|
+
"moduleDetection": "force",
|
|
30
|
+
// Prevents a few TS features which are unsafe when treating modules as
|
|
31
|
+
// isolated files.
|
|
32
|
+
"isolatedModules": true,
|
|
33
|
+
// Force you to use import type and export type
|
|
34
|
+
"verbatimModuleSyntax": true,
|
|
35
|
+
// Ensure that casing is correct in imports.
|
|
36
|
+
"forceConsistentCasingInFileNames": true,
|
|
37
|
+
// Allow TypeScript to cache build information and skip compilation
|
|
38
|
+
// when no changes are detected.
|
|
39
|
+
"composite": true,
|
|
40
|
+
|
|
41
|
+
"lib": ["ESNext", "ESNext.AsyncIterable"],
|
|
42
|
+
|
|
43
|
+
"module": "NodeNext",
|
|
44
|
+
"moduleResolution": "NodeNext",
|
|
45
|
+
|
|
46
|
+
"rootDir": "${configDir}/src"
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
"include": ["src/**/*"]
|
|
13
50
|
}
|
package/es/root.json
CHANGED
|
@@ -1,11 +1,49 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"target": "ES2020",
|
|
6
|
+
|
|
7
|
+
// Enable all strict type-checking options.
|
|
8
|
+
"strict": true,
|
|
9
|
+
// Disable unused local variables.
|
|
10
|
+
"noUnusedLocals": true,
|
|
11
|
+
// Force you to use "override" keyword when overriding a method.
|
|
12
|
+
"noImplicitOverride": true,
|
|
13
|
+
// Disable fallthrough cases in switch statements.
|
|
14
|
+
"noFallthroughCasesInSwitch": true,
|
|
15
|
+
// Emit additional JavaScript to ease support for importing CommonJS
|
|
16
|
+
// modules. This is necessary for some libraries with CommonJS/AMD/UMD
|
|
17
|
+
// modules.
|
|
18
|
+
"esModuleInterop": true,
|
|
19
|
+
// Skip type checking all .d.ts files. This improves performance and
|
|
20
|
+
// reduces the number of errors that you cannot fix directly.
|
|
21
|
+
"skipLibCheck": true,
|
|
22
|
+
// Allow JavaScript files to be included in the project.
|
|
23
|
+
"allowJs": true,
|
|
24
|
+
// Allow JSON files to be imported as modules.
|
|
25
|
+
"resolveJsonModule": true,
|
|
26
|
+
// Force TypeScript to consider all files as modules. This helps to avoid
|
|
27
|
+
// ['cannot redeclare block-scoped variable'](https://www.totaltypescript.com/cannot-redeclare-block-scoped-variable)
|
|
28
|
+
// errors.
|
|
29
|
+
"moduleDetection": "force",
|
|
30
|
+
// Prevents a few TS features which are unsafe when treating modules as
|
|
31
|
+
// isolated files.
|
|
32
|
+
"isolatedModules": true,
|
|
33
|
+
// Force you to use import type and export type
|
|
34
|
+
"verbatimModuleSyntax": true,
|
|
35
|
+
// Ensure that casing is correct in imports.
|
|
36
|
+
"forceConsistentCasingInFileNames": true,
|
|
37
|
+
// Allow TypeScript to cache build information and skip compilation
|
|
38
|
+
// when no changes are detected.
|
|
39
|
+
"composite": true,
|
|
40
|
+
|
|
41
|
+
"lib": ["ESNext", "ESNext.AsyncIterable"],
|
|
42
|
+
|
|
43
|
+
"module": "preserve",
|
|
44
|
+
"moduleResolution": "bundler",
|
|
45
|
+
"emitDeclarationOnly": true
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
"include": ["${configDir}/*"]
|
|
11
49
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocavue/tsconfig",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.4",
|
|
5
5
|
"description": "A collection of reusable TypeScript configurations",
|
|
6
6
|
"author": "ocavue <ocavue@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -19,5 +19,12 @@
|
|
|
19
19
|
],
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/bun": "^1.2.9",
|
|
25
|
+
"prettier": "^3.5.3"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "bun build.ts"
|
|
22
29
|
}
|
|
23
30
|
}
|
package/include/all.json
DELETED
package/include/root.json
DELETED
package/include/src.json
DELETED
package/module/bundler.json
DELETED
package/module/node.json
DELETED
package/shared/base.json
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "ES2020",
|
|
5
|
-
"lib": [
|
|
6
|
-
"ESNext",
|
|
7
|
-
"ESNext.AsyncIterable"
|
|
8
|
-
],
|
|
9
|
-
// Enable all strict type-checking options.
|
|
10
|
-
"strict": true,
|
|
11
|
-
// Disable unused local variables.
|
|
12
|
-
"noUnusedLocals": true,
|
|
13
|
-
// Force you to use `override` keyword when overriding a method.
|
|
14
|
-
"noImplicitOverride": true,
|
|
15
|
-
// Disable fallthrough cases in switch statements.
|
|
16
|
-
"noFallthroughCasesInSwitch": true,
|
|
17
|
-
// Emit additional JavaScript to ease support for importing CommonJS
|
|
18
|
-
// modules. This is necessary for some libraries with CommonJS/AMD/UMD
|
|
19
|
-
// modules.
|
|
20
|
-
"esModuleInterop": true,
|
|
21
|
-
// Skip type checking all .d.ts files. This improves performance and
|
|
22
|
-
// reduces the number of errors that you cannot fix directly.
|
|
23
|
-
"skipLibCheck": true,
|
|
24
|
-
// Allow JavaScript files to be included in the project.
|
|
25
|
-
"allowJs": true,
|
|
26
|
-
// Allow JSON files to be imported as modules.
|
|
27
|
-
"resolveJsonModule": true,
|
|
28
|
-
// Force TypeScript to consider all files as modules. This helps to avoid
|
|
29
|
-
// ['cannot redeclare block-scoped variable'](https://www.totaltypescript.com/cannot-redeclare-block-scoped-variable)
|
|
30
|
-
// errors.
|
|
31
|
-
"moduleDetection": "force",
|
|
32
|
-
// Prevents a few TS features which are unsafe when treating modules as
|
|
33
|
-
// isolated files.
|
|
34
|
-
"isolatedModules": true,
|
|
35
|
-
// Force you to use import type and export type
|
|
36
|
-
"verbatimModuleSyntax": true,
|
|
37
|
-
// Ensure that casing is correct in imports.
|
|
38
|
-
"forceConsistentCasingInFileNames": true,
|
|
39
|
-
// Allow TypeScript to cache build information and skip compilation
|
|
40
|
-
// when no changes are detected.
|
|
41
|
-
"composite": true,
|
|
42
|
-
}
|
|
43
|
-
}
|