JavaScript Template
A default template plugin that can generate JavaScript or TypeScript migration files (in either ESM or CommonJS format).
Installation
The JavaScript template plugin is built-in and does not need to be installed separately.
Usage
To generate a new migration file with the default JavaScript template and the .js file extension use the new command:
npx emigrate new create some fancy tablepnpm emigrate new create some fancy tableyarn emigrate new create some fancy tablebunx --bun emigrate new create some fancy table{ "scripts": { "emigrate": "emigrate" }}deno task emigrate new create some fancy tableYou can use the --extension option to specify a different file extension for the migration file, e.g. emigrate new --extension .cjs create some table.
For more information see the new command’s documentation.