-
Notifications
You must be signed in to change notification settings - Fork 450
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
feat: add CLI options to enable auto-updating studios #6514
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
No changes to documentation |
Component Testing Report Updated Jun 10, 2024 7:39 PM (UTC)
|
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
Co-authored-by: Espen Hovlandsdal <[email protected]>
* feat(cli): build user peer-deps * chore: remove shared-modules build * test(cli): verify build config and `exports` subpaths * text(cli): add depcheck config for fixture projects * docs: update comments and test name * feat: create import map w/ installed sanity version (#6784) * feat: create import map w/ installed sanity version * fix: use correct URL
if (autoUpdatesEnabled) { | ||
const version = encodeURIComponent(`^${installedSanityVersion}`) | ||
const autoUpdatesImports = { | ||
'sanity': `https://api.sanity.work/v1/modules/sanity/default/${version}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note this is changing in a PR in in the stack above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense to me, I have tested it in canaries and locally
Description
Adds the
--enable-auto-updates
andunstable_enableAutoUpdates
flags to the CLI build options and config.Additionally this PR:
importMap
support torenderDocument
andsanityBuildEntries
vianode-html-parser
(see tests)Note that this will only affect the built version of the Studio and local versions will not use import maps. This decision was made because we did not want to provide a react dev build however this could potentially be possible now with import maps.
What to review
Testing
I added tests and I tried this out in the test-studio locally.
Notes for release
N/A