Skip to content

Commit ee1ac16

Browse files
committed
- Accomodate for setups where node's binary is not called 'node'
- Fix spelling mistake which prevents post-install actions from runnning at all Fixes #113 but the change affects Macs too
1 parent 21e4703 commit ee1ac16

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/commands/post-install.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import util = require("util");
66

77
export class PostInstallCommand implements ICommand {
88

9-
constructor(private $autocompletionService: IAutoCompletionService,
9+
constructor(private $autoCompletionService: IAutoCompletionService,
1010
private $fs: IFileSystem,
1111
private $staticConfig: IStaticConfig) { }
1212

@@ -18,7 +18,7 @@ export class PostInstallCommand implements ICommand {
1818
this.$fs.chmod(this.$staticConfig.adbFilePath, "0777").wait();
1919
}
2020

21-
this.$autocompletionService.enableAutoCompletion().wait();
21+
this.$autoCompletionService.enableAutoCompletion().wait();
2222
}).future<void>()();
2323
}
2424
}

postinstall.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11

22
var child_process = require("child_process");
3-
child_process.exec('node bin/nativescript.js dev-post-install');
3+
var command = process.argv[0] + ' bin/nativescript.js dev-post-install';
4+
child_process.exec(command);

0 commit comments

Comments
 (0)