pm-install
This file
Path
examples/pm-install
23 lines · 483 bytes
Last changed by
Switching to esm-only (#2464)John Geebefore adoptionf4bd470
History of this fileTake it
The walk stopped after 200 commits: lines older than 471ec40 point at it.
Add copyInheritedSettings to README (#1798)John Geebefore adoption471ec40
lines 1–2why, one step back1#!/usr/bin/env node2Switching to esm-only (#2464)John Geebefore adoptionf4bd470
line 3why, one step back3import { Command } from 'commander';Add copyInheritedSettings to README (#1798)John Geebefore adoption471ec40
lines 4–5why, one step back4const program = new Command();5Reformat code with Prettier (#2180)John Geebefore adoption1bdc749
line 6why, one step back6program.option('-f, --force', 'force installation');Update README and examples for allowExcessArguments change (#2266)John Geebefore adoption2c9051a
line 7why, one step back7program.argument('[package-names...]');Add copyInheritedSettings to README (#1798)John Geebefore adoption471ec40
lines 8–19why, one step back89program.parse(process.argv);1011const pkgs = program.args;1213if (!pkgs.length) {14 console.error('packages required');15 process.exit(1);16}1718console.log();19if (program.opts().force) console.log(' force: install');Reformat code with Prettier (#2180)John Geebefore adoption1bdc749
line 20why, one step back20pkgs.forEach(function (pkg) {Add copyInheritedSettings to README (#1798)John Geebefore adoption471ec40
lines 21–23why, one step back21 console.log(' install : %s', pkg);22});23console.log();