fix: run schema generator on npm postinstall

This commit is contained in:
Matthew Little
2020-04-15 11:07:17 +02:00
parent f7b254d646
commit a2bf08024a
2 changed files with 1 additions and 1 deletions

View File

@@ -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

View File

@@ -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",