Skip to content

Conversation

cmwhited
Copy link
Collaborator

Description

In order to keep the create-hypergraph/template-* hypergraph deps up-to-date with latest, use the workspace:* version instead of hard-coding to a specific version.
This lets us make changes in the packages, and make sure they are validated in the template and not have to remember to update the version.

On build, replace the workspace:* with the current version from the package.

To achieve this, I created a script to iterate through all of the template-* directories and copy all of the files into the dist, and when it gets to the package.json, to fetch the workspace dep from the package > package.json, and update before writing to the dist directory.

Closes #374

@cmwhited cmwhited requested a review from nikgraf July 24, 2025 23:36
Copy link
Collaborator

@nikgraf nikgraf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great 👍

Note: tests are failing

@cmwhited cmwhited merged commit 834c5af into main Jul 25, 2025
6 checks passed
@cmwhited cmwhited deleted the chris.whited/fix-374/workspace-packages branch July 25, 2025 05:01
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.

automatically use the latest published version of the package for create-hypergraph

2 participants