로컬실행모드추가 및 로컬실행시에는 백엔드 버튼 숨김

This commit is contained in:
backuppc
2026-01-21 14:43:10 +09:00
parent c84fd2a7e9
commit fc9500f99b
6 changed files with 1773 additions and 224 deletions

View File

@@ -3,9 +3,13 @@
"private": true,
"version": "0.0.0",
"type": "module",
"bin": "backend_proxy.cjs",
"scripts": {
"dev": "vite",
"build": "pkg backend_proxy.cjs --targets node18-win-x64 --output public/webftp-backend.exe && vite build",
"clean": "rimraf public/webftp.exe public/webftp-backend.exe dist/webftp.exe dist/webftp-backend.exe",
"build": "npm run clean && vite build && npm run build:backend && npm run build:full",
"build:full": "pkg . --output ./public/webftp.exe",
"build:backend": "pkg backend_proxy.cjs -c pkg-backend.json --output ./public/webftp-backend.exe",
"preview": "vite preview",
"proxy": "node backend_proxy.cjs"
},
@@ -21,7 +25,17 @@
"@types/node": "^22.14.0",
"@vitejs/plugin-react": "^5.0.0",
"pkg": "^5.8.1",
"rimraf": "^6.1.2",
"typescript": "~5.8.2",
"vite": "^6.2.0"
},
"pkg": {
"scripts": "backend_proxy.cjs",
"assets": [
"dist/**/*"
],
"targets": [
"node18-win-x64"
]
}
}