Skip to content

can I have one build script for multiple packages? #559

Closed Answered by qdozaq
csenio asked this question in Help
Discussion options

You must be logged in to vote

Not particularly a turbo specific problem, but you could create a root level config (or a package) for your base build config and extend that config in each package. (this is probably what I would do)

Alternatively you could create a separate build-tools package that builds a utility to programmatically run your build for the given package folder. So you could run something like this for each package:

"scripts": {
 "build": "custom-build --<any-custom-options>"
}

With this approach turbo would require you to list this a dev-dependency for each package so it knows to build that package first before everything else.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by csenio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants