Skip to content

Commit 409b5e2

Browse files
committed
tweak tsconfig
1 parent 657d48a commit 409b5e2

File tree

4 files changed

+31
-20
lines changed

4 files changed

+31
-20
lines changed

.github/workflows/test-and-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
needs: [version]
5353
strategy:
5454
matrix:
55-
node-version: [16.x, 18.x]
55+
node-version: [16.x, 18.x, 20.x]
5656
steps:
5757
- uses: actions/checkout@v3
5858
with:

src/ui/js/diff2html-ui-slim.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ export class Diff2HtmlUI extends Diff2HtmlUIBase {
99
}
1010
}
1111

12-
export { Diff2HtmlUIConfig, defaultDiff2HtmlUIConfig };
12+
export { defaultDiff2HtmlUIConfig };
13+
export type { Diff2HtmlUIConfig };

src/ui/js/diff2html-ui.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ export class Diff2HtmlUI extends Diff2HtmlUIBase {
99
}
1010
}
1111

12-
export { Diff2HtmlUIConfig, defaultDiff2HtmlUIConfig };
12+
export { defaultDiff2HtmlUIConfig };
13+
export type { Diff2HtmlUIConfig };

tsconfig.json

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,37 @@
11
{
2+
"include": ["*env.d.ts", "src/**/*", "./typings/**/*"],
3+
"exclude": ["node_modules", "src/__tests__/**"],
24
"compilerOptions": {
3-
"outDir": "./_target",
4-
"target": "es5",
5-
"module": "commonjs",
6-
"moduleResolution": "node",
7-
"lib": ["es2020", "dom"],
5+
"outDir": "_target",
6+
"module": "CommonJS",
7+
"moduleResolution": "Node",
8+
"target": "ES6",
9+
"lib": ["ES6", "DOM"],
10+
"jsx": "preserve",
811
"allowJs": false,
12+
"checkJs": false,
13+
"importHelpers": true,
14+
"esModuleInterop": true,
15+
"allowSyntheticDefaultImports": true,
16+
"strict": true,
17+
"noUnusedLocals": true,
18+
"noUnusedParameters": true,
19+
"noImplicitReturns": true,
20+
"noFallthroughCasesInSwitch": true,
21+
"skipLibCheck": true,
22+
"resolveJsonModule": true,
923
"declaration": true,
1024
"declarationMap": true,
25+
"sourceMap": true,
26+
"noEmit": false,
27+
"forceConsistentCasingInFileNames": true,
28+
"isolatedModules": true,
29+
"incremental": false,
1130
"strictNullChecks": true,
1231
"removeComments": true,
1332
"preserveConstEnums": true,
14-
"sourceMap": true,
1533
"alwaysStrict": true,
16-
"strict": true,
1734
"noImplicitAny": true,
18-
"noImplicitThis": true,
19-
"noUnusedParameters": true,
20-
"noUnusedLocals": true,
21-
"noImplicitReturns": true,
22-
"noFallthroughCasesInSwitch": true,
23-
"forceConsistentCasingInFileNames": true,
24-
"esModuleInterop": true
25-
},
26-
"include": ["./src/**/*", "./typings/**/*"],
27-
"exclude": ["node_modules", "./src/__tests__/*"]
35+
"noImplicitThis": true
36+
}
2837
}

0 commit comments

Comments
 (0)