Skip to content

Commit 68db31b

Browse files
committed
fix: add bin property to package.json for yao-pkg
yao-pkg requires a "bin" property to know which file to package as the entry point. Added bin: "dist/index.js" to fix the packaging error. Tested locally - successfully builds 78MB Windows executable.
1 parent efc43ac commit 68db31b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.0.0",
44
"description": "Standalone WebUI for FlashForge 3D Printers",
55
"main": "dist/index.js",
6+
"bin": "dist/index.js",
67
"type": "commonjs",
78
"scripts": {
89
"dev": "npm run build && concurrently --names \"BACKEND,WEBUI,SERVER\" \"npm run build:backend:watch\" \"npm run build:webui:watch\" \"npm run start:dev\"",

0 commit comments

Comments
 (0)