Skip to content

Conversation

@ryanccn
Copy link
Owner

@ryanccn ryanccn commented Mar 9, 2024

This PR primarily adds the ability to execute arbitrary commands in npm package contexts with nrr using the subcommand nrr exec/x or the standalone command nrx (which automatically takes over when nrr is symlinked or hard linked to a path with the base name as nrx). In addition, various pieces of functionality were made available in separate subcommands (e.g. nrr list and nrr run) while retaining the root command's original functionality.

The -p/--pre-post flag has been removed in favor of -n/--no-pre-post, since it is a better default to run associated lifecycle scripts.

@ryanccn ryanccn added the enhancement New feature or request label Mar 9, 2024
@ryanccn ryanccn changed the title feat: arbitrary command execution feat!: arbitrary command execution Mar 9, 2024
@ryanccn
Copy link
Owner Author

ryanccn commented Mar 9, 2024

Branch Mean [ms] Min [ms] Max [ms] Relative
exec 4.1 ± 0.3 3.8 5.6 1.00
main 5.1 ± 0.4 4.8 9.3 1.25 ± 0.13

@ryanccn ryanccn merged commit 7c1576e into main Mar 19, 2024
@ryanccn ryanccn deleted the exec branch March 29, 2024 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant