You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for adding new npm packages BEN-1072 (#22)
### TL;DR
Disabled code repair functionality and added automatic dependency installation for user-generated apps.
### What changed?
- Commented out the Benchify code repair functionality in the generate route
- Added a new feature to automatically detect and install new dependencies from the generated package.json
- Implemented `extractNewPackages` function to identify dependencies not included in the base template
- Updated the Benchify package from version 0.1.0-alpha.3 to 0.1.0-alpha.5
### How to test?
1. Generate an app that requires dependencies not in the base template
2. Verify that the console logs show the new packages being installed
3. Confirm the sandbox loads correctly with the new dependencies available
4. Check that the app functions properly without the code repair step
### Why make this change?
The code repair functionality may have been causing issues or was not needed at this stage of development. More importantly, the automatic dependency installation feature improves the user experience by ensuring that all required packages are available in the sandbox environment without manual intervention. This allows generated apps to use a wider range of dependencies while maintaining a lightweight base template.
0 commit comments