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
Let's say I organize one logical script, like build, into several sub-steps, like build:ts and build:graph. Do I need to make the sub-steps into npm script if they're never intended to be called from npm runor as a dependency of another wireit script?
ie, do I need build:ts and build:graphql in scripts?:
Yes, all Wireit scripts must be declared in scripts. This is intentional. The reason is to avoid a situation like this:
Package A has a build:ts that is declared in scripts.
Package B has a build:ts that is NOT declared in scripts.
From the root of a monorepo, I type npm run build:ts -ws --if-present.
Only Package A's build:ts runs.
I think this could be confusing and error-prone, so instead we require that every Wireit script be an actual npm script. I think this is also consistent with the design goal of augmenting npm scripts rather than replacing them.
Let's say I organize one logical script, like
build
, into several sub-steps, likebuild:ts
andbuild:graph
. Do I need to make the sub-steps into npm script if they're never intended to be called fromnpm run
or as a dependency of another wireit script?ie, do I need
build:ts
andbuild:graphql
inscripts
?:The text was updated successfully, but these errors were encountered: