Skip to content

Commit

Permalink
chore: shorten check:sdl declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
vindard committed Oct 20, 2023
1 parent e93bddf commit a62aa31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"eslint-fix": "eslint src test --ext .ts --fix",
"build": "tsc -p tsconfig-build.json && cp -R src/services/price/protos dist/services/price/ && cp -R src/services/dealer-price/proto dist/services/dealer-price/ && cp -R src/services/loopd/protos dist/services/loopd/ && cp -R src/services/bria/proto dist/services/bria/ && tscpaths --silent -p tsconfig.json -s ./src -o ./dist",
"trigger": "yarn build && node dist/servers/trigger.js | pino-pretty -c -l",
"check:sdl": "yarn write-sdl && if git diff --name-only | grep -q 'core/api/src/graphql/admin/schema.graphql'; then echo 'Error: core/api/src/graphql/admin/schema.graphql has changes, run `make codegen` and re-recommit' >&2; exit 1; fi && if git diff --name-only | grep -q 'core/api/src/graphql/public/schema.graphql'; then echo 'Error: core/api/src/graphql/public/schema.graphql has changes, run `make codegen` and re-recommit' >&2; exit 1; fi",
"check:sdl": "yarn write-sdl && for FILE in core/api/src/graphql/admin/schema.graphql core/api/src/graphql/public/schema.graphql; do if git diff --name-only | grep -q \"$FILE\"; then echo \"Error: $FILE has changes, run 'make codegen' and re-recommit\" >&2; exit 1; fi; done",
"write-sdl": ". ../../.env && yarn build && node lib/servers/write-sdl.js && rover supergraph compose --config dev/apollo-federation/supergraph-config.yaml --elv2-license accept > dev/apollo-federation/supergraph.graphql",
"ws": "yarn build && node dist/servers/ws-server.js | pino-pretty -c -l",
"watch": "nodemon -V -e ts,graphql -w ./src -x yarn run start",
Expand Down

0 comments on commit a62aa31

Please sign in to comment.