mirror of
https://github.com/unraid/api.git
synced 2026-01-03 23:19:54 -06:00
fix: add copy-schemas to build step
This commit is contained in:
5
.github/workflows/production.yml
vendored
5
.github/workflows/production.yml
vendored
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user