-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove metaLoop execution in parent repo #16
Comments
You can run the command with `--ignore .` or `--ignore [parent dir name]`.
…On Fri, Aug 30, 2019 at 5:12 AM Shishir ***@***.***> wrote:
I'm trying to use meta to manage a bunch of child repos with meta - very
convenient idea. Thank you.
Let's say each of these child repos has a npm run-script for linting: npm
run lint.
meta npm run lint fails in the parent directory, because by default
<https://github.com/mateodelnorte/meta-loop/blob/master/index.js#L22>,
meta-loop seems to want to run the command in the parent repo.
Strikes me that the meta repo should be managed independent of the child
repos.
Is there a chance this line can be removed?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#16?email_source=notifications&email_token=AAEHOXZXS6QI6IAAJV5N3ULQHDW7XA5CNFSM4ISLWFE2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HINGMHQ>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEHOX764P7TIIAHKKNQYQTQHDW7XANCNFSM4ISLWFEQ>
.
|
Sorry, I meant `--exclude .` or `--exclude [parent repo name]`.
…On Fri, Aug 30, 2019 at 10:05 AM Matt Walters ***@***.***> wrote:
You can run the command with `--ignore .` or `--ignore [parent dir name]`.
On Fri, Aug 30, 2019 at 5:12 AM Shishir ***@***.***> wrote:
> I'm trying to use meta to manage a bunch of child repos with meta - very
> convenient idea. Thank you.
>
> Let's say each of these child repos has a npm run-script for linting: npm
> run lint.
> meta npm run lint fails in the parent directory, because by default
> <https://github.com/mateodelnorte/meta-loop/blob/master/index.js#L22>,
> meta-loop seems to want to run the command in the parent repo.
>
> Strikes me that the meta repo should be managed independent of the child
> repos.
>
> Is there a chance this line can be removed?
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#16?email_source=notifications&email_token=AAEHOXZXS6QI6IAAJV5N3ULQHDW7XA5CNFSM4ISLWFE2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HINGMHQ>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAEHOX764P7TIIAHKKNQYQTQHDW7XANCNFSM4ISLWFEQ>
> .
>
|
hmm - the only way I was able to get this to work was to add a dummy run-script in parent: package.json. Howeve, this repo reproduces the problem I am encounering |
this is not a bug. you only need to type the basename of the directory you're excluding. notice how this command does not print
|
See more info here https://github.com/mateodelnorte/loop#loop |
Interesting. I was able to make exec work too. It was the meta-npm that caused me trouble, So I tried exec'ing the npm command to the same effect:
Looking through the meta-npm module, it looked like the loop options were being stripped and it was upto the meta-loop to pick them up and process them again. I just took a cursory look - so very likely I missed something. Creating a dummy run-script in the mete repo works-around the issue - slightly unwieldy, but I'l live it. meta is a really cool take on multi/mono repos. Thanks for creating it. I'll leave it alone at this point unless you reopen the issue. |
I'm trying to use meta to manage a bunch of child repos with meta - very convenient idea. Thank you.
Let's say each of these child repos has a npm run-script for linting:
npm run lint
.meta npm run lint
fails in the parent directory, because by default, meta-loop seems to want to run the command in the parent repo.Strikes me that the meta repo should be managed independent of the child repos.
Is there a chance this line can be removed?
The text was updated successfully, but these errors were encountered: