Add tsconfig.json and types for node as well as typescript

This commit is contained in:
junderw 2018-12-21 18:17:54 +09:00
parent bb98289501
commit e855bde3b3
No known key found for this signature in database
GPG key ID: B256185D3A971908
3 changed files with 31 additions and 1 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
coverage coverage
dist
node_modules node_modules
.nyc_output .nyc_output
npm-debug.log npm-debug.log

View file

@ -47,6 +47,7 @@
"wif": "^2.0.1" "wif": "^2.0.1"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^10.12.18",
"bip39": "^2.3.0", "bip39": "^2.3.0",
"bip65": "^1.0.1", "bip65": "^1.0.1",
"bip68": "^1.0.3", "bip68": "^1.0.3",
@ -58,7 +59,8 @@
"mocha": "^5.2.0", "mocha": "^5.2.0",
"nyc": "^11.8.0", "nyc": "^11.8.0",
"proxyquire": "^2.0.1", "proxyquire": "^2.0.1",
"standard": "^11.0.1" "standard": "^11.0.1",
"typescript": "^3.2.2"
}, },
"license": "MIT" "license": "MIT"
} }

27
tsconfig.json Normal file
View file

@ -0,0 +1,27 @@
{
"compilerOptions": {
"target": "ES2015",
"module": "commonjs",
"outDir": "./dist",
"rootDir": "./",
"types": [
"node"
],
"allowJs": true,
"strict": false,
"noImplicitAny": false,
"strictNullChecks": false,
"strictFunctionTypes": false,
"strictBindCallApply": false,
"strictPropertyInitialization": false,
"noImplicitThis": false,
"alwaysStrict": false,
"esModuleInterop": true
},
"include": [
"src/**/*"
],
"exclude": [
"**/*.spec.ts"
]
}