UNPKG

764 BJavaScriptView Raw
1#! /usr/bin/env node
2"use strict";
3const util_1 = require("./util");
4const promisifed_fs_1 = require("./promisifed-fs");
5const promise_1 = require("./promise");
6const fs_1 = require("fs");
7const path = require("path");
8const cla = require("command-line-args");
9const args = cla(util_1.commonArgs.concat({
10 name: "arch",
11 type: String,
12})).parse();
13const devPackageFile = path.join(process.cwd(), "package.json");
14const appDir = args.appDir || util_1.DEFAULT_APP_DIR_NAME;
15util_1.installDependencies(path.join(process.cwd(), appDir), args.arch, util_1.getElectronVersion(promisifed_fs_1.parseJson(fs_1.readFileSync(devPackageFile, "utf8"), devPackageFile), devPackageFile))
16 .catch(promise_1.printErrorAndExit);
17//# sourceMappingURL=install-app-deps.js.map
\No newline at end of file