Replies: 1 comment
-
To me, the "obvious" idea is to replace # Build local curl
brioche build ./packages/curl
# Build remote curl
brioche build curl
# Build curl test export
brioche build ./packages/curl#test So basically, a local package must be specified by absolute path, or a relative path starting with This would also mean that the CLI would use the same syntax for specifying packages as As for the There are a few downsides with this approach:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Today, we use
-p
or-r
flags to reference projects locally or from the registry, respectively:We also have a separate
-e
flag to specify a different export:Finally, we have a
-c
flag to specify a command to run:# Run `bin/psql` from Postgres project brioche run -p ./packages/postgresql -c bin/psql
This syntax is both a bit cumbersome, and also limits what you can do with one command! For example, you can't build both
default
andtest
across 2 packages in one command:It would be nice if we could figure out a way to handle this more consistently, especially to allow building multiple packages+exports at once
Beta Was this translation helpful? Give feedback.
All reactions