Skip to content

Commit 824b72c

Browse files
committed
feat(ts-config): make base configs interoperable
1 parent ccbd76a commit 824b72c

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

packages/ts-config/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Suitable for Node.js services and apps.
4949

5050
### Library
5151

52-
Suitable for distributable `npm` packages (both Node.js and React).
52+
Suitable for distributable `npm` packages (framework-agnostic).
5353

5454
```json
5555
{

packages/ts-config/library.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
3-
"extends": "./base.json",
3+
"extends": "./node.json",
44
"compilerOptions": {
5-
"jsx": "react-jsx",
65
"composite": true,
7-
"declaration": true,
8-
"removeComments": false,
9-
"sourceMap": true
6+
"removeComments": false
107
}
118
}

packages/ts-config/nestjs.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
3-
"extends": "./base.json",
4-
"compilerOptions": {
5-
"emitDecoratorMetadata": true,
6-
"experimentalDecorators": true,
7-
"sourceMap": true
8-
},
3+
"extends": "./node.json",
94
"ts-node": { "esm": true, "experimentalResolver": true, "files": true, "transpileOnly": true }
105
}

packages/ts-config/node.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"$schema": "https://json.schemastore.org/tsconfig",
33
"extends": "./base.json",
44
"compilerOptions": {
5-
"jsx": "react-jsx"
5+
"emitDecoratorMetadata": true,
6+
"experimentalDecorators": true,
7+
"jsx": "react-jsx",
8+
"declaration": true,
9+
"sourceMap": true
610
}
711
}

0 commit comments

Comments
 (0)