hippofish/packages/backend/scripts/create-migration.mjs

13 lines
191 B
JavaScript

import { execa } from "execa";
(async () => {
await execa(
"pnpm", [
"typeorm",
"migration:create",
`src/migration/${process.argv[2]}`
], {
stdio: "inherit",
},
);
})();