fix: add copy-schemas to build step

This commit is contained in:
Alexis Tyler
2020-11-30 21:09:20 +10:30
parent 9799600b87
commit 9ec225f872
2 changed files with 4 additions and 6 deletions

View File

@@ -85,12 +85,9 @@ jobs:
- name: Installing node deps
run: npm install
- name: Compile typescript to js
- name: Run build
run: npm run build
- name: Copy graphql files to dist
run: npm run copy-schemas
# See https://github.com/apollographql/subscriptions-transport-ws/issues/433
- name: Patch subscriptions-transport-ws
run: npm run patch:subscriptions-transport-ws

View File

@@ -6,9 +6,10 @@
"author": "Alexis Tyler <xo@wvvw.me> (https://wvvw.me/)",
"license": "UNLICENSED",
"scripts": {
"build": "npx tsup ./app/index.ts",
"build": "npm run bundle && npm run copy-schemas",
"bundle": "npx tsup ./app/index.ts --minify",
"bundle-dependencies": "bundle-dependencies update",
"copy-schemas": "cpx app/**/*.graphql dist",
"copy-schemas": "cpx app/**/*.graphql dist/types",
"clean": "modclean --no-progress --run --path .",
"commit": "npx git-cz",
"lint": "xo --verbose",