Skip to content

Commit 26fdc90

Browse files
committed
Refactor build scripts in package.json
- Simplified the build scripts by removing redundant copy commands for the development build. - Updated the production build script to streamline the copying process to the backend directory.
1 parent a941c62 commit 26fdc90

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

anycode/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"scripts": {
88
"postinstall": "mkdir -p public && cp node_modules/anycode-base/wasm/*.wasm public/ 2>/dev/null || true",
99
"dev": "vite --host 0.0.0.0",
10-
"build:dev": "vite build --mode development && cpy dist ../anycode-backend/public --parents && cpy dist ../anycode-backend --parents",
11-
"build": "vite build && cpy dist ../anycode-backend/public --parents && cpy dist ../anycode-backend --parents",
10+
"build:dev": "vite build --mode development && cpy dist ../anycode-backend --parents",
11+
"build": "vite build && cpy dist ../anycode-backend --parents",
1212
"preview": "vite preview",
1313
"electron": "electron ."
1414
},

0 commit comments

Comments
 (0)