Content-Length: 292862 | pFad | http://github.com/NativeScript/nativescript-cli/commit/ee1ac164761ea3ebc3c07e6a28ab796cfe9abe14

27 - Accomodate for setups where node's binary is not called 'node' · NativeScript/nativescript-cli@ee1ac16 · GitHub
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

Diff for: lib/commands/post-install.ts

+2-2
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
}

Diff for: postinstall.js

+2-1
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/nativescript-cli/commit/ee1ac164761ea3ebc3c07e6a28ab796cfe9abe14

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy