mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 15:56:40 +00:00
Merge pull request #788 from balena-io/update-typescript
Update to typescript 3
This commit is contained in:
commit
8767481bab
@ -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"
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user