folke / ultra-runner

🏃⛰ Ultra fast monorepo script runner and build tool
https://www.npmjs.com/package/ultra-runner
Apache License 2.0
1.2k stars 32 forks source link

`cd packages/x` handled badly #226

Open c-vetter opened 3 years ago

c-vetter commented 3 years ago

Hello there 🙂 Given a script like this in the root package.json:

    "act-deep": "cd packages/x && npm i",

When I run that script, I get this:

$ ultra act-deep
- act-deep
  √ $ cd packages/x 111ms
  - $ npm i

And the rest is just my regular install output from the repo root, not from the package. That tells me that ultra expects all the calls to be independent, which they are not in this case. That means I have to npm run act-deep in order to get the desired behavior.

I guess this is an edge case because the order of execution is usually the only important variable. Would you consider this a worthwhile feature or is it too rare? Or am I missing something, or is this a bug?

vvscode commented 1 year ago

I have similar case, and don't see any option how to disable commands parsing

@folke can we have some flag for that?