diff --git a/api/package.json b/api/package.json index f1fc481..d23cfba 100644 --- a/api/package.json +++ b/api/package.json @@ -9,14 +9,14 @@ "prebuild": "npm run initial", "start": "nodemon ./src/server.ts", "build": "rimraf build && tsc", + "postbuild": "npm run copy:files", "swagger": "tsoa spec", "prepare": "[ -d .git ] && git config core.hooksPath ./.git-hooks || true", "test": "mkdir -p tmp && mkdir -p ../web/build && jest --silent --coverage", "lint:fix": "npx prettier --write \"src/**/*.{ts,tsx,js,jsx,html,css,sass,less,yml,md,graphql}\"", "lint": "npx prettier --check \"src/**/*.{ts,tsx,js,jsx,html,css,sass,less,yml,md,graphql}\"", - "package:lib": "npm run build && cp ./package.json build && cp README.md build && cd build && npm version \"5.0.0\" && npm pack", - "exe": "npm run build && npm run exe:copy && pkg .", - "exe:copy": "npm run public:copy && npm run sasjsbuild:copy && npm run sasjscore:copy && npm run web:copy", + "exe": "npm run build && pkg .", + "copy:files": "npm run public:copy && npm run sasjsbuild:copy && npm run sasjscore:copy && npm run web:copy", "public:copy": "cp -r ./public/ ./build/public/", "sasjsbuild:copy": "cp -r ./sasjsbuild/ ./build/sasjsbuild/", "sasjscore:copy": "cp -r ./sasjscore/ ./build/sasjscore/",