12 lines
319 B
TypeScript
12 lines
319 B
TypeScript
import { createGeneratorPlugin, getTimestampPrefix, sanitizeMigrationName } from '@emigrate/plugin-tools';
|
|
|
|
export default createGeneratorPlugin(async (name) => {
|
|
return {
|
|
filename: `${getTimestampPrefix()}_${sanitizeMigrationName(name)}.js`,
|
|
content: `// ${name}
|
|
export default async () => {
|
|
|
|
};
|
|
`,
|
|
};
|
|
});
|