Commit cd4336e8 authored by Ates Goral's avatar Ates Goral
Browse files

Add TypeScript and tweak TS config

parent 1ef7b15e
......@@ -7,7 +7,7 @@
"types": "dist/src/index.d.ts",
"scripts": {
"test": "sk test",
"build": "tsc --p tsconfig.json"
"build": "tsc"
},
"publishConfig": {
"access": "public",
......@@ -38,7 +38,8 @@
"@types/safe-compare": "^1.1.0",
"koa": "^2.5.0",
"node-fetch": "^2.6.0",
"tsc": "^1.20150623.0"
"tsc": "^1.20150623.0",
"typescript": "^4.0.2"
},
"sideEffects": false,
"files": [
......
{
"extends": "./tsconfig_base.json",
"compileOnSave": false,
"compilerOptions": {
"composite": true,
"declaration": true,
"declarationMap": true,
"pretty": true,
"moduleResolution": "node",
"target": "es5",
"downlevelIteration": true,
"esModuleInterop": true,
"jsx": "react",
"strictNullChecks": true,
"noImplicitAny": false,
"sourceMap": false,
"noEmitOnError": false,
"experimentalDecorators": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"importHelpers": true,
"lib": [
"dom",
"dom.iterable",
"es2015",
"es2016",
"es2017",
"es2018",
"esnext.asynciterable"
],
"typeRoots": ["../node_modules/@types"],
"outDir": "./dist",
"baseUrl": ".",
"rootDir": "."
......
{
"compileOnSave": false,
"compilerOptions": {
"composite": true,
"declaration": true,
"declarationMap": true,
"pretty": true,
"moduleResolution": "node",
"target": "es5",
"downlevelIteration": true,
"esModuleInterop": true,
"jsx": "react",
"strictNullChecks": true,
"noImplicitAny": false,
"sourceMap": false,
"noEmitOnError": false,
"experimentalDecorators": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"importHelpers": true,
"lib": [
"dom",
"dom.iterable",
"es2015",
"es2016",
"es2017",
"es2018",
"esnext.asynciterable"
],
"typeRoots": ["../node_modules/@types"]
}
}
......@@ -608,6 +608,11 @@ type-is@^1.6.16, type-is@^1.6.18:
media-typer "0.3.0"
mime-types "~2.1.24"
typescript@^4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.2.tgz#7ea7c88777c723c681e33bf7988be5d008d05ac2"
integrity sha512-e4ERvRV2wb+rRZ/IQeb3jm2VxBsirQLpQhdxplZ2MEzGvDkkMmPglecnNDfSUBivMjP93vRbngYYDQqQ/78bcQ==
vary@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment