Skip to content

Commit

Permalink
fix(server): fails to start due to listCatalog GraphQL query
Browse files Browse the repository at this point in the history
  • Loading branch information
feugy committed Sep 29, 2023
1 parent be6190c commit fc9f25c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
1 change: 0 additions & 1 deletion apps/game-utils/tests/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export function buildDescriptorTestSuite(
expectNumber(descriptor, 'minSeats')
expectNumber(descriptor, 'maxSeats', 0, 8)
expectNumber(descriptor, 'minAge')
expectNumber(descriptor, 'maxAge')
expectNumber(descriptor, 'minTime')
expectObject(descriptor, 'copyright', {
authors: ['array', 'object', { name: ['string'] }],
Expand Down
2 changes: 1 addition & 1 deletion apps/server/src/graphql/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type CatalogItem = Pick<GameDescriptor, 'name' | 'locales'> &
Partial<
Pick<
GameDescriptor,
'copyright' | 'minSeats' | 'maxSeats' | 'minAge' | 'maxAge' | 'minTime'
'copyright' | 'minSeats' | 'maxSeats' | 'minAge' | 'minTime'
>
>

Expand Down
2 changes: 0 additions & 2 deletions apps/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ declare module '.' {
maxSeats?: number
/** minimum age suggested. */
minAge?: number
/** maximum age suggested. */
maxAge?: number
/** minimum time observed. */
minTime?: number
/** copyright data, meaning this item has restricted access. */
Expand Down
1 change: 0 additions & 1 deletion apps/web/src/graphql/catalog.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ query listCatalog {
}
}
minAge
maxAge
minTime
minSeats
maxSeats
Expand Down
8 changes: 5 additions & 3 deletions hosting/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,17 @@ cp .nvmrc dist/

# build server
rm -rf node_modules apps/*/node_modules
pnpm --filter server --prod deploy dist/server
pnpm -F server --ignore-scripts --prod deploy dist/server
cd dist/server
tar --create --file ../server.tar.gz -z node_modules/ src/ migrations/ package.json
cd ../..
rm -rd dist/server

# build game-utils
cd apps/game-utils
tar --create --file ../../dist/game-utils.tar.gz -z *
rm -rf node_modules apps/*/node_modules
pnpm -F game-utils --ignore-scripts --prod deploy dist/game-utils
cd dist/game-utils
tar --create --file ../../dist/game-utils.tar.gz -z node_modules/ src/ package.json
cd ../..

# build games
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"lint": "eslint .",
"migrate": "pnpm -F server migrate",
"prepare": "husky install",
"start": "pnpm run -r --stream --if-present start",
"start": "pnpm run -F server -F web --stream start",
"test": "pnpm -r --stream --if-present t",
"test:cli": "pnpm -F cli t",
"test:games": "pnpm -F games t",
Expand Down

2 comments on commit fc9f25c

@vercel
Copy link

@vercel vercel bot commented on fc9f25c Sep 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

tabulous-atelier – ./apps/web

tabulous-atelier.vercel.app
tabulous-atelier-git-main-feugy.vercel.app
tabulous-atelier-feugy.vercel.app

@vercel
Copy link

@vercel vercel bot commented on fc9f25c Sep 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

tabulous – ./apps/web

tabulous-git-main-feugy.vercel.app
tabulous.fr
tabulous-feugy.vercel.app
tabulous.vercel.app

Please sign in to comment.