include plugins in distribution
Massimo Melina committed
Apr 20, 2022 at 22:49 UTC
4f6b075fcd4655c5b9829614d211c2f846d0a3be
1 file changed
+4
-4
package.json
+4
-4
@@ -17,14 +17,14 @@
17
"start-admin": "cd admin && npm run start",
18
"start": "node dist",
19
"build-all": "npm audit --production && rm -rf dist && npm run build-shared && npm run build-server && npm run build-frontend && npm run build-admin && echo COMPLETED",
20
- "build-server": "npm install && rm -rf dist/src && 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-server": "npm install && 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",
21
"build-frontend": "cd frontend && npm run build",
22
"build-admin": "cd admin && npm run build",
23
"build-shared": "cd shared && npx tsc",
24
"test": "mocha -r ts-node/register 'tests/**/*.ts'",
25
- "zip-dist": "cd dist && zip hfs-node.zip -r * -x *.zip *.exe hfs-*",
26
- "exe-dist": "pkg . -C brotli && cd dist && mv -f hfs-win.exe hfs.exe && zip plugins.zip -r plugins",
27
- "new-dist": "npm run build-all && npm run zip-dist && npm run exe-dist"
25
+ "dist-node": "cd dist && zip hfs-node.zip -r * -x *.zip *.exe hfs-*",
26
+ "dist-bin": "pkg . -C brotli && 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",
27
+ "dist": "npm run build-all && npm run dist-node && npm run dist-exe"
28
},
29
"engines": {
30
"node": ">=16.13.0"