build: moved native dep to 'build-server' from 'dist'
Massimo Melina committed
Jun 4, 2022 at 13:31 UTC
06a56d589a21b30c466333933a97dad92132b705
1 file changed
+4
-4
package.json
+4
-4
@@ -17,18 +17,18 @@
17
"watch-form": "cd mui-grid-form && tsc --watch",
18
"start-frontend": "cd frontend && npm run start",
19
"start-admin": "cd admin && npm run start",
20
- "build-all": "npm audit --omit=dev && rm -rf dist && npm install && npm run build-shared && npm run build-mui-grid-form && npm run build-server && npm run build-frontend && npm run build-admin && echo COMPLETED",
21
- "build-server": "rm -rf dist/src dist/plugins && tsc --target es2018 && cp -v -r package-lock.json server/package.json READ* LICENSE* plugins dist && cd dist && npm ci --production && cd .. && node afterbuild",
20
+ "build-all": "npm audit --omit=dev && rm -rf dist && npm i && npm run build-shared && npm run build-server && npm run build-form && npm run build-frontend && npm run build-admin && echo COMPLETED",
21
+ "build-server": "rm -rf dist/src dist/plugins && tsc --target es2018 && cp -v -r package-lock.json server/package.json READ* LICENSE* plugins dist && cd dist && npm ci --production && npm i -f @node-rs/crc32-win32-x64-msvc && cd .. && node afterbuild",
22
"build-frontend": "cd frontend && npm run build",
23
"build-admin": "cd admin && npm run build",
24
"build-shared": "cd shared && npm run build",
25
- "build-mui-grid-form": "cd mui-grid-form && npm run build",
25
+ "build-form": "cd mui-grid-form && npm run build",
26
"server-for-test": "cross-env HFS_CONFIG=tests node dist/src",
27
"test": "mocha -r ts-node/register 'tests/**/*.ts'",
28
"dist-node": "cd dist && zip hfs-node.zip -r * -x *.zip *.exe hfs-*",
29
"dist-win": "pkg . -C gzip -t node16-win && cd dist && zip hfs-windows.zip hfs.exe -r plugins",
30
"dist-bin": "pkg . -C gzip && cd dist && mv -f hfs-win.exe hfs.exe && zip hfs-windows.zip hfs.exe -r plugins && cp -f hfs-linux hfs && zip hfs-linux.zip hfs -r plugins && cp -f hfs-macos hfs && zip hfs-macos.zip hfs -r plugins && rm hfs",
31
- "dist": "npm run build-all && npm run dist-node && npm install @node-rs/crc32-win32-x64-msvc -f && npm run dist-bin"
31
+ "dist": "npm run build-all && npm run dist-node && npm run dist-bin"
32
},
33
"engines": {
34
"node": ">=16.13.0"