Skip to content
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

Ban yarn berry on setup wizard. #840

Merged
merged 1 commit into from
Oct 11, 2023
Merged

Ban yarn berry on setup wizard. #840

merged 1 commit into from
Oct 11, 2023

Conversation

samchon
Copy link
Owner

@samchon samchon commented Oct 11, 2023

To support yarn berry which had banned npm prepare script, I'd changed setup wizard of typia to define npm postinstall script instead.

By the way, unlike the npm prepare script which works on only in the local drive and does not work when be installed from remote npm, npm postinstall script is working even when installing from the remote npm. Therefore, when publishing an npm module which has installed tyipa through setup wizard, it enforces users of derived libraries to run the npm postinstall command that requires ts-patch module.

To fix this crazy bug, I've decided to ban yarn berry on the setup wizard. From now on, when you run the npx typia setup command, it will print a text that "yarn berry is not supported". If you still want to utilize the yarn berry, configure it manually by yourself please.

To support `yarn berry` which had banned `npm prepare` script, I'd changed setup wizard of `typia` to define `npm postinstall` script instead.

By the way, unlike the `npm prepare` script which works on only in the local drive and does not work when be installed from remote `npm`, `npm postinstall` script is working even when installing from the remote `npm`. Therefore, when publishing an `npm` module which has installed `tyipa` through setup wizard, it enforces users of derived libraries to run the `npm postinstall` command that requires `ts-patch` module.

To fix this crazy bug, I've decided to ban `yarn berry` on the setup wizard. From now on, when you run the `npx typia setup` command, it will print a text that "yarn berry is not supported". If you still want to utilize the `yarn berry`, configure it manually by yourself please.
@samchon samchon added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request labels Oct 11, 2023
@samchon samchon added this to In progress in V5 Update via automation Oct 11, 2023
@samchon samchon self-assigned this Oct 11, 2023
@samchon samchon merged commit 1a6d4b9 into master Oct 11, 2023
2 of 3 checks passed
V5 Update automation moved this from In progress to Done Oct 11, 2023
@samchon samchon deleted the features/wizard branch October 11, 2023 11:21
samchon added a commit that referenced this pull request Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant