@eggjs/tsconfig 2.0.0 → 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.
Files changed (2) hide show
  1. package/package.json +7 -8
  2. package/tsconfig.json +7 -2
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.0.0",
5
5
  "keywords": [
6
6
  "egg",
7
7
  "typescript",
@@ -12,8 +12,8 @@
12
12
  ],
13
13
  "scripts": {
14
14
  "lint": "echo 'ignore'",
15
- "test": "egg-bin test",
16
- "ci": "egg-bin cov"
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",
@@ -26,13 +26,12 @@
26
26
  "url": "https://github.com/eggjs/tsconfig.git"
27
27
  },
28
28
  "engines": {
29
- "node": ">=18.19.0"
29
+ "node": ">=22.17.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@eggjs/bin": "7",
33
- "@types/mocha": "10",
34
- "@types/node": "22",
32
+ "@types/node": "24",
35
33
  "coffee": "5",
36
34
  "typescript": "5"
37
- }
35
+ },
36
+ "type": "module"
38
37
  }
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
@@ -32,6 +33,10 @@
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
36
41
  }
37
42
  }