Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Proposal] Dependencies with command arguments

Open
#950 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
node.js, typescript

Research direction

Start by reviewing how Wireit parses dependency entries and how command arguments participate in script fingerprints and cache restoration, as described in the issue. The feature is done when a dependency can include arguments such as "build debug" and alternating invocations restore the appropriate cached outputs separately.

Written by the indexing model from the issue text.

Description

Use case

I have build command that takes an optional debug flag that triggers a debug build. It would be very convenient if I could have a script that depends on the debug build without having to create a separate build-debug script, since the only difference is this extra argument:

"run": {
    "command": "node ..."
    "dependencies": ["build"]
},
"debug": {
    "command": "node ..."
    "dependencies": ["build debug"]
}

This dovetails very nicely with how wireit already works, as wireit already

  • includes extra arguments in the script fingerprint.
  • separately caches and restores invocations with different argument values.

Thus successive, alternating invocations of npm run run and npm run debug is very efficient, only having to restore cached output of build or build debug as needed.

Dominant language
TypeScript
Stars
6.4k
Forks
129
Avg merge
4d 2h
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from google/wireit

All issues in google/wireit

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.