@mysetup/tsconfig 2.0.0 → 2.0.3
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 +43 -2
- package/base.json +21 -21
- package/nextjs.json +22 -22
- package/package.json +24 -8
- package/react-library-build.json +10 -10
- package/react-library.json +12 -12
- package/server.json +22 -22
package/README.md
CHANGED
|
@@ -1,3 +1,44 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @mysetup/tsconfig
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
Shared TypeScript base configurations for apps and libraries in this workspace.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm add -D @mysetup/tsconfig typescript
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Supported libraries and runtimes
|
|
14
|
+
|
|
15
|
+
| Supported | Notes |
|
|
16
|
+
| --------- | -------------------------------------------- |
|
|
17
|
+
| Node.js | Supported via `server.json` and `base.json` |
|
|
18
|
+
| React | Supported via `react-library.json` |
|
|
19
|
+
| Next.js | Supported via `nextjs.json` |
|
|
20
|
+
| Vite | Supported through the base and React configs |
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
```json
|
|
25
|
+
{
|
|
26
|
+
"extends": "@mysetup/tsconfig/base.json"
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Available Configs
|
|
31
|
+
|
|
32
|
+
- `@mysetup/tsconfig/base.json`
|
|
33
|
+
- `@mysetup/tsconfig/nextjs.json`
|
|
34
|
+
- `@mysetup/tsconfig/react-library.json`
|
|
35
|
+
- `@mysetup/tsconfig/react-library-build.json`
|
|
36
|
+
- `@mysetup/tsconfig/server.json`
|
|
37
|
+
|
|
38
|
+
## Scripts
|
|
39
|
+
|
|
40
|
+
No package scripts are defined.
|
|
41
|
+
|
|
42
|
+
## License
|
|
43
|
+
|
|
44
|
+
MIT
|
package/base.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
-
"display": "Default",
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
"composite": false,
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"declarationMap":
|
|
8
|
-
"esModuleInterop": true,
|
|
9
|
-
"forceConsistentCasingInFileNames": true,
|
|
10
|
-
"inlineSources": false,
|
|
11
|
-
"isolatedModules": true,
|
|
12
|
-
"moduleResolution": "node",
|
|
13
|
-
"noUnusedLocals": false,
|
|
14
|
-
"noUnusedParameters": false,
|
|
15
|
-
"preserveWatchOutput": true,
|
|
16
|
-
"resolveJsonModule": true,
|
|
17
|
-
"skipLibCheck": true,
|
|
18
|
-
"strict": true
|
|
19
|
-
},
|
|
20
|
-
"exclude": ["node_modules", "dist"]
|
|
21
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "Default",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"composite": false,
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"declarationMap": false,
|
|
8
|
+
"esModuleInterop": true,
|
|
9
|
+
"forceConsistentCasingInFileNames": true,
|
|
10
|
+
"inlineSources": false,
|
|
11
|
+
"isolatedModules": true,
|
|
12
|
+
"moduleResolution": "node",
|
|
13
|
+
"noUnusedLocals": false,
|
|
14
|
+
"noUnusedParameters": false,
|
|
15
|
+
"preserveWatchOutput": true,
|
|
16
|
+
"resolveJsonModule": true,
|
|
17
|
+
"skipLibCheck": true,
|
|
18
|
+
"strict": true
|
|
19
|
+
},
|
|
20
|
+
"exclude": ["node_modules", "dist"]
|
|
21
|
+
}
|
package/nextjs.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
-
"display": "Next.js",
|
|
4
|
-
"extends": "./base.json",
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"plugins": [{ "name": "next" }],
|
|
7
|
-
"target": "ES2018",
|
|
8
|
-
"lib": ["dom", "dom.iterable", "esnext"],
|
|
9
|
-
"allowJs": true,
|
|
10
|
-
"skipLibCheck": true,
|
|
11
|
-
"strict": true,
|
|
12
|
-
"forceConsistentCasingInFileNames": true,
|
|
13
|
-
"incremental": true,
|
|
14
|
-
"esModuleInterop": true,
|
|
15
|
-
"module": "ESNext",
|
|
16
|
-
"moduleResolution": "Bundler",
|
|
17
|
-
"resolveJsonModule": true,
|
|
18
|
-
"isolatedModules": true,
|
|
19
|
-
"jsx": "preserve"
|
|
20
|
-
},
|
|
21
|
-
"exclude": ["node_modules", "dist"]
|
|
22
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "Next.js",
|
|
4
|
+
"extends": "./base.json",
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"plugins": [{ "name": "next" }],
|
|
7
|
+
"target": "ES2018",
|
|
8
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
9
|
+
"allowJs": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"strict": true,
|
|
12
|
+
"forceConsistentCasingInFileNames": true,
|
|
13
|
+
"incremental": true,
|
|
14
|
+
"esModuleInterop": true,
|
|
15
|
+
"module": "ESNext",
|
|
16
|
+
"moduleResolution": "Bundler",
|
|
17
|
+
"resolveJsonModule": true,
|
|
18
|
+
"isolatedModules": true,
|
|
19
|
+
"jsx": "preserve"
|
|
20
|
+
},
|
|
21
|
+
"exclude": ["node_modules", "dist"]
|
|
22
|
+
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@mysetup/tsconfig",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@mysetup/tsconfig",
|
|
3
|
+
"version": "2.0.3",
|
|
4
|
+
"description": "Shared TypeScript configuration presets for Node.js, React, and Next.js.",
|
|
5
|
+
"author": "krishnaraj <krishnaraj.webdev@gmail.com>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"tsconfig",
|
|
9
|
+
"typescript",
|
|
10
|
+
"nextjs",
|
|
11
|
+
"react",
|
|
12
|
+
"nodejs"
|
|
13
|
+
],
|
|
14
|
+
"files": [
|
|
15
|
+
"*.json",
|
|
16
|
+
"README.md"
|
|
17
|
+
],
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"checks": "node -e \"process.exit(0)\""
|
|
23
|
+
}
|
|
24
|
+
}
|
package/react-library-build.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
-
"display": "React Library",
|
|
4
|
-
"extends": "./base.json",
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"jsx": "react",
|
|
7
|
-
"lib": ["ES2015", "DOM"]
|
|
8
|
-
},
|
|
9
|
-
"exclude": ["node_modules", "dist"]
|
|
10
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "React Library",
|
|
4
|
+
"extends": "./base.json",
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"jsx": "react",
|
|
7
|
+
"lib": ["ES2015", "DOM"]
|
|
8
|
+
},
|
|
9
|
+
"exclude": ["node_modules", "dist"]
|
|
10
|
+
}
|
package/react-library.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
-
"display": "React Library",
|
|
4
|
-
"extends": "./base.json",
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"jsx": "react-jsx",
|
|
7
|
-
"lib": ["ES2015", "DOM"],
|
|
8
|
-
"module": "ESNext",
|
|
9
|
-
"target": "es6"
|
|
10
|
-
},
|
|
11
|
-
"exclude": ["node_modules", "dist"]
|
|
12
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "React Library",
|
|
4
|
+
"extends": "./base.json",
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"jsx": "react-jsx",
|
|
7
|
+
"lib": ["ES2015", "DOM"],
|
|
8
|
+
"module": "ESNext",
|
|
9
|
+
"target": "es6"
|
|
10
|
+
},
|
|
11
|
+
"exclude": ["node_modules", "dist"]
|
|
12
|
+
}
|
package/server.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
-
"display": "server",
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
"allowJs": true,
|
|
6
|
-
"allowSyntheticDefaultImports": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"forceConsistentCasingInFileNames": true,
|
|
9
|
-
"incremental": true,
|
|
10
|
-
"module": "commonjs",
|
|
11
|
-
"moduleResolution": "node",
|
|
12
|
-
"noImplicitAny": true,
|
|
13
|
-
"outDir": "dist",
|
|
14
|
-
"removeComments": true,
|
|
15
|
-
"resolveJsonModule": true,
|
|
16
|
-
"skipLibCheck": true,
|
|
17
|
-
"sourceMap": true,
|
|
18
|
-
"strict": true,
|
|
19
|
-
"target": "ES2022"
|
|
20
|
-
},
|
|
21
|
-
"exclude": ["node_modules", "dist"]
|
|
22
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "server",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"allowSyntheticDefaultImports": true,
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"forceConsistentCasingInFileNames": true,
|
|
9
|
+
"incremental": true,
|
|
10
|
+
"module": "commonjs",
|
|
11
|
+
"moduleResolution": "node",
|
|
12
|
+
"noImplicitAny": true,
|
|
13
|
+
"outDir": "dist",
|
|
14
|
+
"removeComments": true,
|
|
15
|
+
"resolveJsonModule": true,
|
|
16
|
+
"skipLibCheck": true,
|
|
17
|
+
"sourceMap": true,
|
|
18
|
+
"strict": true,
|
|
19
|
+
"target": "ES2022"
|
|
20
|
+
},
|
|
21
|
+
"exclude": ["node_modules", "dist"]
|
|
22
|
+
}
|