Pārlūkot izejas kodu

Add typeorm command to cli

ghorsington 5 gadi atpakaļ
vecāks
revīzija
0d80f8d936
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      package.json

+ 2 - 1
package.json

@@ -6,7 +6,8 @@
    "scripts": {
       "test": "echo \"Error: no test specified\" && exit 1",
       "build": "tsc",
-      "start": "ts-node src/index.ts"
+      "start": "ts-node src/index.ts",
+      "typeorm": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js"
    },
    "repository": {
       "type": "git",