Publish migration scripts
Ship versioned migration scripts to update workspace configuration when your plugin changes. Keep each script safe to rerun and preserve unrelated user settings. Declare a registry in the package’spackage.json:
dist layout from
layout and packaging. Implementation paths
resolve relative to the registry. Export a function, or a
default function, accepting MigrationContext from @isox-sh/core:
js:tsc executor copies the migrations registry and rewrites its
implementation paths when generatePackageJson is enabled. Keep older definitions
so users can skip releases. The runner resolves scripts from installed package
registries and checks their recorded versions before executing them. Isox migrations
use this context API; Nx Tree-based migration implementations are not interchangeable.
See Updating Isox and running migrations for the consumer
workflow. Automatic planning currently selects root @isox-sh/* dependencies;
other installed plugins can run migrations through a manually prepared plan.