Development
Prerequisites
-
Install
pnpmglobally:npm install --global pnpmThe pnpm version used by this workspace is pinned via
packageManagerin the rootpackage.json; pnpm switches to it automatically.
Typical Build Process
pnpm install
pnpm -r build
Testing
Since Version 44 a license key is necessary to use the CkEditor.
Create a file named .env in the root of this workspace and add a line
CKEDITOR_LICENSE_KEY=<your-license-key>
Changesets
Every pull request needs a changeset, which states the kind of release the change requires (see Versioning) and becomes its changelog entry:
pnpm changeset
If a change needs no release (e.g. CI or documentation only), add an empty one:
pnpm changeset add --empty
All published packages share one version: a changeset for one package bumps all of them.
Update Process
All dependency versions are maintained centrally in the catalog of
pnpm-workspace.yaml; the packages refer to them as catalog:, including their
peerDependencies. To update CKEditor 5, change the ckeditor5 entry and the
@ckeditor/* entries there, then run:
pnpm install
pnpm only installs versions released at least one day ago (minimumReleaseAge),
except for the scopes listed in minimumReleaseAgeExclude.
Troubleshooting
-
Remove node_modules:
In case of problems, you may want to try to remove all
node_modulesfolders and re-install artifacts again viapnpm install. Removingnode_modulescan be triggered by:pnpm clean:node_modules