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

fix: prod docs #7523

Merged
merged 3 commits into from
Dec 16, 2024
Merged

fix: prod docs #7523

merged 3 commits into from
Dec 16, 2024

Conversation

devongovett
Copy link
Member

Two issues in verdaccio docs build on main:

  • Due to an update in some very popular npm packages that included invalid values in their package.json ("main": false), parcel was no longer parsing the package and failing to resolve it. This is addressed in Parcel v2.13.3.
  • Due to React 19 release, yarn started installing multiple copies of React. That is because some packages depend on "^18 || ^19" but the root only depends on "^18". Yarn tries to resolve to the highest possible version for each package. This is solved by making most dependencies peerDependencies instead so only the root one will be installed.

The root issue is that we don't have a lock file in the prod build, which we should definitely fix at some point.

"recast": "^0.23.9",
"ts-node": "^10.9.2",
"uuid": "^9.0.1"
},
"devDependencies": {
"@types/jscodeshift": "^0.11.11",
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These appear to be unused. React is only used for types.

@devongovett devongovett changed the title Fix prod docs fix: prod docs Dec 16, 2024
@rspbot
Copy link

rspbot commented Dec 16, 2024

@devongovett devongovett added this pull request to the merge queue Dec 16, 2024
Merged via the queue into main with commit fee532d Dec 16, 2024
30 of 31 checks passed
@devongovett devongovett deleted the fix-docs-prod branch December 16, 2024 20:10
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.

4 participants