Browse Source

Merge pull request #551 from dzhelezov/query_node_build_fix

Query node CLI build fix
Bedeho Mender 4 years ago
parent
commit
3ce8d13fca

+ 1 - 0
query-node/substrate-query-framework/cli/package.json

@@ -67,6 +67,7 @@
   },
   "repository": "joystream/joystream/joystream-query-node/cli",
   "scripts": {
+    "build": "tsc --build tsconfig.json",
     "postpack": "rm -f oclif.manifest.json",
     "lint": "eslint . --cache --ext .ts --config .eslintrc.js",
     "prepack": "rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme",

+ 6 - 3
query-node/substrate-query-framework/cli/tsconfig.json

@@ -4,12 +4,15 @@
     "importHelpers": true,
     "module": "commonjs",
     "outDir": "lib",
-    "rootDir": ".",
+    "rootDir": "./src",
     "strict": true,
     "target": "es2017",
     "esModuleInterop": true,
     "experimentalDecorators": true,
-    "emitDecoratorMetadata": true
+    "emitDecoratorMetadata": true,
+    "typeRoots": [
+        "./src/node_modules/@types"
+    ] 
   },
-  "include": ["./**/*.ts"]
+  "include": ["./src/**/*.ts"]
 }