Skip to content

🔥 The free & Open Source DocuSign alternative

Update package.json

prafull-opensignlabsab08d2615df6
diff --git a/apps/OpenSign/package.json b/apps/OpenSign/package.json
index ca3f4035e..536f0e001 100644
--- a/apps/OpenSign/package.json
+++ b/apps/OpenSign/package.json
@@ -63,7 +63,7 @@
"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 && react-scripts build",
+ "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",
"start-dev": "vite",
"dev": "vite",
@@ -71,7 +71,7 @@
"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 && react-scripts build",
+ "build-win": "npm run version-win && npm run build-template-win && vite build",
"test": "vitest run",
"test:watch": "vitest",
"release": "standard-version",
@@ -143,4 +143,4 @@
"engines": {
"node": "18 || 20 || 22"
}
-}
\ No newline at end of file
+}