initial move to tsc

This commit is contained in:
Artem Titoulenko 2021-09-08 13:40:11 -04:00
parent 7df7db98e5
commit 4c2492e348
11 changed files with 23 additions and 1 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
node_modules
built

View file

@ -8,6 +8,8 @@
"start": "node ./src/index.js"
},
"devDependencies": {
"nodemon": "^2.0.12"
"@tsconfig/node14": "^1.0.1",
"nodemon": "^2.0.12",
"typescript": "^4.4.2"
}
}

9
tsconfig.json Normal file
View file

@ -0,0 +1,9 @@
{
"extends": "@tsconfig/node14/tsconfig.json",
"compilerOptions": {
"preserveConstEnums": true,
"outDir": "./built",
},
"include": ["src/**/*"],
"exclude": ["node_modules", "**/*.spec.ts"]
}

View file

@ -14,6 +14,11 @@
dependencies:
defer-to-connect "^1.0.1"
"@tsconfig/node14@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@tsconfig/node14/-/node14-1.0.1.tgz#95f2d167ffb9b8d2068b0b235302fafd4df711f2"
integrity sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==
abbrev@1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8"
@ -723,6 +728,11 @@ typedarray-to-buffer@^3.1.5:
dependencies:
is-typedarray "^1.0.0"
typescript@^4.4.2:
version "4.4.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.2.tgz#6d618640d430e3569a1dfb44f7d7e600ced3ee86"
integrity sha512-gzP+t5W4hdy4c+68bfcv0t400HVJMMd2+H9B7gae1nQlBzCqvrXX+6GL/b3GAgyTH966pzrZ70/fRjwAtZksSQ==
undefsafe@^2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/undefsafe/-/undefsafe-2.0.3.tgz#6b166e7094ad46313b2202da7ecc2cd7cc6e7aae"