From cdc01a0d9b8a3cfed2d9ec5998cbd9aee9881b55 Mon Sep 17 00:00:00 2001 From: pelikhan Date: Tue, 26 Oct 2021 13:02:49 -0700 Subject: [PATCH] add tsconfig --- package.json | 5 ++--- tsconfig.json | 34 ++++++++++++++++++++++++++++++++++ typedoc.json | 4 +--- yarn.lock | 24 ++++++++++++++++++++++++ 4 files changed, 61 insertions(+), 6 deletions(-) create mode 100644 tsconfig.json diff --git a/package.json b/package.json index bfc53cb..20576d0 100644 --- a/package.json +++ b/package.json @@ -38,14 +38,13 @@ "prettier": "^2.4.1", "react": "^17.0.0", "typedoc": "^0.22.7", - "typescript": "^4.4.4" + "typescript": "^4.4.4", + "@types/react": "^17.0.33" }, "dependencies": { "jacdac-ts": "^1.18.24" }, "peerDependencies": { - "@types/react": "^17.0.33", - "@types/react-dom": "^17.0.10", "react": "^16.0.0" } } diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..7bb5ed8 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,34 @@ +{ + "compilerOptions": { + "moduleResolution": "node", + "target": "es2017", + "module": "es2015", + "lib": [ + "es2015", + "es2016", + "es2017", + "dom" + ], + "strict": false, + "strictNullChecks": false, + "sourceMap": true, + "declaration": true, + "declarationMap": true, + "allowSyntheticDefaultImports": true, + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "preserveConstEnums": true, + "noImplicitThis": true, + "noImplicitAny": true, + "resolveJsonModule": true, + "pretty": true, + "jsx": "react", + "newLine": "LF", + "typeRoots": [ + "node_modules/@types" + ] + }, + "include": [ + "src" + ] + } \ No newline at end of file diff --git a/typedoc.json b/typedoc.json index 5e7428f..10bdab5 100644 --- a/typedoc.json +++ b/typedoc.json @@ -1,9 +1,7 @@ { "entryPoints": ["src/index.ts"], "out": "docs", - "exclude": [ - "src/index.ts" - ], + "exclude": [], "excludePrivate": true, "excludeInternal": true, "excludeExternals": true, diff --git a/yarn.lock b/yarn.lock index ad7f343..9e4d0f5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1211,6 +1211,20 @@ resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0" integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA== +"@types/prop-types@*": + version "15.7.4" + resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.4.tgz#fcf7205c25dff795ee79af1e30da2c9790808f11" + integrity sha512-rZ5drC/jWjrArrS8BR6SIr4cWpW09RNTYt9AMZo3Jwwif+iacXAqgVjm0B0Bv/S1jhDXKHqRVNCbACkJ89RAnQ== + +"@types/react@^17.0.33": + version "17.0.33" + resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.33.tgz#e01ae3de7613dac1094569880bb3792732203ad5" + integrity sha512-pLWntxXpDPaU+RTAuSGWGSEL2FRTNyRQOjSWDke/rxRg14ncsZvx8AKWMWZqvc1UOaJIAoObdZhAWvRaHFi5rw== + dependencies: + "@types/prop-types" "*" + "@types/scheduler" "*" + csstype "^3.0.2" + "@types/resolve@1.17.1": version "1.17.1" resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.17.1.tgz#3afd6ad8967c77e4376c598a82ddd58f46ec45d6" @@ -1218,6 +1232,11 @@ dependencies: "@types/node" "*" +"@types/scheduler@*": + version "0.16.2" + resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.2.tgz#1a62f89525723dde24ba1b01b092bf5df8ad4d39" + integrity sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew== + "@types/usb@^1.5.1": version "1.5.3" resolved "https://registry.yarnpkg.com/@types/usb/-/usb-1.5.3.tgz#2da43e16699819b524dd106e46ead5c3224a5c69" @@ -1863,6 +1882,11 @@ csso@^4.2.0: dependencies: css-tree "^1.1.2" +csstype@^3.0.2: + version "3.0.9" + resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.0.9.tgz#6410af31b26bd0520933d02cbc64fce9ce3fbf0b" + integrity sha512-rpw6JPxK6Rfg1zLOYCSwle2GFOOsnjmDYDaBwEcwoOg4qlsIVCN789VkBZDJAGi4T07gI4YSutR43t9Zz4Lzuw== + debug@^4.0.0, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2: version "4.3.2" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b"