fix(init): add ws-config write to postinstall for external package manager mode#10147
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enhances the initialization workflow for workspaces using external package managers by adding bit ws-config write to the postinstall script. This ensures TypeScript configuration files are automatically generated in the bit-components/ directory after running the external package manager's install command, which is essential for IDE support and TypeScript compilation.
Key Changes:
- Updates postinstall script from
'bit link && bit compile'to'bit link && bit compile && bit ws-config write'for external package manager mode - Applied consistently to both existing and new package.json scenarios
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…nager mode - Add EXTERNAL_PM_POSTINSTALL_SCRIPT constant to avoid duplication - Update removePostInstallScript to use the constant - Update E2E tests to use the constant
Member
Author
|
Addressed Copilot review comments:
|
GiladShoham
approved these changes
Jan 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
When initializing a workspace with
externalPackageManager: true, the postinstall script now includesbit ws-config writeto ensure TypeScript config files are generated after running the external package manager's install.Previously the postinstall was:
Now it's:
This ensures that tsconfig files in
bit-components/are properly generated, which is required for IDE support and TypeScript compilation.