Browse Source

CLI checks - add metadata build

Leszek Wiesner 3 years ago
parent
commit
b55323dfe6

+ 2 - 0
.github/workflows/joystream-cli.yml

@@ -18,6 +18,7 @@ jobs:
       run: |
         yarn install --frozen-lockfile
         yarn workspace @joystream/types build
+        yarn workspace @joystream/content-metadata-protobuf build:ts
         yarn workspace @joystream/cli checks --quiet
     - name: yarn pack test
       run: |
@@ -41,6 +42,7 @@ jobs:
       run: |
         yarn install --frozen-lockfile --network-timeout 120000
         yarn workspace @joystream/types build
+        yarn workspace @joystream/content-metadata-protobuf build:ts
         yarn workspace @joystream/cli checks --quiet
     - name: yarn pack test
       run: |

+ 1 - 0
build-npm-packages.sh

@@ -4,6 +4,7 @@ set -e
 
 yarn
 yarn workspace @joystream/types build
+yarn workspace @joystream/content-metadata-protobuf build:ts
 yarn workspace query-node-root build
 # For now cli build is broken.. proceed anyway
 yarn workspace @joystream/cli build || :

+ 2 - 1
content-metadata-protobuf/package.json

@@ -9,7 +9,8 @@
   "license": "MIT",
   "private": false,
   "scripts": {
-    "build": "./compile.sh && tsc",
+    "build": "./compile.sh && yarn build:ts",
+    "build:ts": "tsc",
     "compile": "./compile.sh",
     "generate-doc": "./generate-md-doc.sh",
     "test": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -r ts-node/register 'test/**/*.ts'",