Browse Source

Fix missing openapi spec after distributor-node build

Leszek Wiesner 3 years ago
parent
commit
f7489e83aa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      distributor-node/package.json

+ 1 - 1
distributor-node/package.json

@@ -105,7 +105,7 @@
     "generate:api:distributor-node": "yarn openapi-generator-cli generate -i ./src/api-spec/openapi.yml -g typescript-axios -o ./src/services/networking/distributor-node/generated",
     "generate:api:all": "yarn generate:api:storage-node && yarn generate:api:distributor-node",
     "generate:all": "yarn generate:types:all && yarn generate:api:all",
-    "build": "tsc --build tsconfig.json",
+    "build": "tsc --build tsconfig.json && cp -r ./src/api-spec ./lib/api-spec",
     "lint": "eslint ./src --ext .ts",
     "format": "prettier ./ --write",
     "checks": "tsc --noEmit --pretty && prettier ./ --check && yarn lint",