fix(#374 | template deps): use workspace for create-hypergraph template deps. replace on build #380
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 thepackage.json
, to fetch the workspace dep from the package > package.json, and update before writing to the dist directory.Closes #374