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

chore(schematics/testing.ts): restore previous @spartacus:registry instead of hardcoded NPM registry on the process exit #19378

Merged
merged 3 commits into from
Oct 10, 2024

Conversation

Platonn
Copy link
Contributor

@Platonn Platonn commented Oct 10, 2024

Currently, on the process exit, the value of @spartacus:registry is restored to the outdated URL of public NPM registry https://registry.npmjs.org/. It was useful only until we stopped releasing to public NPM many months ago. Now it's confusing and a bit annoying. It's because you'd rather like it to be restored to a previous real registry url, e.g. RBSC.

To fix it, now we remember the used @spartacus:registry before running the script schematics/testing.ts. Then the scrip overwrites @spartacus:registry to verdaccio URL (as it does usually). And then on the process exit we restore the remembered URL original URL. ... which should improve DX while re-running this script multiple times.

closes https://jira.tools.sap/browse/CXSPA-8636

tools/schematics/testing.ts Dismissed Show dismissed Hide dismissed
@Platonn Platonn marked this pull request as ready for review October 10, 2024 09:59
@Platonn Platonn requested a review from a team as a code owner October 10, 2024 09:59
@github-actions github-actions bot marked this pull request as draft October 10, 2024 09:59
@Platonn Platonn marked this pull request as ready for review October 10, 2024 10:08
@Platonn Platonn merged commit e09d954 into develop Oct 10, 2024
23 of 25 checks passed
@Platonn Platonn deleted the feature/CXSPA-8636 branch October 10, 2024 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants