Skip to content
Empire Builder KitDocumentation
v1 Documentation

Find your next step.

Search the complete documentation, including code examples.

    Full-text search↑ ↓ navigate Enter open
    Browse documentation
    DocsGuides

    Upgrade the framework

    A framework upgrade is two steps: install the new package versions, then let the upgrade generator update the files the framework manages.

    On this page
    1. Install the new version
    2. Report, then apply
    3. What is kept
    4. Dependency updates are separate

    Install the new version

    Set @empire-builder-kit/nx and @empire-builder-kit/runtime to the new version in the root package.json, and @empire-builder-kit/runtime in each Slice, then run pnpm install. Use the same version for both packages.

    Report, then apply

    bash
    pnpm nx g @empire-builder-kit/nx:upgrade workspace
    pnpm nx g @empire-builder-kit/nx:upgrade workspace --apply

    Without --apply the generator reports its plan and writes nothing. Read the report, then run it again with --apply.

    Upgrade the workspace root first, then the Foundation, then the root site if you have one, then each Slice:

    bash
    pnpm nx g @empire-builder-kit/nx:upgrade foundation --apply
    pnpm nx g @empire-builder-kit/nx:upgrade site --apply
    pnpm nx g @empire-builder-kit/nx:upgrade billing --apply

    What is kept

    • Seeded files you edited, such as pages, handlers and records.
    • Files you added.
    • Every package.json key the framework does not manage, including your dependencies and scripts.
    • Your pnpm-workspace.yaml, including overrides.

    Finish with pnpm verify and review the diff before you commit. Ownership and upgrades explains the model.

    Dependency updates are separate

    Updating next, react, vitest or an AWS SDK client is not a framework upgrade. Change the version in the package.json that declares it and run pnpm install. No generator is involved.