diff --git a/packages/rimun-api/package.json b/packages/rimun-api/package.json index ce5856d..f68fc2f 100644 --- a/packages/rimun-api/package.json +++ b/packages/rimun-api/package.json @@ -5,9 +5,10 @@ "main": "dist/src/index.js", "types": "dist/src/index.d.ts", "scripts": { - "build": "tsc --build --verbose", + "build": "tsc --build --verbose && npm run postbuild", "serve": "NODE_ENV=development nodemon -e ts -r tsconfig-paths/register -w src/ src/index.ts", - "start": "node --trace-uncaught -r tsconfig-paths/register dist/src/index.js" + "start": "node --trace-uncaught -r tsconfig-paths/register dist/src/index.js", + "postbuild": "mkdir -p dist/src/services/exports/pdf/assets && cp -R src/services/exports/pdf/assets dist/src/services/exports/pdf" }, "dependencies": { "@prisma/client": "^5.10.2",