Skip to content

Commit a2dd9d6

Browse files
committed
fix(info): sequelize not supported type module
1 parent e207cb1 commit a2dd9d6

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.sequelizerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ const path = require('path')
33
module.exports = {
44
config: path.resolve('./dist/app/database', 'config.js'),
55
'models-path': path.resolve('./dist/app/database', 'entity'),
6-
'seeders-path': path.resolve('./dist/app/database', 'seeder'),
6+
'seeders-path': path.resolve('./dist/app/database', 'seed'),
77
'migrations-path': path.resolve('./dist/app/database', 'migration'),
88
}

eslint.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ export default tseslint.config(
1313
'@typescript-eslint/ban-ts-comment': 'off',
1414
'@typescript-eslint/no-explicit-any': 'warn',
1515
'@typescript-eslint/no-unused-vars': 'warn',
16-
'@typescript-eslint/no-var-requires': 'warn',
1716
'@typescript-eslint/consistent-type-definitions': 'off',
17+
'@typescript-eslint/no-require-imports': 'off',
18+
'@typescript-eslint/no-var-requires': 'off',
1819
},
1920
ignores: ['.dist/*'],
2021
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "A simple Express API with TypeScript, Sequelize, and PostgreSQL",
55
"main": "src/main.ts",
66
"private": true,
7-
"type": "module",
7+
"type": "commonjs",
88
"scripts": {
99
"secret": "chmod +x ./script/secret.sh && bash ./script/secret.sh",
1010
"start": "nodemon --exec node ./dist/main.js",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"experimentalDecorators": true,
88

99
/* Modules */
10-
"module": "ESNext",
10+
"module": "commonjs",
1111
"moduleResolution": "node",
1212
"baseUrl": "./",
1313
"paths": {

0 commit comments

Comments
 (0)