Skip to content

Commit 249a06c

Browse files
committed
[refactor] Cleanup the tsconfig.json files
1 parent 6dc36a0 commit 249a06c

5 files changed

Lines changed: 13 additions & 29 deletions

File tree

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4-
"target": "ES2022",
54
"rootDir": "src",
65
"outDir": "dist",
7-
"module": "Node16",
8-
"moduleResolution": "Node16",
9-
"composite": true
6+
"composite": true,
7+
"declaration": true,
8+
"declarationMap": true,
109
},
1110
"include": [
1211
"src/**/*",
1312
],
14-
"exclude": [
15-
"tests/*",
16-
"eslint.config.mts",
17-
],
1813
"references": [] // no internal package dependencies
1914
}

packages/prosemirror-lwdita-demo/tsconfig.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33
"compilerOptions": {
44
"rootDir": "src",
55
"outDir": "dist",
6-
"composite": true
6+
"composite": true,
7+
"declaration": true,
8+
"declarationMap": true,
79
},
810
"include": [
911
"src/**/*",
1012
],
11-
"exclude": [
12-
"cypress.config.ts",
13-
"eslint.config.mts"
14-
],
1513
"references": [
1614
{ "path": "../prosemirror-lwdita" },
1715
{ "path": "../prosemirror-lwdita-localization" }

packages/prosemirror-lwdita-localization/tsconfig.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
"rootDir": "src",
55
"outDir": "dist",
66
"composite": true,
7+
"declaration": true,
8+
"declarationMap": true,
9+
"resolveJsonModule": true,
710
},
811
"include": [
912
"src/**/*",
10-
"src/**/*.json"
11-
],
12-
"exclude": [
13-
"tests/*",
14-
"eslint.config.mts"
13+
"src/**/*.json",
1514
],
1615
"references": [] // no internal package dependencies
1716
}

packages/prosemirror-lwdita/tsconfig.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33
"compilerOptions": {
44
"rootDir": "src",
55
"outDir": "dist",
6-
"composite": true
6+
"composite": true,
7+
"declaration": true,
8+
"declarationMap": true,
79
},
810
"include": [
911
"src/**/*",
1012
],
11-
"exclude": [
12-
"tests/*",
13-
"eslint.config.mts"
14-
],
1513
"references": [
1614
{ "path": "../prosemirror-lwdita-localization" }
1715
]

tsconfig.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,7 @@
99
"sourceMap": true, /* Generates corresponding '.map' file. */
1010
"noEmit": false, /* NOTE(AR) just making it explicit that we are using tsc (and not another tool) to emit compiled JavaScript */
1111
"moduleResolution": "node10", /* NOTE(AR) just making it explicit that this is the tsc compilation strategy for module resolution that we are currently using */
12-
"outDir": "dist", /* Redirect output structure to the `dist/` directory. */
13-
"resolveJsonModule": true
1412
},
15-
"files": [], // This tells tsc to not include any files by default, and only include those specified in "references"
16-
"exclude": [
17-
"**/eslint.config.*",
18-
],
1913
"references": [
2014
{ "path": "packages/prosemirror-lwdita-backend" },
2115
{ "path": "packages/prosemirror-lwdita-demo" },

0 commit comments

Comments
 (0)