From 745fec34b53d98b100a05741bf3222a5208ec450 Mon Sep 17 00:00:00 2001 From: Konstantin Dyachenko Date: Sun, 28 May 2023 21:42:18 +0000 Subject: [PATCH] Another one more attempt to fix migrations. --- compiler/index.cjs | 4 +++- migrations/package.json | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 migrations/package.json diff --git a/compiler/index.cjs b/compiler/index.cjs index 503986d3..f90f51ac 100644 --- a/compiler/index.cjs +++ b/compiler/index.cjs @@ -1,3 +1,5 @@ -require('ts-node').register(require('../tsconfig.json')); +const config = require('../tsconfig.json'); +config.compilerOptions.module = 'commonjs'; +require('ts-node').register(config); require('dotenv').config(); module.exports = () => {}; diff --git a/migrations/package.json b/migrations/package.json new file mode 100644 index 00000000..6f31cf5a --- /dev/null +++ b/migrations/package.json @@ -0,0 +1 @@ +{ } \ No newline at end of file