@eggjs/tsconfig 1.3.3 → 2.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020 egg
3
+ Copyright (c) 2020-present eggjs and the contributors.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,22 +1,18 @@
1
1
  # @eggjs/tsconfig
2
2
 
3
- Base tsconfig file for egg project
4
-
5
- ## Badges
6
-
7
3
  [![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)
9
- [![NPM quality][quality-image]][quality-url]
4
+ [![CI](https://github.com/eggjs/tsconfig/actions/workflows/nodejs.yml/badge.svg?branch=master)](https://github.com/eggjs/tsconfig/actions/workflows/nodejs.yml)
10
5
  [![npm download][download-image]][download-url]
6
+ [![Node.js Version](https://img.shields.io/node/v/@eggjs/tsconfig.svg?style=flat)](https://nodejs.org/en/download/)
7
+ [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com)
8
+ ![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/eggjs/:repo)
11
9
 
12
10
  [npm-image]: https://img.shields.io/npm/v/@eggjs/tsconfig.svg?style=flat-square
13
11
  [npm-url]: https://npmjs.org/package/@eggjs/tsconfig
14
- [quality-image]: http://npm.packagequality.com/shield/@eggjs/tsconfig.svg?style=flat-square
15
- [quality-url]: http://packagequality.com/#?package=@eggjs/tsconfig
16
12
  [download-image]: https://img.shields.io/npm/dm/@eggjs/tsconfig.svg?style=flat-square
17
13
  [download-url]: https://npmjs.org/package/@eggjs/tsconfig
18
14
 
19
- --------------------
15
+ Base tsconfig file for egg project
20
16
 
21
17
  ## Install
22
18
 
@@ -36,3 +32,13 @@ npm i --save-dev @eggjs/tsconfig
36
32
  }
37
33
  }
38
34
  ```
35
+
36
+ ## License
37
+
38
+ [MIT](LICENSE)
39
+
40
+ ## Contributors
41
+
42
+ [![Contributors](https://contrib.rocks/image?repo=eggjs/tsconfig)](https://github.com/eggjs/tsconfig/graphs/contributors)
43
+
44
+ Made with [contributors-img](https://contrib.rocks).
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.3.3",
4
+ "version": "2.0.0",
5
5
  "keywords": [
6
6
  "egg",
7
7
  "typescript",
@@ -19,18 +19,20 @@
19
19
  "license": "MIT",
20
20
  "homepage": "https://github.com/eggjs/tsconfig",
21
21
  "bugs": {
22
- "url": "https://github.com/eggjs/egg"
22
+ "url": "https://github.com/eggjs/egg/issues"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
26
26
  "url": "https://github.com/eggjs/tsconfig.git"
27
27
  },
28
28
  "engines": {
29
- "node": ">=14.0.0"
29
+ "node": ">=18.19.0"
30
30
  },
31
31
  "devDependencies": {
32
- "coffee": "^5.5.0",
33
- "egg-bin": "^5.6.1",
34
- "typescript": "^4.9.4"
32
+ "@eggjs/bin": "7",
33
+ "@types/mocha": "10",
34
+ "@types/node": "22",
35
+ "coffee": "5",
36
+ "typescript": "5"
35
37
  }
36
38
  }
package/tsconfig.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "compileOnSave": true,
3
3
  "compilerOptions": {
4
- "target": "ES2020",
5
- "module": "commonjs",
6
4
  "strict": true,
7
- // Warn on expressions and declarations with an implied 'any' type.
8
- // Many npm pack do not has own definition, so not enable
9
- "noImplicitAny": false,
5
+ "noImplicitAny": true,
6
+ "target": "ES2022",
7
+ "module": "NodeNext",
8
+ "moduleResolution": "NodeNext",
10
9
  // Emit '__importStar' and '__importDefault' helpers for runtime babel ecosystem compatibility
11
10
  // and enable '--allowSyntheticDefaultImports' for typesystem compatibility.
12
11
  // Convenient for import assert from 'assert'