Merge pull request #612 from OpenSignLabs/staging

fix: correct build commands for selfhosting
This commit is contained in:
prafull-opensignlabs
2025-05-14 14:42:30 +00:00
parent c422cdac06
commit b6f1cceeca
+3 -6
View File
@@ -61,17 +61,14 @@
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
},
"scripts": {
"build-template-win": "vite build --config vite.public-template.config.js",
"build-template": "NODE_OPTIONS=\"--max-old-space-size=8192\" vite build --config vite.public-template.config.js",
"build": "npm run version && npm run build-template && NODE_OPTIONS=\"--max-old-space-size=8192\" vite build",
"build-template-watch": "NODE_OPTIONS=\"--max-old-space-size=8192\" vite build --config vite.public-template.config.js --watch",
"build": "npm run version && NODE_OPTIONS=\"--max-old-space-size=8192\" vite build",
"start-dev": "vite",
"dev": "vite",
"preview": "vite preview",
"start": "serve -s build",
"version": "curl -s https://api.github.com/repos/opensignlabs/opensign/releases/latest | grep '\"tag_name\":' | awk -F '\"' '{print $4}' > ./public/version.txt",
"version-win": "powershell -Command \"Invoke-RestMethod -Uri 'https://api.github.com/repos/opensignlabs/opensign/releases/latest' | Select-Object -ExpandProperty tag_name | Out-File -FilePath ./public/version.txt\"",
"build-win": "npm run version-win && npm run build-template-win && vite build",
"build-win": "npm run version-win && vite build",
"test": "vitest run",
"test:watch": "vitest",
"release": "standard-version",
@@ -143,4 +140,4 @@
"engines": {
"node": "18 || 20 || 22"
}
}
}