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

[chore] Add script to symlink dependencies from monorepo to project #254

Merged
merged 1 commit into from
Oct 11, 2017

Conversation

rexxars
Copy link
Member

@rexxars rexxars commented Oct 11, 2017

Background: Sometimes I find the need to test the latest changes in the monorepo against a specific Sanity project, and symlinking the whole @sanity folder isn't a good solution because it "installs" dependencies that aren't really part of the equation. It also doesn't include plugins outside of the @sanity scope.

Solution: This PR adds a script that can be called from a project directory to replace the installed and declared packages with the ones from the monorepo. All packages that exist in the monorepo are first removed from node_modules in the given directory (to make up for hoisting shared dependencies). Then, each of the packages declared in package.json are symlinked from the monorepo into node_modules directly. Once this is done, it's up to the developer to make sure compiled versions are available using npm run watch or npm run build in the monorepo.

@rexxars rexxars requested a review from bjoerge October 11, 2017 09:41
Copy link
Member

@bjoerge bjoerge left a comment

Choose a reason for hiding this comment

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

🤤

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.

None yet

2 participants