Skip to content
Myr

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 file

Take 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 back
1#!/usr/bin/env node
2

Switching to esm-only (#2464)John Geebefore adoptionf4bd470

lines 3–4why, one step back
3import * 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 back
5

Add copyInheritedSettings to README (#1798)John Geebefore adoption471ec40

lines 6–7why, one step back
6program
7 .version('0.0.1')

Reformat code with Prettier (#2180)John Geebefore adoption1bdc749

lines 8–13why, one step back
8 .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 back
14 .command('echo', 'echo arguments')

Reformat code with Prettier (#2180)John Geebefore adoption1bdc749

lines 15–20why, one step back
15 .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 back
21 .command('default', 'default command', { hidden: true, isDefault: true })

Reformat code with Prettier (#2180)John Geebefore adoption1bdc749

lines 22–27why, one step back
22 .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 back
28 .command('silent', 'silently succeed')

Merge pull request #2140 from tj/release/12.xJohn Geebefore adoptione3192a1

lines 29–33why, one step back
29 .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 back
34 .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 back
38 executableFile: path.join(import.meta.dirname, 'pm-fail.js'),

Reformat code with Prettier (#2180)John Geebefore adoption1bdc749

lines 39–40why, one step back
39 })
40 .command('terminate', 'terminate due to signal', {

Switching to esm-only (#2464)John Geebefore adoptionf4bd470

line 41why, one step back
41 executableFile: path.join(import.meta.dirname, 'pm-terminate.js'),

Reformat code with Prettier (#2180)John Geebefore adoption1bdc749

line 42why, one step back
42 });

Merge pull request #2140 from tj/release/12.xJohn Geebefore adoptione3192a1

line 43why, one step back
43

Reformat code with Prettier (#2180)John Geebefore adoption1bdc749

line 44why, one step back
44program.parse(process.argv);