@eggjs/tsconfig 1.0.0 → 1.2.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/README.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # @eggjs/tsconfig
2
+
2
3
  Base tsconfig file for egg project
3
4
 
4
5
  ## Badges
5
6
 
6
7
  [![NPM version][npm-image]][npm-url]
8
+ [![Node.js CI](https://github.com/eggjs/tsconfig/actions/workflows/nodejs.yml/badge.svg)](https://github.com/eggjs/tsconfig/actions/workflows/nodejs.yml)
7
9
  [![NPM quality][quality-image]][quality-url]
8
10
  [![npm download][download-image]][download-url]
9
11
 
@@ -19,7 +21,7 @@ Base tsconfig file for egg project
19
21
  ## Install
20
22
 
21
23
  ```shell
22
- npm i --save @eggjs/tsconfig
24
+ npm i --save-dev @eggjs/tsconfig
23
25
  ```
24
26
 
25
27
  ## Usage
@@ -27,6 +29,10 @@ npm i --save @eggjs/tsconfig
27
29
  ```json
28
30
  // tsconfig.json
29
31
  {
30
- "extends": "@eggjs/tsconfig"
32
+ "extends": "@eggjs/tsconfig",
33
+ // custom config
34
+ "compilerOptions": {
35
+ // override @eggjs/tsconfig options here
36
+ }
31
37
  }
32
38
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eggjs/tsconfig",
3
3
  "description": "Base tsconfig for egg ts project",
4
- "version": "1.0.0",
4
+ "version": "1.2.0",
5
5
  "keywords": [
6
6
  "egg",
7
7
  "typescript",
@@ -11,6 +11,7 @@
11
11
  "tsconfig.json"
12
12
  ],
13
13
  "scripts": {
14
+ "lint": "echo 'ignore'",
14
15
  "test": "egg-bin test",
15
16
  "ci": "egg-bin cov"
16
17
  },
@@ -25,16 +26,11 @@
25
26
  "url": "https://github.com/eggjs/tsconfig.git"
26
27
  },
27
28
  "engines": {
28
- "node": ">=10.0.0"
29
+ "node": ">=14.0.0"
29
30
  },
30
31
  "devDependencies": {
31
- "coffee": "^5.4.0",
32
- "egg-bin": "^4.15.0",
33
- "egg-ci": "^1.15.0",
34
- "typescript": "^3.9.7"
35
- },
36
- "ci": {
37
- "type": "github",
38
- "versions": "10, 12, 14"
32
+ "coffee": "^5.5.0",
33
+ "egg-bin": "^5.6.1",
34
+ "typescript": "^4.9.4"
39
35
  }
40
36
  }
package/tsconfig.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "compileOnSave": true,
3
3
  "compilerOptions": {
4
- "target": "es2019",
4
+ "target": "ES2020",
5
5
  "module": "commonjs",
6
6
  "strict": true,
7
7
  // Warn on expressions and declarations with an implied 'any' type.
@@ -31,6 +31,8 @@
31
31
  "declaration": true,
32
32
  "resolveJsonModule": true,
33
33
  // Enables experimental support for ES7 decorators.
34
- "experimentalDecorators": true
34
+ "experimentalDecorators": true,
35
+ "useUnknownInCatchVariables": true,
36
+ "incremental": true
35
37
  }
36
38
  }
package/History.md DELETED
@@ -1,7 +0,0 @@
1
-
2
- 1.0.0 / 2020-07-30
3
- ==================
4
-
5
- **others**
6
- * [[`05c0e95`](http://github.com/eggjs/tsconfig/commit/05c0e954eea00398ed63d6449febbc86051c7fb5)] - first impl (#1) (killa <<killa123@126.com>>),fatal: No names found, cannot describe anything.
7
-