A Yeoman generator for creating linear migration objects for Realm JS projects. Current version 1.1.7. It scaffolds migration directories with previous object schemas, migration functions, and schema version tracking. Key differentiator: automates the boilerplate for Realm migrations, reducing manual error. Release cadence is low; appears to be in maintenance mode. Integrates with Yeoman and requires a React Native setup with Realm.
npm install generator-realm-migrationNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install and use the generator to set up Realm linear migrations in a React Native project.
Ensure each model file exports the Object class with the same name as the file (without extension).
Accept the prompt; it is a side effect of the generator's process.
Do not manually edit migrations/index.js; treat it as auto-generated.
Run 'npm i -g yo' before using the generator.
Check that models directory exists and contains the expected file, or specify correct --modelDir option.
Run the generator again with admin privileges or manually delete the temp directory.
Ensure generator-realm-migration is installed in the project: npm i --save generator-realm-migration