Repository navigation
pkp/pkp-lib#13870 Use ui-library as npm workspace for all dependencies - #6117
Open
jardakotesovec wants to merge 4 commits into
Open
jardakotesovec wants to merge 4 commits into
jardakotesovec wants to merge 4 commits into
Conversation
This was referenced Nov 24, 2026
…e dedupe Regenerate package-lock.json from the ui-library lockfile, which now keeps the production dependency versions of the previous OJS lockfile. Restore resolve.dedupe in the vite configs. Removing it changes the bundle (reka-ui would use its own @vueuse/core 14 instead of the deduped 10), so it is left for a separate change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For pkp/pkp-lib#13870
Requires pkp/ui-library#1063
The application now includes
lib/ui-libraryas an npm workspace and declares no npm dependencies of its own. All dependencies, including jquery, swiper, altcha, cypress and the closure compiler, are declared in ui-library'spackage.json.package.json:"workspaces": ["lib/ui-library"];dependencies,devDependenciesand the viteoverrides;npm run sync-lockscript that regeneratespackage-lock.jsonfrom ui-library's lockfile.package-lock.json: generated bynpm run sync-lock. Production dependencies keep the versions of the previous OJS lockfile. For OMP and OPS, that means small updates to OJS's versions: vue 3.5.18 → 3.5.22, primevue 4.3.7 → 4.4.0, luxon 3.7.1 → 3.7.2.resolve.dedupestays for now: removing it would change the bundle, because reka-ui would use its own @vueuse/core 14.lib/ui-librarysubmodule: in separate commits, to be updated once pkp/pkp-lib#13870 Make ui-library the single list of npm dependencies ui-library#1063 is merged.npm installnow installs into a singlenode_modulesin the application root. There is nolib/ui-library/node_modulesany more. For OJS, the build output is byte-identical to the old setup.To update a dependency, follow the steps in ui-library's README ("Dependencies" section): change it in ui-library, update the submodule here, run
npm run sync-lock, thennpm install.