Browse Source

fix(create): Add work-around for upstream tslib issue

Michael Bromley 5 years ago
parent
commit
2f393792e4
1 changed files with 8 additions and 0 deletions
  1. 8 0
      packages/create/src/create-vendure-app.ts

+ 8 - 0
packages/create/src/create-vendure-app.ts

@@ -105,6 +105,14 @@ async function createApp(
             'migration:run': usingTs ? 'ts-node migration run' : 'node migration run',
             'migration:revert': usingTs ? 'ts-node migration revert' : 'node migration revert',
         },
+        /**
+         * A work-around for the breaking update of tslib as described here:
+         * https://github.com/typeorm/typeorm/issues/6054
+         * TODO: Remove this once the TypeScript team come up with a solution
+         */
+        resolutions: {
+            tslib: '1.11.2',
+        },
     };
 
     console.log();