Skip to content

Commit

Permalink
fix: rollback to cjs
Browse files Browse the repository at this point in the history
need investigate require-in-the-middle
  • Loading branch information
MatthewPattell committed Jul 28, 2023
1 parent 0fcd304 commit 40d2eb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
input: ['src/**/*.ts', 'migrations/*.ts'],
output: {
dir: 'lib',
format: 'es',
format: 'cjs',
preserveModules: true,
preserveModulesRoot: 'src',
exports: 'auto',
Expand Down
4 changes: 2 additions & 2 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"es2017",
"es2020"
],
"module": "ESNext",
"module": "commonjs",
"moduleResolution": "Node",
"noImplicitAny": true,
"noImplicitReturns": true,
Expand All @@ -29,7 +29,7 @@
"strict": false,
"pretty": true,
"suppressImplicitAnyIndexErrors": true,
"target": "ESNext",
"target": "ES6",
"baseUrl": ".",
"paths": {
"@__mocks__/*": ["./__mocks__/*"],
Expand Down

0 comments on commit 40d2eb2

Please sign in to comment.