diff --git a/core/cli/package.json b/core/cli/package.json index 7229306..b96bdeb 100644 --- a/core/cli/package.json +++ b/core/cli/package.json @@ -9,7 +9,7 @@ "ioc", "inversion of control" ], - "version": "0.0.37", + "version": "0.0.38", "license": "MIT", "author": { "name": "Dan Kadera", diff --git a/core/cli/src/compiler.ts b/core/cli/src/compiler.ts index 1fb1a5f..c051faa 100644 --- a/core/cli/src/compiler.ts +++ b/core/cli/src/compiler.ts @@ -275,7 +275,7 @@ export class Compiler { writer.write(') => '); if (!decorators.length) { - this.compileCall(writer, join('.', source, path, hook), ['callback', ...params]); + this.compileCall(writer, join('.', source, path, hook), hook === 'onFork' ? ['callback', ...params] : params); writer.write(',\n'); return; } diff --git a/package-lock.json b/package-lock.json index 51b81d5..33c5938 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ }, "core/cli": { "name": "dicc-cli", - "version": "0.0.37", + "version": "0.0.38", "license": "MIT", "dependencies": { "@debugr/console": "^3.0.0-rc.10",