Conversation
|
resolves #22 Build failuresThere seems to be a cyclic dependency, which needs to be resolved for the build to succeed. Publishing
I recommend we merge this PR and fix the project structure in a different PR. |
Do I want to do that? 😬 I've been doing it locally with |
|
Re: the cyclic dependency - Yes, I built a Rollup plugin for Jess, but ended up using it in the Jess command-line to create JS bundles. I'm not sure how to resolve that. I want to expose both libraries to NPM. Both need each other. And for me, that's only caused build warnings and not errors, I thought. 🤔 |
| version: 2 | ||
| voter: | ||
| jobs: | ||
| - build-node12 |
There was a problem hiding this comment.
You're sure Node 10 isn't needed? I'm still personally on that version for work stuff. 🤷♂️
There was a problem hiding this comment.
We can always add it later, but node10 will reach EOL in ~2 months, so maybe it is not worth it
The version choosing still happens manually by the user (see CONTRIBUTING.md release section). In the future we could use semantic versioning and then lerna automatically selects the version according to the commit history. Basically the publishing is automated, but the versioning is not. |
It is tricky, I once had an issue like that with a programmatic API (not CLI) and had to inject some implementations using DI to avoid a direct dependency. Not sure what to do about your CLI use case. The reason it works for you locally may be because it is using a previously built version of the rollup plugin to bundle your resources but in the CI env there is no such previous version. Basically these cyclic deps often create issues when there are build steps involved in the project. But it is best if you can figure out a way to avoid this cycle, as issues with it will likely keep popping up in different scenarios (that was my personal experience) |
Okay, that makes sense.
I'll see what I can do. Thanks! |
|
@bd82 If I can resolve this cyclic dependency, would I just run |
I think you would run:
|

No description provided.