Skip to content

Commit 998ba08

Browse files
committed
Update tsconfig.json
1 parent 560d6d0 commit 998ba08

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@
126126
},
127127
"scripts": {
128128
"prepack": "npm run build && npm run format",
129-
"build": "rimraf \"{lib/**/**,test/**,script/**,}*.d.ts\" && tsc && type-coverage && esbuild index.js --bundle --minify --target=es2015 --outfile=react-markdown.min.js --global-name=ReactMarkdown --banner:js=\"(function (g, f) {typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = f() : typeof define === 'function' && define.amd ? define([], f) : (g = typeof globalThis !== 'undefined' ? globalThis : g || self, g.ReactMarkdown = f()); }(this, (function () { 'use strict';\" --footer:js=\"return ReactMarkdown;})));\"",
129+
"build": "tsc --build --clean && tsc --build && type-coverage && esbuild index.js --bundle --minify --target=es2015 --outfile=react-markdown.min.js --global-name=ReactMarkdown --banner:js=\"(function (g, f) {typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = f() : typeof define === 'function' && define.amd ? define([], f) : (g = typeof globalThis !== 'undefined' ? globalThis : g || self, g.ReactMarkdown = f()); }(this, (function () { 'use strict';\" --footer:js=\"return ReactMarkdown;})));\"",
130130
"format": "remark . -qfo --ignore-pattern test/ && prettier . -w --loglevel warn && xo --fix",
131-
"test-api": "node --no-warnings --experimental-loader=./test/loader.js ./node_modules/.bin/uvu test \"\\.jsx$\"",
132-
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api",
131+
"test-api": "node --no-warnings --experimental-loader=./test/loader.js --conditions development ./node_modules/.bin/uvu test \"\\.jsx$\"",
132+
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
133133
"test": "npm run build && npm run format && npm run test-coverage"
134134
},
135135
"remarkConfig": {

tsconfig.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
{
2-
"include": ["lib/**/*.js", "test/**/*.jsx", "test/**/*.js", "index.js"],
3-
"exclude": ["**/*.min.js"],
2+
"include": ["**/*.js", "**/*.jsx"],
3+
"exclude": ["coverage/", "node_modules/", "**/*.min.js"],
44
"compilerOptions": {
5-
"target": "es2021",
6-
"lib": ["es2020", "dom"],
7-
"module": "node16",
8-
"jsx": "react",
95
"checkJs": true,
106
"declaration": true,
117
"emitDeclarationOnly": true,
8+
"exactOptionalPropertyTypes": true,
9+
"forceConsistentCasingInFileNames": true,
10+
"lib": ["es2020"],
11+
"module": "node16",
12+
"newLine": "lf",
1213
"skipLibCheck": true,
13-
"strict": true
14+
"strict": true,
15+
"target": "es2021",
16+
"jsx": "preserve"
1417
}
1518
}

0 commit comments

Comments
 (0)