@eggjs/tsconfig 1.3.3 → 3.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 +1 -1
- package/README.md +15 -9
- package/package.json +10 -9
- package/tsconfig.json +10 -6
package/LICENSE
CHANGED
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
|
-
[![
|
|
9
|
-
[![NPM quality][quality-image]][quality-url]
|
|
4
|
+
[](https://github.com/eggjs/tsconfig/actions/workflows/nodejs.yml)
|
|
10
5
|
[![npm download][download-image]][download-url]
|
|
6
|
+
[](https://nodejs.org/en/download/)
|
|
7
|
+
[](https://makeapullrequest.com)
|
|
8
|
+

|
|
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
|
+
[](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": "
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"egg",
|
|
7
7
|
"typescript",
|
|
@@ -12,25 +12,26 @@
|
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
14
|
"lint": "echo 'ignore'",
|
|
15
|
-
"test": "
|
|
16
|
-
"ci": "
|
|
15
|
+
"test": "node --test --test-force-exit --experimental-strip-types test/index.test.ts",
|
|
16
|
+
"ci": "npm test"
|
|
17
17
|
},
|
|
18
18
|
"author": "killagu <killa123@126.com>",
|
|
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": ">=
|
|
29
|
+
"node": ">=22.17.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"typescript": "
|
|
35
|
-
}
|
|
32
|
+
"@types/node": "24",
|
|
33
|
+
"coffee": "5",
|
|
34
|
+
"typescript": "5"
|
|
35
|
+
},
|
|
36
|
+
"type": "module"
|
|
36
37
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compileOnSave": true,
|
|
3
3
|
"compilerOptions": {
|
|
4
|
-
"target": "ES2020",
|
|
5
|
-
"module": "commonjs",
|
|
6
4
|
"strict": true,
|
|
7
|
-
|
|
8
|
-
//
|
|
9
|
-
"
|
|
5
|
+
"noImplicitAny": true,
|
|
6
|
+
// https://node.green/#ES2024
|
|
7
|
+
"target": "ES2024",
|
|
8
|
+
"module": "NodeNext",
|
|
9
|
+
"moduleResolution": "NodeNext",
|
|
10
10
|
// Emit '__importStar' and '__importDefault' helpers for runtime babel ecosystem compatibility
|
|
11
11
|
// and enable '--allowSyntheticDefaultImports' for typesystem compatibility.
|
|
12
12
|
// Convenient for import assert from 'assert'
|
|
@@ -33,6 +33,10 @@
|
|
|
33
33
|
"experimentalDecorators": true,
|
|
34
34
|
"emitDecoratorMetadata": true,
|
|
35
35
|
"useUnknownInCatchVariables": true,
|
|
36
|
-
"incremental": false
|
|
36
|
+
"incremental": false,
|
|
37
|
+
// https://nodejs.org/en/learn/typescript/publishing-a-ts-package#treat-types-like-a-test
|
|
38
|
+
"erasableSyntaxOnly": true,
|
|
39
|
+
"verbatimModuleSyntax": true,
|
|
40
|
+
"rewriteRelativeImportExtensions": true
|
|
37
41
|
}
|
|
38
42
|
}
|