Skip to content

Commit

Permalink
fix: copy data/detected to build directory for prod builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Garee committed Oct 20, 2023
1 parent 2bb1c37 commit a950e23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@
},
"scripts": {
"build": "node app/build.js",
"build:prod": "cross-env NODE_ENV=production npm run build",
"build:prod": "cross-env NODE_ENV=production npm run build && npm run copy:data-detected",
"clean": "rm -rf build",
"copy:data-detected": "cp -r ./data/detected ./build",
"dev": "concurrently --kill-others \"npm run build\" \"npm run tsc:watch\" \"npm run sync\"",
"format": "prettier --write app/*.js app/src/*.{tsx,html} && black .",
"lint": "npm run lint:py && npm run lint:app",
Expand Down

0 comments on commit a950e23

Please sign in to comment.