Browse Source

fix(create): Fix default migration path of scaffold (#1759)

Artem Danilov 3 years ago
parent
commit
e1c90cc0c7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/create/templates/vendure-config.hbs

+ 1 - 1
packages/create/templates/vendure-config.hbs

@@ -46,7 +46,7 @@ export const config: VendureConfig = {
         // See the README.md "Migrations" section for an explanation of
         // See the README.md "Migrations" section for an explanation of
         // the `synchronize` and `migrations` options.
         // the `synchronize` and `migrations` options.
         synchronize: false,
         synchronize: false,
-        migrations: [path.join(__dirname, './migrations/*.ts')],
+        migrations: [path.join(__dirname, './migrations/*.+(js|ts)')],
         logging: false,
         logging: false,
         database: {{#if isSQLjs}}new Uint8Array([]){{else if isSQLite}}path.join(__dirname, '../vendure.sqlite'){{else}}process.env.DB_NAME{{/if}},
         database: {{#if isSQLjs}}new Uint8Array([]){{else if isSQLite}}path.join(__dirname, '../vendure.sqlite'){{else}}process.env.DB_NAME{{/if}},
         {{#if dbSchema}}
         {{#if dbSchema}}