Skip to content
Myr

Add npm run-script to README (#1872)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by John Gee · committed by GitHub · parent 63abdac · Browse files · 1 file+12 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+12 added−0 removed

  • other:+12 added−0 removed

1 file+12 added−0 removed

modified:Readme.md+12 added
46 unmodified lines
47 - [TypeScript](#typescript)48 - [createCommand()](#createcommand)49 - [Node options such as `--harmony`](#node-options-such-as---harmony)50 - [Debugging stand-alone executable subcommands](#debugging-stand-alone-executable-subcommands)51 - [npm run-script](#npm-run-script)52 - [Display error](#display-error)53 - [Override exit and output handling](#override-exit-and-output-handling)54 - [Additional documentation](#additional-documentation)55 - [Support](#support)
1005 unmodified lines
1061the inspector port is incremented by 1 for the spawned subcommand.10621063If you are using VSCode to debug executable subcommands you need to set the `"autoAttachChildProcesses": true` flag in your launch.json configuration.10641065### npm run-script10661067By default when you call your program using run-script, `npm` will parse any options on the command-line and they will not reach your program. Use1068 `--` to stop the npm option parsing and pass through all the arguments.10691070 The synopsis for [npm run-script](https://docs.npmjs.com/cli/v9/commands/npm-run-script) explicitly shows the `--` for this reason:10711072```console1073npm run-script <command> [-- <args>]1074```10751076### Display error10771078This routine is available to invoke the Commander error handling for your own error conditions. (See also the next section about exit handling.)1079
67 unmodified lines