node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
import tsUtils from '@strapi/typescript-utils';
import validateFileNameInput from './utils/validate-file-name-input.mjs';
import getFormattedDate from './utils/get-formatted-date.mjs';
var generateMigration = ((plop)=>{
// Migration generator
plop.setGenerator('migration', {
description: 'Generate a migration',
prompts: [
{
type: 'input',
name: 'name',
message: 'Migration name',
validate: (input)=>validateFileNameInput(input)
}
],
actions () {
const currentDir = process.cwd();
const language = tsUtils.isUsingTypeScriptSync(currentDir) ? 'ts' : 'js';
const timestamp = getFormattedDate();
return [
{
type: 'add',
path: `${currentDir}/database/migrations/${timestamp}.{{ name }}.${language}`,
templateFile: `templates/${language}/migration.${language}.hbs`
}
];
}
});
});
export { generateMigration as default };
//# sourceMappingURL=migration.mjs.map