Skip to content
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

refactor/setup-workspaces #987

Merged

Conversation

carlosallexandre
Copy link
Contributor

@carlosallexandre carlosallexandre commented Dec 3, 2024

Motivation

Closes #575

Changes Introduced

  1. Config workspaces to split deps needed by the cli and astro.
    • Splitting the deps we are able to install the astro deps on the user's directory. This hoist the deps to .eventcatalog-core/ making them fully compatible with pnpm.
  2. Auto dependency install
    • Detects which package manager execute the cli command and them if doesn't have node_modules/ inside the .eventcatalog-core/ install all deps need by the astro.
  3. Update Dockerfile of test-bin.yml workflow to run with pnpm
    • Ensure that EC works with pnpm.

With that PR in place we can switch to pnpm (#884)

Copy link

changeset-bot bot commented Dec 3, 2024

🦋 Changeset detected

Latest commit: 3e98d3a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
eventcatalog Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@carlosallexandre carlosallexandre force-pushed the refactor/setup-workspaces branch from faf7b09 to ca321c5 Compare December 4, 2024 00:18
Updated the dependency check logic to verify the presence of the
`node_modules` directory instead of relying solely on `require.resolve`
for `astro`. This ensures more robust detection of installed dependencies.
@carlosallexandre carlosallexandre marked this pull request as ready for review December 6, 2024 12:06
@boyney123 boyney123 merged commit cb1009b into event-catalog:main Dec 10, 2024
5 checks passed
@boyney123
Copy link
Collaborator

Thank you @carlosallexandre let's give it ago!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue building empty template project with pnpm package manager
2 participants