Merge pull request #788 from balena-io/update-typescript

Update to typescript 3
This commit is contained in:
Page- 2018-11-02 16:30:06 +00:00 committed by GitHub
commit 8767481bab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -15,8 +15,8 @@
"lint:coffee": "resin-lint src/ test/",
"lint:typescript": "resin-lint --typescript src/ test/ typings/ && tsc --noEmit",
"lint": "npm run lint:coffee && npm run lint:typescript",
"test": "npm run lint && JUNIT_REPORT_PATH=report.xml mocha --exit -r ts-node/register -r coffee-script/register -r register-coffee-coverage test/*.{js,coffee} && npm run coverage",
"test:fast": "mocha --exit -r ts-node/register -r coffee-script/register test/*.{js,coffee}",
"test": "npm run lint && JUNIT_REPORT_PATH=report.xml mocha --exit -r ts-node/register/transpile-only -r coffee-script/register -r register-coffee-coverage test/*.{js,coffee} && npm run coverage",
"test:fast": "mocha --exit -r ts-node/register/transpile-only -r coffee-script/register test/*.{js,coffee}",
"test:build": "tsc && coffee -m -c -o build . && cp -r test/data build/test/ && cp -r src/migrations build/src && cp package.json build",
"test:debug": "npm run test:build && mocha --inspect-brk build/test/*.js",
"versionist": "versionist",
@ -86,9 +86,9 @@
"semver-regex": "^1.0.0",
"shell-quote": "^1.6.1",
"ts-loader": "^3.5.0",
"ts-node": "^6.0.1",
"ts-node": "^7.0.1",
"typed-error": "^2.0.0",
"typescript": "^2.8.3",
"typescript": "^3.1.6",
"uglifyjs-webpack-plugin": "^1.0.1",
"versionist": "^2.8.0",
"webpack": "^3.0.0"

View File

@ -176,7 +176,7 @@ export class Logger {
public logConfigChange(
config: { [configName: string]: string },
{ success = false, err = null }: { success?: boolean; err?: Error } = {},
{ success = false, err }: { success?: boolean; err?: Error } = {},
) {
const obj: LogEventObject = { config };
let message: string;