@4mbl/tsconfig 2.0.1 → 3.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 +5 -1
- package/base/1.0.0.json +40 -40
- package/base/3.0.0.json +41 -0
- package/base/latest.json +2 -1
- package/browser/3.0.0.json +15 -0
- package/browser/latest.json +2 -2
- package/next/3.0.0.json +32 -0
- package/next/latest.json +32 -0
- package/node/1.0.0.json +11 -11
- package/node/3.0.0.json +11 -0
- package/node/latest.json +2 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Create a `tsconfig.json` file in the root of your project and extend the desired
|
|
|
21
21
|
|
|
22
22
|
## Available templates
|
|
23
23
|
|
|
24
|
-
There are currently
|
|
24
|
+
There are currently four `tsconfig` templates.
|
|
25
25
|
|
|
26
26
|
### Base <kbd>[tsconfig](https://unpkg.com/@4mbl/tsconfig@latest/base/latest.json) | [changelog](./base/changelog.md)</kbd>
|
|
27
27
|
|
|
@@ -35,6 +35,10 @@ Extends the base template and adds settings specific to Node.js.
|
|
|
35
35
|
|
|
36
36
|
Extends the base template and adds settings specific to browser and React applications.
|
|
37
37
|
|
|
38
|
+
### Next.js <kbd>[tsconfig](https://unpkg.com/@4mbl/tsconfig@latest/next/latest.json) | [changelog](./next/changelog.md)</kbd>
|
|
39
|
+
|
|
40
|
+
Extends the base template and with settings from the Next.js app template.
|
|
41
|
+
|
|
38
42
|
## Versioning
|
|
39
43
|
|
|
40
44
|
The package and each template are versioned separately. Seperate versioning allows you to update the package without worrying about breaking changes to the templates. It also allows you to easily test newer versions of the templates by just changing the `extends` field in the `tsconfig` file of your project.
|
package/base/1.0.0.json
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
-
"display": "Base",
|
|
4
|
-
"_version": "1.0.0",
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
/* Base Options */
|
|
7
|
-
"lib": ["ESNext"],
|
|
8
|
-
"allowJs": true,
|
|
9
|
-
"skipLibCheck": true,
|
|
10
|
-
"resolveJsonModule": true,
|
|
11
|
-
"moduleDetection": "force",
|
|
12
|
-
"rootDir": "../../../../../../../",
|
|
13
|
-
"baseUrl": "../../../../../../../",
|
|
14
|
-
"paths": {
|
|
15
|
-
"@/*": ["../../../../../../../src/*"]
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
/* Output */
|
|
19
|
-
"target": "ES6",
|
|
20
|
-
"outDir": "dist",
|
|
21
|
-
"sourceMap": true,
|
|
22
|
-
"declaration": true,
|
|
23
|
-
"incremental": true,
|
|
24
|
-
"isolatedModules": true,
|
|
25
|
-
"esModuleInterop": true,
|
|
26
|
-
|
|
27
|
-
/* Linting */
|
|
28
|
-
"checkJs": true,
|
|
29
|
-
"forceConsistentCasingInFileNames": true,
|
|
30
|
-
"noFallthroughCasesInSwitch": true,
|
|
31
|
-
"noImplicitAny": true,
|
|
32
|
-
"noImplicitReturns": false,
|
|
33
|
-
"noUnusedLocals": true,
|
|
34
|
-
"noUnusedParameters": true,
|
|
35
|
-
"strict": true,
|
|
36
|
-
"noUncheckedIndexedAccess": true
|
|
37
|
-
},
|
|
38
|
-
"include": ["../../../../../../../src/**/*"],
|
|
39
|
-
"exclude": ["../../../../../../node_modules"]
|
|
40
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "Base",
|
|
4
|
+
"_version": "1.0.0",
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
/* Base Options */
|
|
7
|
+
"lib": ["ESNext"],
|
|
8
|
+
"allowJs": true,
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"resolveJsonModule": true,
|
|
11
|
+
"moduleDetection": "force",
|
|
12
|
+
"rootDir": "../../../../../../../",
|
|
13
|
+
"baseUrl": "../../../../../../../",
|
|
14
|
+
"paths": {
|
|
15
|
+
"@/*": ["../../../../../../../src/*"]
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
/* Output */
|
|
19
|
+
"target": "ES6",
|
|
20
|
+
"outDir": "dist",
|
|
21
|
+
"sourceMap": true,
|
|
22
|
+
"declaration": true,
|
|
23
|
+
"incremental": true,
|
|
24
|
+
"isolatedModules": true,
|
|
25
|
+
"esModuleInterop": true,
|
|
26
|
+
|
|
27
|
+
/* Linting */
|
|
28
|
+
"checkJs": true,
|
|
29
|
+
"forceConsistentCasingInFileNames": true,
|
|
30
|
+
"noFallthroughCasesInSwitch": true,
|
|
31
|
+
"noImplicitAny": true,
|
|
32
|
+
"noImplicitReturns": false,
|
|
33
|
+
"noUnusedLocals": true,
|
|
34
|
+
"noUnusedParameters": true,
|
|
35
|
+
"strict": true,
|
|
36
|
+
"noUncheckedIndexedAccess": true
|
|
37
|
+
},
|
|
38
|
+
"include": ["../../../../../../../src/**/*"],
|
|
39
|
+
"exclude": ["../../../../../../node_modules"]
|
|
40
|
+
}
|
package/base/3.0.0.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "Base",
|
|
4
|
+
"_version": "3.0.0",
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
/* Base Options */
|
|
7
|
+
"lib": ["ESNext"],
|
|
8
|
+
"allowJs": true,
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"resolveJsonModule": true,
|
|
11
|
+
"moduleDetection": "force",
|
|
12
|
+
"rootDir": "${configDir}/src",
|
|
13
|
+
"baseUrl": "${configDir}/",
|
|
14
|
+
"paths": {
|
|
15
|
+
"@/*": ["${configDir}/src/*"]
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
/* Output */
|
|
19
|
+
"target": "ES6",
|
|
20
|
+
"outDir": "${configDir}/dist",
|
|
21
|
+
"sourceMap": true,
|
|
22
|
+
"declaration": true,
|
|
23
|
+
"incremental": true,
|
|
24
|
+
"isolatedModules": true,
|
|
25
|
+
"esModuleInterop": true,
|
|
26
|
+
|
|
27
|
+
/* Linting */
|
|
28
|
+
"strict": true,
|
|
29
|
+
"checkJs": true,
|
|
30
|
+
"erasableSyntaxOnly": true,
|
|
31
|
+
"forceConsistentCasingInFileNames": true,
|
|
32
|
+
"noFallthroughCasesInSwitch": true,
|
|
33
|
+
"noImplicitAny": true,
|
|
34
|
+
"noImplicitReturns": false,
|
|
35
|
+
"noUnusedLocals": true,
|
|
36
|
+
"noUnusedParameters": true,
|
|
37
|
+
"noUncheckedIndexedAccess": true
|
|
38
|
+
},
|
|
39
|
+
"include": ["${configDir}/src/**/*"],
|
|
40
|
+
"exclude": ["${configDir}/node_modules"]
|
|
41
|
+
}
|
package/base/latest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
3
|
"display": "Base",
|
|
4
|
-
"_version": "
|
|
4
|
+
"_version": "3.0.0",
|
|
5
5
|
"compilerOptions": {
|
|
6
6
|
/* Base Options */
|
|
7
7
|
"lib": ["ESNext"],
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
/* Linting */
|
|
28
28
|
"strict": true,
|
|
29
29
|
"checkJs": true,
|
|
30
|
+
"erasableSyntaxOnly": true,
|
|
30
31
|
"forceConsistentCasingInFileNames": true,
|
|
31
32
|
"noFallthroughCasesInSwitch": true,
|
|
32
33
|
"noImplicitAny": true,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "Browser",
|
|
4
|
+
"_version": "3.0.0",
|
|
5
|
+
"extends": "../base/3.0.0.json",
|
|
6
|
+
"compilerOptions": {
|
|
7
|
+
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
|
8
|
+
"jsx": "react-jsx",
|
|
9
|
+
"tsBuildInfoFile": "tsconfig.browser.tsbuildinfo",
|
|
10
|
+
"module": "ESNext",
|
|
11
|
+
"moduleResolution": "Bundler",
|
|
12
|
+
"noEmit": true,
|
|
13
|
+
"sourceMap": true
|
|
14
|
+
}
|
|
15
|
+
}
|
package/browser/latest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
3
|
"display": "Browser",
|
|
4
|
-
"_version": "
|
|
5
|
-
"extends": "../base/
|
|
4
|
+
"_version": "3.0.0",
|
|
5
|
+
"extends": "../base/3.0.0.json",
|
|
6
6
|
"compilerOptions": {
|
|
7
7
|
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
|
8
8
|
"jsx": "react-jsx",
|
package/next/3.0.0.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "Next.js",
|
|
4
|
+
"_version": "3.0.0",
|
|
5
|
+
"extends": "../base/3.0.0.json",
|
|
6
|
+
|
|
7
|
+
"compilerOptions": {
|
|
8
|
+
"target": "ES2017",
|
|
9
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
10
|
+
"allowJs": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"strict": true,
|
|
13
|
+
"noEmit": true,
|
|
14
|
+
"esModuleInterop": true,
|
|
15
|
+
"module": "esnext",
|
|
16
|
+
"moduleResolution": "bundler",
|
|
17
|
+
"resolveJsonModule": true,
|
|
18
|
+
"isolatedModules": true,
|
|
19
|
+
"jsx": "preserve",
|
|
20
|
+
"incremental": true,
|
|
21
|
+
"plugins": [
|
|
22
|
+
{
|
|
23
|
+
"name": "next"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"paths": {
|
|
27
|
+
"@/*": ["./src/*"]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
31
|
+
"exclude": ["node_modules"]
|
|
32
|
+
}
|
package/next/latest.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "Next.js",
|
|
4
|
+
"_version": "3.0.0",
|
|
5
|
+
"extends": "../base/3.0.0.json",
|
|
6
|
+
|
|
7
|
+
"compilerOptions": {
|
|
8
|
+
"target": "ES2017",
|
|
9
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
10
|
+
"allowJs": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"strict": true,
|
|
13
|
+
"noEmit": true,
|
|
14
|
+
"esModuleInterop": true,
|
|
15
|
+
"module": "esnext",
|
|
16
|
+
"moduleResolution": "bundler",
|
|
17
|
+
"resolveJsonModule": true,
|
|
18
|
+
"isolatedModules": true,
|
|
19
|
+
"jsx": "preserve",
|
|
20
|
+
"incremental": true,
|
|
21
|
+
"plugins": [
|
|
22
|
+
{
|
|
23
|
+
"name": "next"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"paths": {
|
|
27
|
+
"@/*": ["./src/*"]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
31
|
+
"exclude": ["node_modules"]
|
|
32
|
+
}
|
package/node/1.0.0.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
-
"display": "Node",
|
|
4
|
-
"_version": "1.0.0",
|
|
5
|
-
"extends": "../base/1.0.0.json",
|
|
6
|
-
"compilerOptions": {
|
|
7
|
-
"target": "ESNext",
|
|
8
|
-
"moduleResolution": "NodeNext",
|
|
9
|
-
"module": "NodeNext"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "Node",
|
|
4
|
+
"_version": "1.0.0",
|
|
5
|
+
"extends": "../base/1.0.0.json",
|
|
6
|
+
"compilerOptions": {
|
|
7
|
+
"target": "ESNext",
|
|
8
|
+
"moduleResolution": "NodeNext",
|
|
9
|
+
"module": "NodeNext"
|
|
10
|
+
}
|
|
11
|
+
}
|
package/node/3.0.0.json
ADDED
package/node/latest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
3
|
"display": "Node",
|
|
4
|
-
"_version": "
|
|
5
|
-
"extends": "../base/
|
|
4
|
+
"_version": "3.0.0",
|
|
5
|
+
"extends": "../base/3.0.0.json",
|
|
6
6
|
"compilerOptions": {
|
|
7
7
|
"target": "ESNext",
|
|
8
8
|
"moduleResolution": "NodeNext",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4mbl/tsconfig",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "TypeScript configuration templates for various environments.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "4mbl",
|
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
"tsconfig"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
|
-
"build": "node ./scripts/copyLatest.js *",
|
|
18
|
+
"build": "node ./scripts/copyLatest.js '*'",
|
|
19
19
|
"delete:latest": "node ./scripts/deleteLatestJson.js",
|
|
20
20
|
"delete:version": "node ./scripts/deleteVersionFile.js",
|
|
21
21
|
"get:version": "node -pe \"require('./package.json')['version']\" > version.txt",
|
|
22
|
-
"release": "npm run get:version && npm run build && npm publish && npm run delete:latest && git add . && git commit --file version.txt && git push && npm run delete:version",
|
|
22
|
+
"release": "npm run get:version && npm install && npm run build && npm publish && npm run delete:latest && git add . && git commit --file version.txt && git push && npm run delete:version",
|
|
23
23
|
"release:patch": "npm version patch --no-git-tag-version && npm run release",
|
|
24
24
|
"release:minor": "npm version minor --no-git-tag-version && npm run release",
|
|
25
25
|
"release:major": "npm version major --no-git-tag-version && npm run release"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"typescript": ">=5.
|
|
28
|
+
"typescript": ">=5.8.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependenciesMeta": {
|
|
31
31
|
"typescript": {
|