Skip to content

Commit

Permalink
Switch to using npm clean script to remove dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuester committed Nov 7, 2024
1 parent 9534768 commit b4ffa76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
"postinstall": "patch-package",
"prepare": "husky install",
"-- DEV BUILD SCRIPTS": "-----------------------------------------------------------------------------------------------",
"clean": "rm -rf build api/build",
"build-ddocs": "mkdir -p build/ddocs && cp -r ddocs/* build/ddocs/ && node scripts/build/cli setDdocsVersion && node scripts/build/cli setBuildInfo && node ./scripts/build/ddoc-compile.js primary && mkdir -p api/build/ddocs && cp build/ddocs/*.json api/build/ddocs/",
"build-dev": "./scripts/build/build-prepare.sh && npm run --prefix shared-libs/cht-datasource build && npm run build-webapp-dev && ./scripts/build/copy-static-files.sh",
"build-dev": "npm run clean && ./scripts/build/build-prepare.sh && npm run --prefix shared-libs/cht-datasource build && npm run build-webapp-dev && ./scripts/build/copy-static-files.sh",
"build-dev-watch": "npm run build-dev && (npm run --prefix shared-libs/cht-datasource build-watch & npm run --prefix webapp build-watch & node ./scripts/build/watch.js)",
"build-documentation": "./scripts/build/build-documentation.sh",
"build-webapp-dev": "cd webapp && npm run build -- --configuration=development && npm run compile",
Expand Down
4 changes: 0 additions & 4 deletions scripts/build/build-prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

set -e

echo "build-prepare: cleaning build directories"
rm -rf build api/build
mkdir build api/build

node scripts/build/cli npmCiModules

echo "build-prepare: building ddocs"
Expand Down

0 comments on commit b4ffa76

Please sign in to comment.