@eggjs/tsconfig 3.0.0 → 3.1.0-beta.2

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 +14 -11
  3. package/tsconfig.json +3 -2
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": "3.0.0",
4
+ "version": "3.1.0-beta.2",
5
5
  "keywords": [
6
6
  "egg",
7
7
  "typescript",
@@ -10,28 +10,31 @@
10
10
  "files": [
11
11
  "tsconfig.json"
12
12
  ],
13
- "scripts": {
14
- "lint": "echo 'ignore'",
15
- "test": "node --test --test-force-exit --experimental-strip-types test/index.test.ts",
16
- "ci": "npm test"
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
  },
24
18
  "repository": {
25
19
  "type": "git",
26
- "url": "https://github.com/eggjs/tsconfig.git"
20
+ "url": "git+https://github.com/eggjs/egg.git",
21
+ "directory": "packages/tsconfig"
27
22
  },
28
23
  "engines": {
29
24
  "node": ">=22.17.1"
30
25
  },
26
+ "publishConfig": {
27
+ "access": "public"
28
+ },
31
29
  "devDependencies": {
32
30
  "@types/node": "24",
33
31
  "coffee": "5",
34
- "typescript": "5"
32
+ "typescript": "5",
33
+ "vitest": "beta"
35
34
  },
36
- "type": "module"
37
- }
35
+ "type": "module",
36
+ "scripts": {
37
+ "lint": "oxlint",
38
+ "test": "vitest run"
39
+ }
40
+ }
package/tsconfig.json CHANGED
@@ -15,7 +15,7 @@
15
15
  // Egg compile to in place, will throw can not overwrite js file
16
16
  "allowJs": false,
17
17
  "pretty": true,
18
- "noEmitOnError": false,
18
+ "noEmitOnError": true,
19
19
  "noUnusedLocals": true,
20
20
  "noUnusedParameters": true,
21
21
  "allowUnreachableCode": false,
@@ -37,6 +37,7 @@
37
37
  // https://nodejs.org/en/learn/typescript/publishing-a-ts-package#treat-types-like-a-test
38
38
  "erasableSyntaxOnly": true,
39
39
  "verbatimModuleSyntax": true,
40
- "rewriteRelativeImportExtensions": true
40
+ "rewriteRelativeImportExtensions": true,
41
+ "allowImportingTsExtensions": true
41
42
  }
42
43
  }