From 2e9cd62b0dafcf875f4427bd556800ce2b69d8d1 Mon Sep 17 00:00:00 2001 From: Narek Date: Sun, 20 Oct 2024 20:39:59 +0400 Subject: [PATCH] feat(): update TypeORM configuration for ESM support and adjust migration scripts --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 7774cf5..96eba0a 100644 --- a/package.json +++ b/package.json @@ -11,9 +11,9 @@ "start:dev": "node --loader ts-node/esm src/main.ts", "start:prod": "node dist/main.js", "start:deno": "deno --watch --allow-read --allow-env --unstable-sloppy-imports --allow-net src/main.ts", - "typeorm": "typeorm-ts-node-commonjs", - "migration:generate": "yarn run typeorm migration:generate -d ormconfig", - "migration:create": "yarn run typeorm migration:create -d ormconfig", + "typeorm": "typeorm-ts-node-esm", + "migration:generate": "yarn run typeorm migration:generate -d ormconfig.ts", + "migration:create": "yarn run typeorm migration:create -d ormconfig.ts", "new": "hygen new", "migration:revert": "yarn run typeorm migration:revert", "schema:drop": "yarn run typeorm schema:drop", @@ -29,7 +29,7 @@ "docs:dev": "vuepress dev -p 7070", "docs:build": "DEPLOY_ENV=gh-pages vuepress build", "docs:deploy": "yarn docs:build && gh-pages -d .vuepress/dist", - "prepare": "husky install", + "prepare": "husky", "release": "release-it" }, "dependencies": {