From 0c7b22eb2c124f5eca22aec163ecd575ee7131e2 Mon Sep 17 00:00:00 2001 From: Michal Kawka Date: Thu, 14 Nov 2024 17:21:38 +0100 Subject: [PATCH] add copy script --- backend/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/package.json b/backend/package.json index 8a85884..b9ed123 100644 --- a/backend/package.json +++ b/backend/package.json @@ -3,7 +3,8 @@ "version": "1.0.0-beta.1", "main": "dist/server.js", "scripts": { - "build": "npx tsc", + "build": "npx tsc && npm run copy-graphql", + "copy-graphql": "cp -R src/**/*.graphql dist/graphql/", "codegen:apollo": "graphql-codegen --config codegen.apollo.ts", "dev": "npm run db:reset && ts-node-dev --respawn --transpile-only src/server.ts", "lint": "eslint .",