Browse Source

Fix distributor-node docker build, adjust @joystream/types build

Leszek Wiesner 3 years ago
parent
commit
c46c8f4956
2 changed files with 4 additions and 1 deletions
  1. 2 0
      distributor-node.Dockerfile
  2. 2 1
      types/package.json

+ 2 - 0
distributor-node.Dockerfile

@@ -1,6 +1,8 @@
 FROM --platform=linux/x86-64 node:14 as builder
 
 WORKDIR /joystream
+COPY ./.git .git
+COPY ./chain-metadata.json chain-metadata.json
 COPY ./types types
 COPY ./metadata-protobuf metadata-protobuf
 COPY ./distributor-node distributor-node

+ 2 - 1
types/package.json

@@ -8,7 +8,8 @@
     "prepublishOnly": "npm run build",
     "prepack": "npm run build",
     "compile": "tsc --build tsconfig.json",
-    "build": "git clean -xdf -e node_modules && yarn compile && yarn generate:all",
+    "clean": "git clean -xdf -e node_modules",
+    "build": "yarn clean; yarn compile && yarn generate:all",
     "lint": "eslint ./ --ext .ts",
     "format": "prettier ./ --write",
     "check:augment": "tsc --build tsconfig-augment.json && tsc --build tsconfig-augment-codec.json",