Skip to content
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

Rework of some concepts #157

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open

Rework of some concepts #157

wants to merge 24 commits into from

Conversation

julianess
Copy link
Contributor

@julianess julianess commented Nov 18, 2022

Hi @Heerschop, with this PR I've reworked some concepts to be able to fix internal scripts (e.g. help, version) as well as being able to transport variables to scripts (e.g. foo:bar $1 $2) this wasn't working along with internal commands in previous versions.
I've restricted commands (scripts) to be used without "--" prefix (e.g. --help will not work anymore) and options with "--" prefix (which is enforced by NPM anyway and not preserved on the processArgv array).
Additional I've adapted the implementation of options (--dry, --confirm=false, ...) according to NPM to use process.env.npm_config_xyz.
Coming with this there were conflicts with the options of NPM itself (e.g. --dry, --dry-run, --dryRun are all converted to npm_config_dry_run, also --loglevel is a string and not a number).
Also I've changed the concept of how multiple scripts are preserved by the user (previously: npx launch foo:bar foo:baz, now npx launch foo:bar,foo:baz)
I guess this should not be published as a patch version update but a major (2.0.0 as the multi-commands are breaking) or minor version instead (1.38.0 as I've added to the CHANGELOG.md file).

julianess and others added 24 commits October 17, 2022 19:57
…_config_XYZ instead of processArgv (part 1); Removed some unused things; Renamed some typos
…ould use a name they like not necessarily "start"; Enforcing "LF" as line ending
…and options (e.g. --confirm); Replaced some hardcoded versions in win32 tests with $version placeholder;
…me (they need to be comma-separated as of now)
…pt to new concept for multiple commands (scripts) at the same time;
…Renamed internal "dry" option to match native NPM implementation of dry_run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant