Browse Source

Update package.json

itizawa 4 years ago
parent
commit
6b6c533180
1 changed files with 4 additions and 1 deletions
  1. 4 1
      packages/slackbot-proxy/package.json

+ 4 - 1
packages/slackbot-proxy/package.json

@@ -3,7 +3,10 @@
   "version": "0.9.1-RC",
   "license": "MIT",
   "scripts": {
-    "build": "yarn tsc && tsc-alias -p tsconfig.build.json",
+    "build": "yarn tsc && tsc-alias -p tsconfig.build.json && yarn postbuild",
+    "postbuild": "yarn cp:public && yarn cp:views",
+    "cp:public": "mkdir -p ./dist/public && cp -r ./src/public ./dist",
+    "cp:views": "mkdir -p ./dist/views && cp -r ./src/views ./dist",
     "tsc": "tsc -p tsconfig.build.json",
     "tsc:w": "yarn tsc -w",
     "dev:ci": "yarn dev --ci",