@eggjs/tsconfig 2.0.0 → 3.1.0-beta.10

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.
Files changed (3) hide show
  1. package/README.md +2 -3
  2. package/package.json +17 -14
  3. package/tsconfig.json +9 -3
package/README.md CHANGED
@@ -1,11 +1,10 @@
1
1
  # @eggjs/tsconfig
2
2
 
3
3
  [![NPM version][npm-image]][npm-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)
5
4
  [![npm download][download-image]][download-url]
6
5
  [![Node.js Version](https://img.shields.io/node/v/@eggjs/tsconfig.svg?style=flat)](https://nodejs.org/en/download/)
7
6
  [![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)
7
+ ![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/eggjs/egg)
9
8
 
10
9
  [npm-image]: https://img.shields.io/npm/v/@eggjs/tsconfig.svg?style=flat-square
11
10
  [npm-url]: https://npmjs.org/package/@eggjs/tsconfig
@@ -39,6 +38,6 @@ npm i --save-dev @eggjs/tsconfig
39
38
 
40
39
  ## Contributors
41
40
 
42
- [![Contributors](https://contrib.rocks/image?repo=eggjs/tsconfig)](https://github.com/eggjs/tsconfig/graphs/contributors)
41
+ [![Contributors](https://contrib.rocks/image?repo=eggjs/egg)](https://github.com/eggjs/egg/graphs/contributors)
43
42
 
44
43
  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": "2.0.0",
4
+ "version": "3.1.0-beta.10",
5
5
  "keywords": [
6
6
  "egg",
7
7
  "typescript",
@@ -10,29 +10,32 @@
10
10
  "files": [
11
11
  "tsconfig.json"
12
12
  ],
13
- "scripts": {
14
- "lint": "echo 'ignore'",
15
- "test": "egg-bin test",
16
- "ci": "egg-bin cov"
17
- },
18
13
  "author": "killagu <killa123@126.com>",
19
14
  "license": "MIT",
20
- "homepage": "https://github.com/eggjs/tsconfig",
21
15
  "bugs": {
22
16
  "url": "https://github.com/eggjs/egg/issues"
23
17
  },
18
+ "homepage": "https://github.com/eggjs/egg/tree/next/packages/tsconfig",
24
19
  "repository": {
25
20
  "type": "git",
26
- "url": "https://github.com/eggjs/tsconfig.git"
21
+ "url": "git+https://github.com/eggjs/egg.git",
22
+ "directory": "packages/tsconfig"
27
23
  },
28
24
  "engines": {
29
- "node": ">=18.19.0"
25
+ "node": ">=22.17.1"
26
+ },
27
+ "publishConfig": {
28
+ "access": "public"
30
29
  },
31
30
  "devDependencies": {
32
- "@eggjs/bin": "7",
33
- "@types/mocha": "10",
34
- "@types/node": "22",
31
+ "@types/node": "24.5.2",
35
32
  "coffee": "5",
36
- "typescript": "5"
33
+ "typescript": "5.9.2",
34
+ "vitest": "4.0.0-beta.13"
35
+ },
36
+ "type": "module",
37
+ "scripts": {
38
+ "lint": "oxlint",
39
+ "test": "vitest run"
37
40
  }
38
- }
41
+ }
package/tsconfig.json CHANGED
@@ -3,7 +3,8 @@
3
3
  "compilerOptions": {
4
4
  "strict": true,
5
5
  "noImplicitAny": true,
6
- "target": "ES2022",
6
+ // https://node.green/#ES2024
7
+ "target": "ES2024",
7
8
  "module": "NodeNext",
8
9
  "moduleResolution": "NodeNext",
9
10
  // Emit '__importStar' and '__importDefault' helpers for runtime babel ecosystem compatibility
@@ -14,7 +15,7 @@
14
15
  // Egg compile to in place, will throw can not overwrite js file
15
16
  "allowJs": false,
16
17
  "pretty": true,
17
- "noEmitOnError": false,
18
+ "noEmitOnError": true,
18
19
  "noUnusedLocals": true,
19
20
  "noUnusedParameters": true,
20
21
  "allowUnreachableCode": false,
@@ -32,6 +33,11 @@
32
33
  "experimentalDecorators": true,
33
34
  "emitDecoratorMetadata": true,
34
35
  "useUnknownInCatchVariables": true,
35
- "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,
41
+ "allowImportingTsExtensions": true
36
42
  }
37
43
  }