fix: remove Windows-specific cleanup from postinstall script #3911
+54
−1
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.
Description
This PR addresses a cross-platform compatibility issue in the postinstall script that affects non-Windows systems.
Changes
rimraf node_modules/.bin/*.ps1
from postinstall scriptCROSS_PLATFORM.md
with documentation and future considerationsProblem
The postinstall script was failing on Unix systems (macOS/Linux) because it attempted to remove Windows PowerShell scripts (
.ps1
) that don't exist on these platforms. This prevented the essential TypeScript configuration generation steps from completing successfully.Solution
CROSS_PLATFORM.md
explaining the change and providing future considerationsTesting
yarn test:fast
with all tests passingThis change resolves the postinstall script failure on Unix systems while preserving the core functionality of the TypeScript configuration generation steps.