Override implementation of a script in a specific package #805
Unanswered
derrik-fleming
asked this question in
Q&A
Replies: 1 comment
-
|
I don't think we'd want to extend the scripting capabilities by introducing new files. If a good override syntax contained within the root |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Say I have three packages,
A,B, andC. I want a scriptbuilddefined at the top-level. For packagesAandBthe implementation of this script is identical, but if I were to run the script onCit would fail. I still need abuildscript forCbut it isn't the same implementation asC.Coming from other similar tools I've used, they offer the ability to override the implementation of
buildin packageCby placing their equivalent of amelos.yamlat the root of packageC.When executing
melos buildfrom the repo rootbuild, as it's defined in./melos.yaml, would run for packagesAandBbut for packageCit would sourcebuild's definition from./packages/C/melos.yaml.I'm aware of
packageFilters, for my specific scenario they seem less than ideal. Is there a better way supported by Melos?Beta Was this translation helpful? Give feedback.
All reactions