Skip to content

Commit

Permalink
chore(#9624): remove api/build dir at start of build process (#9629)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuester authored Nov 12, 2024
1 parent b2fd739 commit 093fa9d
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 directory"
rm -rf build
mkdir build

node scripts/build/cli npmCiModules

echo "build-prepare: building ddocs"
Expand Down

0 comments on commit 093fa9d

Please sign in to comment.