pm
This file
Path
tests/fixtures/pm
44 lines · 1.4 KiB
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
lines 3–4why, one step back3import * as path from 'node:path';4import { program } from '../../index.js';Merge pull request #2140 from tj/release/12.xJohn Geebefore adoptione3192a1
line 5why, one step back5Add copyInheritedSettings to README (#1798)John Geebefore adoption471ec40
lines 6–7why, one step back6program7 .version('0.0.1')Reformat code with Prettier (#2180)John Geebefore adoption1bdc749
lines 8–13why, one step back8 .command('install [name]', 'install one or more packages')9 .alias('i')10 .command('search [query]', 'search with optional query')11 .alias('s')12 .command('cache', 'actions dealing with the cache')13 .alias('c')Add copyInheritedSettings to README (#1798)John Geebefore adoption471ec40
line 14why, one step back14 .command('echo', 'echo arguments')Reformat code with Prettier (#2180)John Geebefore adoption1bdc749
lines 15–20why, one step back15 .command('list', 'list packages installed')16 .alias('lst')17 .command('listen', 'listen for supported signal events')18 .alias('l')19 .command('publish', 'publish or update package')20 .alias('p')Add copyInheritedSettings to README (#1798)John Geebefore adoption471ec40
line 21why, one step back21 .command('default', 'default command', { hidden: true, isDefault: true })Reformat code with Prettier (#2180)John Geebefore adoption1bdc749
lines 22–27why, one step back22 .command('specifyInstall', 'specify install subcommand', {23 executableFile: 'pm-install',24 })25 .command('specifyPublish', 'specify publish subcommand', {26 executableFile: 'pm-publish',27 })Add copyInheritedSettings to README (#1798)John Geebefore adoption471ec40
line 28why, one step back28 .command('silent', 'silently succeed')Merge pull request #2140 from tj/release/12.xJohn Geebefore adoptione3192a1
lines 29–33why, one step back29 .command('fail', 'exit with non-zero status code')30 .command('terminate', 'terminate due to signal');3132program33 .command('exit-override')Reformat code with Prettier (#2180)John Geebefore adoption1bdc749
lines 34–37why, one step back34 .exitOverride((err) => {35 process.exit(err.exitCode);36 })37 .command('fail', 'exit with non-zero status code', {Switching to esm-only (#2464)John Geebefore adoptionf4bd470
line 38why, one step back38 executableFile: path.join(import.meta.dirname, 'pm-fail.js'),Reformat code with Prettier (#2180)John Geebefore adoption1bdc749
lines 39–40why, one step back39 })40 .command('terminate', 'terminate due to signal', {Switching to esm-only (#2464)John Geebefore adoptionf4bd470
line 41why, one step back41 executableFile: path.join(import.meta.dirname, 'pm-terminate.js'),Reformat code with Prettier (#2180)John Geebefore adoption1bdc749
line 42why, one step back42 });Merge pull request #2140 from tj/release/12.xJohn Geebefore adoptione3192a1
line 43why, one step back43Reformat code with Prettier (#2180)John Geebefore adoption1bdc749
line 44why, one step back44program.parse(process.argv);