Commit 2808d2d5 authored by Phạm Quang Bảo's avatar Phạm Quang Bảo

fix: run build

parent b44c4e52
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"gen:db": "tsx src/scripts/database-gen.ts", "gen:db": "tsx src/scripts/database-gen.ts",
"gen:swagger": "tsx src/scripts/swagger-gen.ts", "gen:swagger": "tsx src/scripts/swagger-gen.ts",
"build": "tsx ./src/scripts/database-gen.ts && tsx ./src/scripts/swagger-gen.ts && tsc && cpx \"src/docs/swagger/swagger-output.json\" dist/docs/swagger", "build": "tsx ./src/scripts/database-gen.ts && tsx ./src/scripts/swagger-gen.ts && esbuild ./src/index.ts --bundle --platform=node --format=esm --packages=external --outfile=./dist/index.js",
"start": "node ./dist/index.js" "start": "node ./dist/index.js"
}, },
"imports": { "imports": {
......
import { Sequelize } from 'sequelize'; import { Sequelize } from 'sequelize';
import { config as loadEnv } from 'dotenv'; import { config as loadEnv } from 'dotenv';
import { initModels } from './init-models.js'; import { initModels } from '#models/init-models';
loadEnv({ override: true }); loadEnv({ override: true });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment