diff --git a/lib/common/services/hooks-service.ts b/lib/common/services/hooks-service.ts index 4879ae4a5b..dc13513531 100644 --- a/lib/common/services/hooks-service.ts +++ b/lib/common/services/hooks-service.ts @@ -179,7 +179,7 @@ export class HooksService implements IHooksService { let inProc = false; if (!command) { command = hook.fullPath; - if (path.extname(hook.fullPath).toLowerCase() === ".js") { + if ([".mjs", ".js"].includes(path.extname(hook.fullPath).toLowerCase())) { command = process.argv[0]; inProc = this.shouldExecuteInProcess(this.$fs.readText(hook.fullPath)); } diff --git a/package.json b/package.json index 5fe54c4a8a..addfe5724b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "nativescript", "main": "./lib/nativescript-cli-lib.js", - "version": "8.9.3", + "version": "9.0.0-alpha.0", "author": "NativeScript ", "description": "Command-line interface for building NativeScript projects", "bin": { @@ -50,7 +50,7 @@ }, "keywords": [ "nativescript", - "telerik", + "typescript", "mobile" ], "dependencies": {