-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: npm debug
command
#618
Closed
Closed
Commits on Feb 16, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b284060 - Browse repository at this point
Copy the full SHA b284060View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37f8cb9 - Browse repository at this point
Copy the full SHA 37f8cb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19941ce - Browse repository at this point
Copy the full SHA 19941ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for b43a455 - Browse repository at this point
Copy the full SHA b43a455View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6680f73 - Browse repository at this point
Copy the full SHA 6680f73View commit details
Commits on Jul 29, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 245e63e - Browse repository at this point
Copy the full SHA 245e63eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a4d528f - Browse repository at this point
Copy the full SHA a4d528fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c4bd675 - Browse repository at this point
Copy the full SHA c4bd675View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7491691 - Browse repository at this point
Copy the full SHA 7491691View commit details
Commits on Aug 2, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f50e78b - Browse repository at this point
Copy the full SHA f50e78bView commit details
Commits on Aug 6, 2022
-
Consider packages with a
bin
object property and multiple executablesFor example *node_modules/foo/package.json* ~~~ "bin": { "not-my-pkg-name": "./bin/script.js", "not-my-pkg-name-2": "./bin/script2.js" } ~~~ Proposal: ~~~ npm debug <package> --bin <name> ~~~ as a general syntax. 1. GIVEN there are multiple executables THEN there MUST be a `--bin` key and value in `argv` 2. GIVEN there's only a single `bin` object property THEN a `--bin` in `argv` *MAY* be omitted 3. GIVEN there is a `--bin` in `argv` THEN `<name>` MUST match some name in the `bin` object ELSE EXIT with NPM ERR. So the example above requires ~~~ npm debug foo --bin not-my-pkg-name ~~~ However *node_modules/foo/package.json* ~~~ "bin": { "not-my-pkg-name": "./bin/script.js" } ~~~ or ~~~ { "bin": "./bin/script.js" } ~~~ both allow for ~~~ npm debug foo ~~~
Configuration menu - View commit details
-
Copy full SHA for 6ed32eb - Browse repository at this point
Copy the full SHA 6ed32ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1351331 - Browse repository at this point
Copy the full SHA 1351331View commit details -
Clarify: what about packages with both a bin and a main that want to …
…debug both? Allow for selecting which one to debug with --bin and --main argument. When both arguments are given --bin takes precedence over --main. When none are given fallback priority is the same.
Configuration menu - View commit details
-
Copy full SHA for 70c0a01 - Browse repository at this point
Copy the full SHA 70c0a01View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.