Skip to content

chore(justfile): drop the -- separator before forwarded args in vp run#9246

Merged
shulaoda merged 1 commit intomainfrom
04-28-chore_justfile_drop_the_--_separator_before_forwarded_args_in_vp_run
Apr 28, 2026
Merged

chore(justfile): drop the -- separator before forwarded args in vp run#9246
shulaoda merged 1 commit intomainfrom
04-28-chore_justfile_drop_the_--_separator_before_forwarded_args_in_vp_run

Conversation

@shulaoda
Copy link
Copy Markdown
Member

Summary

  • Remove the literal -- between the task name and {{ args }} in the four vp run invocations under t-node-rolldown, t-node-rollup, and test-node-hmr-only.
  • Lets --update, --testNamePattern, and similar vitest flags reach vitest as actual flags instead of being captured as positional file filters.

Why

vp run TASK -- ARGS does not strip the -- the way npm run / pnpm run do. It splices the separator literally into the final command, producing for example:

vitest run --exclude '**/watch.test.ts' --reporter verbose --hideSkippedTests -- --update --testNamePattern '...'

Vitest treats everything after -- as positional file filters, so --update is silently ignored. Concretely, just test-update could not refresh snapshots: the cli help snapshot in cli-e2e.test.ts.snap reported four mismatches every time and never wrote the new content.

Dropping the -- makes vp produce the expected command:

vitest run --exclude '**/watch.test.ts' --reporter verbose --hideSkippedTests --update --testNamePattern '...'

and snapshots update normally. Behavior without args is unchanged because {{ args }} expands to nothing in that case.

Verification

  1. Reset a snapshot to a stale state and confirm the failure is reproducible:
    just test-update
    # FAIL  cli/cli-e2e.test.ts > basic arguments > should show help when --help is used with other arguments (#8523)
    #   Snapshots  4 failed
    
  2. Apply the patch and rerun the same scenario via just t-node-rolldown --update --testNamePattern "should show help when --help is used with other arguments". The snapshot updates and the test passes.
  3. Default just test / just test-node invocations (no extra args) continue to work because {{ args }} expands to an empty string in either form.

Notes

  • This works around what looks like a vp run quirk; the npm/pnpm convention is to strip the -- separator. Worth filing upstream against vite+ as a follow-up.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 28, 2026

Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit 1df1ef7
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/69f01dfd74292b000803669c

@shulaoda shulaoda merged commit 6403325 into main Apr 28, 2026
33 checks passed
@shulaoda shulaoda deleted the 04-28-chore_justfile_drop_the_--_separator_before_forwarded_args_in_vp_run branch April 28, 2026 05:23
This was referenced Apr 29, 2026
shulaoda added a commit that referenced this pull request Apr 29, 2026
## [1.0.0-rc.18] - 2026-04-29

### 💥 BREAKING CHANGES

- optimization: default unspecified inlineConst.mode to smart (#9248) by @IWANABETHATGUY

### 🐛 Bug Fixes

- rolldown_plugin_vite_import_glob: return error instead of panicking when virtual module uses a relative glob (#9241) by @shulaoda
- binding: treat empty inlineConst object as omitted (#9247) by @IWANABETHATGUY
- rolldown: keep enum declaration for optional-chain access (#9229) by @Dunqing
- link_stage: restore inline let-else in exports-kind filter (#9237) by @IWANABETHATGUY
- dev/lazy: avoid module reinitialization in lazy compilation patches (#9179) by @h-a-n-a
- dev: visit identifier references for runtime rewrites in HMR finalizer (#9191) by @h-a-n-a
- chunk-optimizer: pick dominator for runtime placement to avoid cycles (#9164) by @IWANABETHATGUY
- make `this.emitFile` chunk path synchronous to avoid deadlock (#9031) by @lazarv
- use sentinel id for `browser: false` ignored modules (#9192) by @shulaoda
- prevent chunk optimizer from creating import cycles (#9228) by @IWANABETHATGUY

### 🚜 Refactor

- replace tokio::sync::Mutex with std::sync::Mutex for non-IO data (#9176) by @shulaoda
- rolldown_plugin_vite_import_glob: do not rewrite import path for absolute base (#9195) by @shulaoda
- runtime_helper: wrap DependedRuntimeHelperMap in a struct (#9215) by @IWANABETHATGUY
- drop redundant clear() in determine_safely_merge_cjs_ns (#9206) by @IWANABETHATGUY
- clean up generate_lazy_export (#9208) by @IWANABETHATGUY
- bitset: return bool from set_bit to fuse guard-and-set (#9207) by @IWANABETHATGUY
- link_stage: simplify exports-kind filter and clarify safety comments (#9205) by @IWANABETHATGUY

### 📚 Documentation

- determine_module_exports_kind (#9252) by @IWANABETHATGUY
- fix dead link to esbuild ESM/CJS interop tests (#9230) by @Copilot
- remove CSS bundling references (#9234) by @shulaoda
- correct IncrementalFullBuild row in BundleMode table (#9214) by @IWANABETHATGUY
- design: add bundler data lifecycle design doc (#9212) by @hyf0
- remove minifier alpha status notices (#9202) by @sapphi-red

### ⚙️ Miscellaneous Tasks

- upgrade oxc to 0.128.0 (#9260) by @shulaoda
- deps: bump rolldown-ariadne to 0.6.0 (#9254) by @IWANABETHATGUY
- deps: update github actions (#9259) by @renovate[bot]
- deps: update github actions (#9258) by @renovate[bot]
- remove renovate overrides (#9257) by @Boshen
- use ubuntu-latest for security workflow (#9256) by @Boshen
- notify Discord around release publish (#9251) by @Boshen
- add release environment to npm publish workflow (#9250) by @Boshen
- justfile: drop the `--` separator before forwarded args in `vp run` (#9246) by @shulaoda
- deps: update test262 submodule for tests (#9243) by @sapphi-red
- add more tracing instrumentations (#9220) by @sapphi-red
- rolldown_plugin_vite_import_glob: remove outdated sourcemap doc comment (#9213) by @shulaoda
- update security workflow (#9201) by @Boshen

### ❤️ New Contributors

* @lazarv made their first contribution in [#9031](#9031)

Co-authored-by: shulaoda <165626830+shulaoda@users.noreply.github.com>
@rolldown-guard rolldown-guard Bot mentioned this pull request Apr 29, 2026
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.

2 participants