CoreMedia Content Cloud v11 Upgrade Guide / Version 2110
Table Of ContentsThe package manager of the frontend workspace has been changed from Yarn to pnpm. Yarn in version 1 is not maintained anymore and pnpm is fast, efficient, strict and supports monorepos without additional libraries like lerna. Changes to the tooling should not affect any bricks or themes in your project.
You need to install pnpm in the latest 6.x version and use the corresponding pnpm commands.
Yarn (old) | pnpm (new) |
---|---|
yarn install | pnpm install |
yarn build | pnpm build |
yarn test | pnpm test |
yarn create-theme | pnpm create-theme |
yarn create-brick | pnpm create-brick |
Table 6.18. pnpm commands comparison
Changes
Support for building the frontend workspace with maven or other package manager has been removed.
The lock file for pinned versions changed from
yarn.lock
topnpm-lock.yaml
.A new file for the workspace structure has been introduced:
pnpm-workspace.yaml
.
Since pnpm uses a non-flat node_modules
structure, it is important
to check for missing dependencies in custom themes and bricks. Please remove all
node_modules
in your project workspace before running pnpm install
. If a build
fails, add the missing dependency to your theme or brick according to the error message.