diff --git a/nest-cli.json b/nest-cli.json index 545b41e..a02f879 100644 --- a/nest-cli.json +++ b/nest-cli.json @@ -9,6 +9,11 @@ "include": "../assets/**", "watchAssets": true, "outDir": "dist/assets" + }, + { + "include": "../prisma/**", + "outDir": "dist/prisma", + "watchAssets": false } ] } diff --git a/package.json b/package.json index c47dd56..ae7fc18 100644 --- a/package.json +++ b/package.json @@ -6,13 +6,16 @@ "private": true, "license": "UNLICENSED", "scripts": { - "build": "nest build", + "build": "nest build && npm run copy-package", + "build:w": "nest build && npm run copy-package:w", "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "start": "nest start", "start:dev": "nest start --watch", "start:debug": "nest start --debug --watch", "start:prod": "node dist/main", - "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix" + "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", + "copy-package": "cp package.json dist/package.json && cp package-lock.json dist/package-lock.json", + "copy-package:w": "copy package.json dist\\package.json && copy package-lock.json dist\\package-lock.json" }, "dependencies": { "@nestjs/common": "^11.0.1", @@ -54,4 +57,4 @@ "typescript": "^5.7.3", "typescript-eslint": "^8.20.0" } -} +} \ No newline at end of file