Skip to content

fix(config): expand npm shorthand in command values#83

Merged
hyldmo merged 2 commits intomainfrom
fix/npm-command-shorthand
Mar 16, 2026
Merged

fix(config): expand npm shorthand in command values#83
hyldmo merged 2 commits intomainfrom
fix/npm-command-shorthand

Conversation

@hyldmo
Copy link
Copy Markdown
Owner

@hyldmo hyldmo commented Mar 11, 2026

Summary

  • expand command: 'npm:...' shorthand through the same script parser used for script-reference keys
  • add coverage for npm run <script> name derivation and config shorthand expansion with forwarded args
  • make the prefix integration test helper ignore inherited NO_COLOR unless a test opts into it explicitly

Test plan

  • bun run lint
  • bun test

Made with Cursor

hyldmo and others added 2 commits March 11, 2026 18:04
Process config entries using command values like `npm:studio:dev` were passed
through to the shell literally, so shorthand only worked for script-reference
keys and not for explicit named processes. Expand the shorthand through the
existing script parser so named processes and script refs behave the same way.

Also make the prefix integration helper ignore inherited `NO_COLOR` unless a
test sets it explicitly, so ANSI-preservation checks stay deterministic across
local environments and CI.

Made-with: Cursor
@hyldmo hyldmo merged commit d208654 into main Mar 16, 2026
1 of 2 checks passed
@hyldmo hyldmo deleted the fix/npm-command-shorthand branch March 16, 2026 12:56
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 2.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant