Skip to content

Commit 53361dd

Browse files
committed
Update tsconfig.json
1 parent 848380b commit 53361dd

File tree

4 files changed

+23
-35
lines changed

4 files changed

+23
-35
lines changed

Diff for: lib/html.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
* @typedef {import('./core.js').HChild} Child Acceptable child value
33
* @typedef {import('./core.js').HProperties} Properties Acceptable properties value.
44
*
5-
* @typedef {import('./jsx-classic').Element} h.JSX.Element
6-
* @typedef {import('./jsx-classic').IntrinsicAttributes} h.JSX.IntrinsicAttributes
7-
* @typedef {import('./jsx-classic').IntrinsicElements} h.JSX.IntrinsicElements
8-
* @typedef {import('./jsx-classic').ElementChildrenAttribute} h.JSX.ElementChildrenAttribute
5+
* @typedef {import('./jsx-classic.js').Element} h.JSX.Element
6+
* @typedef {import('./jsx-classic.js').IntrinsicAttributes} h.JSX.IntrinsicAttributes
7+
* @typedef {import('./jsx-classic.js').IntrinsicElements} h.JSX.IntrinsicElements
8+
* @typedef {import('./jsx-classic.js').ElementChildrenAttribute} h.JSX.ElementChildrenAttribute
99
*/
1010

1111
import {html} from 'property-information'

Diff for: lib/svg.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
* @typedef {import('./core.js').HChild} Child
33
* @typedef {import('./core.js').HProperties} Properties
44
*
5-
* @typedef {import('./jsx-classic').Element} s.JSX.Element
6-
* @typedef {import('./jsx-classic').IntrinsicAttributes} s.JSX.IntrinsicAttributes
7-
* @typedef {import('./jsx-classic').IntrinsicElements} s.JSX.IntrinsicElements
8-
* @typedef {import('./jsx-classic').ElementChildrenAttribute} s.JSX.ElementChildrenAttribute
5+
* @typedef {import('./jsx-classic.js').Element} s.JSX.Element
6+
* @typedef {import('./jsx-classic.js').IntrinsicAttributes} s.JSX.IntrinsicAttributes
7+
* @typedef {import('./jsx-classic.js').IntrinsicElements} s.JSX.IntrinsicElements
8+
* @typedef {import('./jsx-classic.js').ElementChildrenAttribute} s.JSX.ElementChildrenAttribute
99
*/
1010

1111
import {svg} from 'property-information'

Diff for: package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
"prettier": "^2.0.0",
7575
"remark-cli": "^11.0.0",
7676
"remark-preset-wooorm": "^9.0.0",
77-
"rimraf": "^3.0.0",
7877
"svg-tag-names": "^3.0.0",
7978
"tape": "^5.0.0",
8079
"tsd": "^0.25.0",
@@ -85,8 +84,8 @@
8584
},
8685
"scripts": {
8786
"prepack": "npm run build && npm run format",
88-
"build": "rimraf \"{script/**,test/**,}*.d.ts\" \"lib/{core,html,index,runtime-html,runtime-svg,runtime,svg-case-sensitive-tag-names,svg}.d.ts\" && tsc && tsd && type-coverage",
89-
"generate": "node script/generate-jsx && node script/build",
87+
"build": "tsc --build --clean && tsc --build && type-coverage",
88+
"generate": "node script/generate-jsx.js && node script/build.js",
9089
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
9190
"test-api": "node --conditions development test/index.js",
9291
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",

Diff for: tsconfig.json

+13-24
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,22 @@
11
{
2-
"include": [
3-
"*.js",
4-
"html/**/*.js",
5-
"script/**/*.js",
6-
"svg/**/*.js",
7-
"test/**/*.js",
8-
"lib/core.js",
9-
"lib/html.js",
10-
"lib/index.js",
11-
"lib/runtime-html.js",
12-
"lib/runtime-svg.js",
13-
"lib/runtime.js",
14-
"lib/svg-case-sensitive-tag-names.js",
15-
"lib/svg.js",
16-
"lib/jsx-automatic.d.ts",
17-
"lib/jsx-classic.d.ts"
2+
"include": ["**/**.js"],
3+
"exclude": [
4+
"coverage/",
5+
"node_modules/",
6+
"lib/jsx-automatic.js",
7+
"lib/jsx-classic.js"
188
],
199
"compilerOptions": {
20-
"target": "ES2020",
21-
"lib": ["ES2020"],
22-
"module": "ES2020",
23-
"moduleResolution": "node",
24-
"allowJs": true,
2510
"checkJs": true,
2611
"declaration": true,
2712
"emitDeclarationOnly": true,
28-
"allowSyntheticDefaultImports": true,
13+
"exactOptionalPropertyTypes": true,
14+
"forceConsistentCasingInFileNames": true,
15+
"lib": ["es2020"],
16+
"module": "node16",
17+
"newLine": "lf",
2918
"skipLibCheck": true,
30-
"strictNullChecks": true,
31-
"strict": true
19+
"strict": true,
20+
"target": "es2020"
3221
}
3322
}

0 commit comments

Comments
 (0)