@foray1010/tsconfig 9.1.0 → 11.0.0

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 CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [11.0.0](https://github.com/foray1010/common-presets/compare/@foray1010/tsconfig@10.0.0...@foray1010/tsconfig@11.0.0) (2023-03-23)
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ - require node `^16.14.0 || >=18.12.0`
11
+ - **tsconfig:** require typescript v5
12
+
13
+ ### Features
14
+
15
+ - support ES2021 ([40a0e28](https://github.com/foray1010/common-presets/commit/40a0e282c937825dfca1969c30ffc26e5bd2a27c))
16
+ - **tsconfig:** require typescript v5 ([ef8b2e7](https://github.com/foray1010/common-presets/commit/ef8b2e72d2d96be4f41ba980fa79118c9e1bff47))
17
+ - **tsconfig:** split tsconfig to mutliple files for different scenarios ([fcaf3ae](https://github.com/foray1010/common-presets/commit/fcaf3aee3f9f1851439d01631c2e8584bde685ba))
18
+
19
+ ### Miscellaneous Chores
20
+
21
+ - require node `^16.14.0 || >=18.12.0` ([5baf6eb](https://github.com/foray1010/common-presets/commit/5baf6eba6d42958596c130724a502c59fe1a4e83))
22
+
23
+ ## [10.0.0](https://github.com/foray1010/common-presets/compare/@foray1010/tsconfig@9.1.0...@foray1010/tsconfig@10.0.0) (2022-11-07)
24
+
25
+ ### ⚠ BREAKING CHANGES
26
+
27
+ - drop nodejs 14.17 and 18.11
28
+
29
+ ### Miscellaneous Chores
30
+
31
+ - drop nodejs 14.17 and 18.11 ([8e5c967](https://github.com/foray1010/common-presets/commit/8e5c9677b89d38c88de465f069bb5de683a8a40b))
32
+
6
33
  ## [9.1.0](https://github.com/foray1010/common-presets/compare/@foray1010/tsconfig@9.0.1...@foray1010/tsconfig@9.1.0) (2022-10-21)
7
34
 
8
35
  ### Features
package/README.md CHANGED
@@ -10,25 +10,47 @@ If you need to compile TypeScript, use [@foray1010/babel-preset](../babel-preset
10
10
 
11
11
  2. Create an `tsconfig.json` in the project root
12
12
 
13
- for app (type checking only):
14
-
15
- ```json
16
- {
17
- "$schema": "https://json.schemastore.org/tsconfig",
18
- "extends": "@foray1010/tsconfig"
19
- }
20
- ```
21
-
22
- for library (type checking and generate typings):
23
-
24
- ```json
25
- {
26
- "$schema": "https://json.schemastore.org/tsconfig",
27
- "extends": "@foray1010/tsconfig",
28
- "compilerOptions": {
29
- "emitDeclarationOnly": true,
30
- "noEmit": false,
31
- "outDir": "build/dts"
13
+ - For Node.js app (type checking only):
14
+
15
+ ```json
16
+ {
17
+ "$schema": "https://json.schemastore.org/tsconfig",
18
+ "extends": "@foray1010/tsconfig/tsconfig.base.json"
19
+ }
20
+ ```
21
+
22
+ - For general frontend application (type checking only):
23
+
24
+ ```json
25
+ {
26
+ "$schema": "https://json.schemastore.org/tsconfig",
27
+ "extends": [
28
+ "@foray1010/tsconfig/tsconfig.base.json",
29
+ "@foray1010/tsconfig/tsconfig.browser.json"
30
+ ]
31
+ }
32
+ ```
33
+
34
+ - For react.js application (type checking only):
35
+
36
+ ```json
37
+ {
38
+ "$schema": "https://json.schemastore.org/tsconfig",
39
+ "extends": [
40
+ "@foray1010/tsconfig/tsconfig.base.json",
41
+ "@foray1010/tsconfig/tsconfig.react.json"
42
+ ]
43
+ }
44
+ ```
45
+
46
+ - For library (type checking and generate typings):
47
+
48
+ ```json
49
+ {
50
+ "$schema": "https://json.schemastore.org/tsconfig",
51
+ "extends": [
52
+ "@foray1010/tsconfig/tsconfig.base.json",
53
+ "@foray1010/tsconfig/tsconfig.library.json"
54
+ ]
32
55
  }
33
- }
34
- ```
56
+ ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@foray1010/tsconfig",
4
- "version": "9.1.0",
4
+ "version": "11.0.0",
5
5
  "homepage": "https://github.com/foray1010/common-presets/tree/master/packages/tsconfig#readme",
6
6
  "bugs": "https://github.com/foray1010/common-presets/issues",
7
7
  "repository": {
@@ -18,13 +18,13 @@
18
18
  "type:check": "echo 'Skipped: non-ts package'"
19
19
  },
20
20
  "peerDependencies": {
21
- "typescript": "^4.7.4"
21
+ "typescript": "^5.0.2"
22
22
  },
23
23
  "engines": {
24
- "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
24
+ "node": "^16.14.0 || >=18.12.0"
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"
28
28
  },
29
- "gitHead": "353af651f7bf1bd01c4597a225a4558c91f8955b"
29
+ "gitHead": "ee22f073ee1702354310091b7c3a5ec18a930bec"
30
30
  }
@@ -1,15 +1,11 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/tsconfig",
3
3
  "compilerOptions": {
4
- "declaration": true,
5
4
  "esModuleInterop": true,
6
5
  "exactOptionalPropertyTypes": true,
7
- "forceConsistentCasingInFileNames": true,
8
- "importsNotUsedAsValues": "error",
9
6
  "incremental": true,
10
7
  "isolatedModules": true,
11
- "jsx": "react-jsx",
12
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
8
+ "lib": ["ES2021"],
13
9
  "module": "Node16",
14
10
  "moduleDetection": "force",
15
11
  "moduleResolution": "Node",
@@ -21,8 +17,9 @@
21
17
  "resolveJsonModule": true,
22
18
  "skipLibCheck": true,
23
19
  "strict": true,
24
- "target": "ES2020",
25
- "useDefineForClassFields": true
20
+ "target": "ES2021",
21
+ "useDefineForClassFields": true,
22
+ "verbatimModuleSyntax": true
26
23
  },
27
24
  "ts-node": {
28
25
  "compilerOptions": {
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "lib": ["ES2021", "DOM", "DOM.Iterable"]
5
+ }
6
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "emitDeclarationOnly": true,
6
+ "noEmit": false,
7
+ "outDir": "dist"
8
+ }
9
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./tsconfig.browser.json",
4
+ "compilerOptions": {
5
+ "jsx": "react-jsx"
6
+ }
7
+ }