chore(tsc): simplify tsconfig.json using tsconfigs (#511)

pull/512/head
Shahar Dawn Or 5 years ago committed by GitHub
parent a2342e6875
commit e018fdf79f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -42,7 +42,10 @@ module.exports = function (config) {
customLaunchers: browserstack,
karmaTypescriptConfig: {
coverageOptions: {
exclude: /^src{\/|\\}test{\/|\\}/,
exclude: /test\//,
},
compilerOptions: {
module: 'commonjs'
},
tsconfig: './tsconfig.json',
include: {

6
package-lock.json generated

@ -9268,6 +9268,12 @@
"integrity": "sha512-tdzBRDGWcI1OpPVmChbdSKhvSVurznZ8X36AYURAcl+0o2ldlCY2XPzyXNNxwJwwyIU+rIglTCG4kxtNKBQH7Q==",
"dev": true
},
"tsconfigs": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/tsconfigs/-/tsconfigs-4.0.2.tgz",
"integrity": "sha512-Po+Hqetcu0P83zy6WHpT0bJIpXgKS+/N5mtiSpzxcTdjUbPNE2kijqUCZecwERHkVQt/mqNC6xzj/C92hs40qg==",
"dev": true
},
"tslib": {
"version": "1.10.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz",

@ -40,6 +40,7 @@
"npm-run-all": "^4.1.5",
"remark-cli": "^7.0.1",
"remark-toc": "^6.0.0",
"tsconfigs": "^4.0.2",
"typescript": "^3.7.2",
"xyz": "2.1.0"
},
@ -52,8 +53,8 @@
"unit": "karma start",
"test": "run-s lint compile unit",
"compile": "npm run compile-es && npm run compile-commonjs",
"compile-es": "tsc --outDir es --module es6 --moduleResolution node",
"compile-commonjs": "tsc --outDir ./",
"compile-es": "tsc --outDir es --module es6",
"compile-commonjs": "tsc --outDir . --module commonjs",
"prepublishOnly": "npm run compile",
"release-major": "xyz --repo git@github.com:paldepind/snabbdom.git --increment major",
"release-minor": "xyz --repo git@github.com:paldepind/snabbdom.git --increment minor",

@ -1,15 +1,12 @@
{
"extends": "tsconfigs/browser-module",
"compilerOptions": {
"strictFunctionTypes": false,
"strictBindCallApply": false,
"noImplicitThis": false,
"target": "ES5",
"noImplicitAny": true,
"sourceMap": true,
"strictNullChecks": true,
"declaration": true,
"removeComments": false,
"noUnusedLocals": true,
"jsx": "react",
"jsxFactory": "jsx",
"esModuleInterop": true,
"lib": [
"dom",
"es5",

Loading…
Cancel
Save