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
-
Say I have three packages,
A
,B
, andC
. I want a scriptbuild
defined at the top-level. For packagesA
andB
the implementation of this script is identical, but if I were to run the script onC
it would fail. I still need abuild
script forC
but it isn't the same implementation asC
.Coming from other similar tools I've used, they offer the ability to override the implementation of
build
in packageC
by placing their equivalent of amelos.yaml
at the root of packageC
.When executing
melos build
from the repo rootbuild
, as it's defined in./melos.yaml
, would run for packagesA
andB
but for packageC
it 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