Browse Source

query node - build improvement

ondratra 3 years ago
parent
commit
e7c156ad95
2 changed files with 2 additions and 6 deletions
  1. 2 1
      query-node/mappings/package.json
  2. 0 5
      query-node/tmp.sh

+ 2 - 1
query-node/mappings/package.json

@@ -5,7 +5,8 @@
   "main": "lib/mappings/src/index.js",
   "license": "MIT",
   "scripts": {
-    "build": "rm -rf lib && tsc --build tsconfig.json",
+    "build": "rm -rf lib && tsc --build tsconfig.json && yarn copy-types",
+    "copy-types": "cp ../../types/augment/all/defs.json lib/generated/types/typedefs.json",
     "lint": "echo \"Skippinng\"",
     "clean": "rm -rf lib"
   },

+ 0 - 5
query-node/tmp.sh

@@ -1,5 +0,0 @@
-set -a
-. ../.env
-set +a
-
-yarn build