Skip to content

Fix package.json files to not use "catalog" feature from PNPM, as it breaks installation from vendor/ PHP packages #2952

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

Merged
merged 1 commit into from
Jul 28, 2025

Conversation

Kocal
Copy link
Member

@Kocal Kocal commented Jul 28, 2025

Q A
Bug fix? yes
New feature? no
Docs? no
Issues Fix #2951
License MIT

Since #2932

Dropping any fancy stuff from our package.json since it can breaks when people install JS packages through the PHP packages

I will edit the "test apps" jobs to use npm to install dependencies, so we will be sure in the future we are not breaking things again.

…breaks installation from `vendor/` PHP packages
@carsonbot carsonbot added Bug Bug Fix Status: Needs Review Needs to be reviewed labels Jul 28, 2025
@Kocal Kocal requested a review from kbond July 28, 2025 19:38
@carsonbot carsonbot added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Review Needs to be reviewed labels Jul 28, 2025
@Kocal
Copy link
Member Author

Kocal commented Jul 28, 2025

I can confirm locally it fixes the issue

@Kocal Kocal merged commit 8ab561f into symfony:2.x Jul 28, 2025
36 of 39 checks passed
@Kocal Kocal deleted the fix-pnpm-catalog-usages branch July 28, 2025 20:00
@Kocal
Copy link
Member Author

Kocal commented Jul 28, 2025

I will edit the "test apps" jobs to use npm to install dependencies, so we will be sure in the future we are not breaking things again.

It requires a bit more work than expected, I will open a new PR later

Kocal added a commit to Kocal/symfony-ux that referenced this pull request Jul 28, 2025
…from PNPM, as it breaks installation from `vendor/` PHP packages (Kocal)

This PR was merged into the 2.x branch.

Discussion
----------

Fix package.json files to not use "catalog" feature from PNPM, as it breaks installation from `vendor/` PHP packages

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Docs?         | no <!-- required for new features -->
| Issues        | Fix symfony#2951 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT

<!--
Replace this notice by a description of your feature/bugfix.
This will help reviewers and should be a good start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - For new features, provide some code snippets to help understand usage.
 - Features and deprecations must be submitted against branch main.
 - Update/add documentation as required (we can help!)
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
 - Never break backward compatibility (see https://symfony.com/bc).
-->

Since symfony#2932

Dropping any fancy stuff from our `package.json` since it can breaks when people install JS packages through the PHP packages

I will edit the "test apps" jobs to use `npm` to install dependencies, so we will be sure in the future we are not breaking things again.

Commits
-------

4c24ce6 Fix package.json files to not use "catalog" feature from PNPM, as it breaks installation from `vendor/` PHP packages
Kocal added a commit to Kocal/symfony-ux that referenced this pull request Jul 28, 2025
…from PNPM, as it breaks installation from `vendor/` PHP packages (Kocal)

This PR was merged into the 2.x branch.

Discussion
----------

Fix package.json files to not use "catalog" feature from PNPM, as it breaks installation from `vendor/` PHP packages

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Docs?         | no <!-- required for new features -->
| Issues        | Fix symfony#2951 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT

<!--
Replace this notice by a description of your feature/bugfix.
This will help reviewers and should be a good start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - For new features, provide some code snippets to help understand usage.
 - Features and deprecations must be submitted against branch main.
 - Update/add documentation as required (we can help!)
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
 - Never break backward compatibility (see https://symfony.com/bc).
-->

Since symfony#2932

Dropping any fancy stuff from our `package.json` since it can breaks when people install JS packages through the PHP packages

I will edit the "test apps" jobs to use `npm` to install dependencies, so we will be sure in the future we are not breaking things again.

Commits
-------

4c24ce6 Fix package.json files to not use "catalog" feature from PNPM, as it breaks installation from `vendor/` PHP packages
Kocal added a commit that referenced this pull request Jul 29, 2025
…es manager (Kocal)

This PR was merged into the 2.x branch.

Discussion
----------

[CI] Rework `app-tests` job to use `npm` as user's packages manager

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Docs?         | no <!-- required for new features -->
| Issues        | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT

Following #2952, this way we ensure our packages will always be installable with `npm` (related to #2951)

Commits
-------

a9ea07d [CI] Rework app-tests job to use npm as user's packages manager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug Fix Status: Reviewed Has been reviewed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

npm error Unsupported URL Type "catalog:"
3 participants