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 manager. #652

Merged
merged 2 commits into from
Oct 11, 2023
Merged

Ban yarn berry on setup manager. #652

merged 2 commits 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 nestia 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 nestia 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.

…anged setup wizard of `nestia` 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 nestia 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 self-assigned this Oct 11, 2023
@samchon samchon changed the title To support yarn berry which had banned npm prepare script, I'd ch… Ban yarn berry on setup manager. Oct 11, 2023
When `@nestia/migrate` being runned, it could not analyze `*/*` content type, because I hadn't known that such crazy content-type could be written.

By the way, as I've identified it, I've decided to consider it as a `application/json` content type.
@samchon samchon merged commit bc9ee6f into master Oct 11, 2023
@samchon samchon deleted the features/wizard branch October 11, 2023 13:20
samchon added a commit that referenced this pull request Oct 12, 2023
I've banned `yarn berry` which does not support `npm prepare` command to change setup wizard to using the standard `npm prepare` command.

By the way, SDK distribution composer had determined whether the target distribution directory has been prepared by checking the `package.json` file with the `npm run prepare` command.

Therefore, if the SDK distrubition directory being composed by older version of `@nestia/sdk`, newer version's SDK distribution composer re-composed the distribution directory vulnerably.

This PR fixes such bug.
samchon added a commit that referenced this pull request Oct 12, 2023
Complement #652 - fix bug of SDK distrubition composer.
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
None yet
Development

Successfully merging this pull request may close these issues.

1 participant