Sfoglia il codice sorgente

query node - processor setup I

ondratra 3 anni fa
parent
commit
bfb77fbc1a
2 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 2 1
      query-node/build.sh
  2. 1 1
      query-node/manifest.yml

+ 2 - 1
query-node/build.sh

@@ -12,10 +12,11 @@ set +a
 # only use this when new Hydra releases and contents of `generated/` folder needs to be refreshed
 #yarn clean
 #yarn codegen:noinstall
-#yarn codegen:typegen
+#yarn codegen:typegen # if this fails try to run this command outside of yarn workspaces
 
 yarn query-node:build
 yarn mappings:build
+ln ../types/augment/all/defs.json mappings/lib/generated/types/typedefs.json
 
 # We run yarn again to ensure graphql-server dependencies are installed
 # and are inline with root workspace resolutions

+ 1 - 1
query-node/manifest.yml

@@ -101,7 +101,7 @@ typegen:
     typedefsLoc: '../types/augment/all/defs.json'
 mappings:
   # js module that exports the handler functions
-  mappingsModule: mappings/lib/mappings
+  mappingsModule: mappings
   # additinal libraries the processor loads
   # typically it is a module with event and extrinsic types generated by hydra-typegen
   imports: