You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using the following pattern for a while, but the lsp doesn't like. Presumably there's a preferred way of expressing this, so I'm asking:
I've got two tasks named typecheck:src & typecheck:extra in both of my sub-package.jsons. :src has the dom lib and only targets src/, and :extra just targets files like eslint.config.js. I want to run them (ergonomically) in parallel, so I create a task in my turbo.json named typecheck. It doesn't actually exist, it just depends on typecheck:src and typecheck:extra. This works fine, but the lsp complains with a turbo:no-such-task error, so presumably there's a better way.
I definitely want to ensure this doesn't break in the future as well (even if not it's recommended, I'd like some way to do this that's not a complete hack, i.e., that turbo won't ban fake tasks)
Additional information
I can't write this as a task in my root package.json b/c I either get a recursive turbo error (when run with Turborepo) or I lose the ability to filter (when running with pnpm).
Example
(None of these are minimal, they all demonstrate workarounds)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
I've been using the following pattern for a while, but the lsp doesn't like. Presumably there's a preferred way of expressing this, so I'm asking:
I've got two tasks named
typecheck:src
&typecheck:extra
in both of my sub-package.json
s.:src
has thedom
lib and only targetssrc/
, and:extra
just targets files likeeslint.config.js
. I want to run them (ergonomically) in parallel, so I create a task in myturbo.json
namedtypecheck
. It doesn't actually exist, it just depends ontypecheck:src
andtypecheck:extra
. This works fine, but the lsp complains with aturbo:no-such-task
error, so presumably there's a better way.I definitely want to ensure this doesn't break in the future as well (even if not it's recommended, I'd like some way to do this that's not a complete hack, i.e., that turbo won't ban fake tasks)
Additional information
I can't write this as a task in my root
package.json
b/c I either get a recursive turbo error (when run with Turborepo) or I lose the ability to filter (when running withpnpm
).Example
(None of these are minimal, they all demonstrate workarounds)
typecheck
serially using one command +&&
)Beta Was this translation helpful? Give feedback.
All reactions