UNPKG

nisd

Version:

Npm Install in SubDirectories. Yes, it's that simple. Use it like: `nisd [subdirs...]` (Example: `nisd client server scripts`)

14 lines (13 loc) 640 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const commander = require("commander"); const eisd_1 = require("eisd"); commander .usage("[options] <directories...>") .arguments("[options] <directories...>") .option("-a, --async", "Execute npm i async across all folders, output will be a mess") .option("-e, --allowErrors", "Allow errors (at default we stop when there is one). NOTE: always true when in async mode!") .parse(process.argv); const allowErrors = commander.allowErrors === true; const async = commander.async === true; eisd_1.eisd("npm i", commander.args, allowErrors, async);