Note
This is a maintained fork of udecode/plate published under the @lofcz/ npm scope. If you ended up here by accident, you almost certainly want the upstream repo instead.
In your project's package.json, alias each @platejs/* dependency to the fork:
"dependencies": {
"@platejs/ai": "npm:@lofcz/platejs-ai@^52.3.2",
"platejs": "npm:@lofcz/platejs@^52.3.4"
}Add matching overrides so transitive deps also resolve to the fork:
"overrides": {
"@platejs/ai": "npm:@lofcz/platejs-ai@^52.3.2",
"platejs": "npm:@lofcz/platejs@^52.3.4"
}All source-level imports (from '@platejs/ai/react', from 'platejs', etc.) work unchanged.
Run sync_upstream.bat (or powershell scripts/sync-upstream.ps1). It:
- Fetches and merges
upstream/main - Re-applies
@lofcz/renames to any new/changed package.json files - Converts upstream changesets (
@platejs/*names) to@lofcz/*names so they publish correctly - Runs
pnpm install
- Edit code in
packages/. - Run
prepare_release.bat(orpnpm changeset) — select affected packages, pick semver bump, write a summary. - Commit the generated
.changeset/*.mdfile alongside your code changes. - Push to
main.
Fully automated via GitHub Actions:
- CI runs lint, typecheck, tests. If barrels drifted, it auto-commits the fix.
- Release (runs after CI passes) detects pending changesets and opens a "Version packages" PR that bumps versions.
- Merging that PR triggers Release again, which publishes bumped packages to npm via trusted publishing (OIDC, no tokens).
Manual trigger: Actions tab > Release > Run workflow.