Merge pull request #41 from NativeScript/lini/fix-platform-detection
fix check for win32 platform
This commit is contained in:
Коммит
ec89ac4425
|
@ -7,7 +7,7 @@ const defaultHeaders = {
|
|||
export class NsStarterKitsNpmService implements INsStarterKitsNpmService {
|
||||
installPageTemplate(pageName: string, flavor: string, templatesDirectory: string): Promise<any> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const command: string = (process.platform.indexOf("win") > -1) ? "npm.cmd" : "npm";
|
||||
const command: string = (process.platform === "win32") ? "npm.cmd" : "npm";
|
||||
const commandArguments: Array<any> = ["install"];
|
||||
const options = { cwd: templatesDirectory };
|
||||
let packageName: string;
|
||||
|
|
Загрузка…
Ссылка в новой задаче