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

npm style script support #10928

Closed
allenc97 opened this issue Jan 24, 2025 · 1 comment
Closed

npm style script support #10928

allenc97 opened this issue Jan 24, 2025 · 1 comment
Labels
enhancement New feature or improvement to existing functionality

Comments

@allenc97
Copy link

allenc97 commented Jan 24, 2025

Summary

Currently, uv supports entrypoint scripts but strictly requires package installation, which is problematic for standard applications with no packaging intentions. It would be great to support certain features of npm's scripts, e.g defining commands that are pre-configured with certain flags, as a new subcommand.

Example

In similar fashion to npm:
"run_with_debug": "uv run --directory src flask --app hello run --debug" -> uv execute run_with_debug
Assuming paths are properly configured, this would also allow the user to execute a command such as the one above from any subdirectory under the project's root.

@allenc97 allenc97 added the enhancement New feature or improvement to existing functionality label Jan 24, 2025
@cthoyt
Copy link
Contributor

cthoyt commented Jan 24, 2025

you should check out similar issue with long discussion: #5903

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement to existing functionality
Projects
None yet
Development

No branches or pull requests

3 participants