瀏覽代碼

Add typeorm command to cli

ghorsington 5 年之前
父節點
當前提交
0d80f8d936
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      package.json

+ 2 - 1
package.json

@@ -6,7 +6,8 @@
    "scripts": {
    "scripts": {
       "test": "echo \"Error: no test specified\" && exit 1",
       "test": "echo \"Error: no test specified\" && exit 1",
       "build": "tsc",
       "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": {
    "repository": {
       "type": "git",
       "type": "git",