Skip to content

Commit ab08d26

Browse files
Update package.json
1 parent 2b0c748 commit ab08d26

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/OpenSign/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@
6363
"scripts": {
6464
"build-template-win": "vite build --config vite.public-template.config.js",
6565
"build-template": "NODE_OPTIONS=\"--max-old-space-size=8192\" vite build --config vite.public-template.config.js",
66-
"build": "npm run version && react-scripts build",
66+
"build": "npm run version && npm run build-template && NODE_OPTIONS=\"--max-old-space-size=8192\" vite build",
6767
"build-template-watch": "NODE_OPTIONS=\"--max-old-space-size=8192\" vite build --config vite.public-template.config.js --watch",
6868
"start-dev": "vite",
6969
"dev": "vite",
7070
"preview": "vite preview",
7171
"start": "serve -s build",
7272
"version": "curl -s https://api.github.com/repos/opensignlabs/opensign/releases/latest | grep '\"tag_name\":' | awk -F '\"' '{print $4}' > ./public/version.txt",
7373
"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\"",
74-
"build-win": "npm run version-win && react-scripts build",
74+
"build-win": "npm run version-win && npm run build-template-win && vite build",
7575
"test": "vitest run",
7676
"test:watch": "vitest",
7777
"release": "standard-version",
@@ -143,4 +143,4 @@
143143
"engines": {
144144
"node": "18 || 20 || 22"
145145
}
146-
}
146+
}

0 commit comments

Comments
 (0)