Browse Source

query-node: ensure building of index-builder

Mokhtar Naamani 4 years ago
parent
commit
6c76f7d0d6
5 changed files with 5 additions and 4 deletions
  1. 0 1
      apps.Dockerfile
  2. 1 1
      package.json
  3. 1 0
      query-node/.dockerignore
  4. 1 1
      query-node/.gitignore
  5. 2 1
      query-node/package.json

+ 0 - 1
apps.Dockerfile

@@ -10,7 +10,6 @@ RUN yarn install --frozen-lockfile
 # Pioneer is failing to build only on github actions workflow runner
 # Pioneer is failing to build only on github actions workflow runner
 # Error: packages/page-staking/src/index.tsx(24,21): error TS2307: Cannot find module './Targets' or its corresponding type declarations.
 # Error: packages/page-staking/src/index.tsx(24,21): error TS2307: Cannot find module './Targets' or its corresponding type declarations.
 # RUN yarn workspace pioneer build
 # RUN yarn workspace pioneer build
-RUN yarn workspace @joystream/cli build
 RUN yarn workspace storage-node build
 RUN yarn workspace storage-node build
 
 
 ENTRYPOINT [ "yarn" ]
 ENTRYPOINT [ "yarn" ]

+ 1 - 1
package.json

@@ -4,7 +4,7 @@
   "version": "1.0.0",
   "version": "1.0.0",
   "license": "GPL-3.0-only",
   "license": "GPL-3.0-only",
   "scripts": {
   "scripts": {
-    "postinstall": "yarn workspace @joystream/types build && yarn workspace cd-schemas generate:all && yarn workspace cd-schemas build",
+    "postinstall": "yarn workspace @joystream/types build && yarn workspace cd-schemas generate:all && yarn workspace cd-schemas build && yarn workspace @joystream/cli build && yarn workspace query-node-root build",
     "cargo-checks": "devops/git-hooks/pre-commit && devops/git-hooks/pre-push",
     "cargo-checks": "devops/git-hooks/pre-commit && devops/git-hooks/pre-push",
     "cargo-build": "scripts/cargo-build.sh"
     "cargo-build": "scripts/cargo-build.sh"
   },
   },

+ 1 - 0
query-node/.dockerignore

@@ -1,2 +1,3 @@
 **/node_modules
 **/node_modules
 **/dist
 **/dist
+./lib/

+ 1 - 1
query-node/.gitignore

@@ -1 +1 @@
-lib
+lib/

+ 2 - 1
query-node/package.json

@@ -3,7 +3,8 @@
 	"version": "1.0.0",
 	"version": "1.0.0",
 	"description": "GraphQL server and Substrate indexer. Generated with ♥ by Hydra-CLI",
 	"description": "GraphQL server and Substrate indexer. Generated with ♥ by Hydra-CLI",
 	"scripts": {
 	"scripts": {
-		"build": "yarn workspace @joystream/hydra-indexer-lib build && tsc --build tsconfig.json",
+		"postinstall": "yarn build",
+		"build": "(cd index-builder && yarn build) && tsc --build tsconfig.json",
 		"test": "echo \"Error: no test specified\" && exit 1",
 		"test": "echo \"Error: no test specified\" && exit 1",
 		"clean": "rm -rf ./generated",
 		"clean": "rm -rf ./generated",
 		"processor:start": "(cd ./generated/indexer && yarn && DEBUG=${DEBUG} yarn start:processor)",
 		"processor:start": "(cd ./generated/indexer && yarn && DEBUG=${DEBUG} yarn start:processor)",