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.
This is a temporary stopgap solution to solve the manual and slow development feedback loop when iterating sample apps and sdk together.
Optimised development workflow
Running the following command at the root of repo will watch for any changes once built.
This short term fix will involve running rollup in watch mode as the
dev
command to quickly rebuild on save for changes, rather than manually building out everything.Slack thread for additional context: https://imtbl.slack.com/archives/C07332F3X9Q/p1715902163844719
Future plans involve discussing the attempt to move away from the dist folder as the export for a package, and using the src folder directly instead, which would prevent the need for any rebuilds on save as the TypeScript server would be able to pick up the changes immediately.
If this won't be possible, the next step would be caching rebuilds as much as possible to minimize unnecessary builds, and speeding up the TS to JS compilation and TS declaration files creation as much as possible.
Notes
yarn build
oryarn dev
before,yarn dev
might fail as it’s running in parallel and could be missing package dependencies. It would be best to ensureyarn build
has been run and built packages are available before running dev mode.dev
script to make it workExample workflow with this rollup watch mode fix:
20240517101239842.mp4