mirror of
https://github.com/alexgo-io/stacks-blockchain-api.git
synced 2026-04-27 17:30:26 +08:00
fix: run schema generator on npm postinstall
This commit is contained in:
@@ -5,7 +5,6 @@ RUN cd /app; npm install
|
||||
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
RUN npm run generate:types
|
||||
RUN npm run generate:schemas
|
||||
RUN npm run build
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
"lint:json": "jsonlint-cli docs/**/*.json",
|
||||
"lint:openapi": "lint-openapi ./docs/openapi.yaml",
|
||||
"lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx -f codeframe --fix",
|
||||
"postinstall": "npm run generate:schemas",
|
||||
"migrate": "ts-node node_modules/.bin/node-pg-migrate -j ts",
|
||||
"generate:types": "ts-node ./scripts/generate-types.ts",
|
||||
"generate:schemas": "gulp --silent && npm run generate:types",
|
||||
|
||||
Reference in New Issue
Block a user