🐛 Fix formatting and testing code

This commit is contained in:
Tw93
2025-08-21 21:14:42 +08:00
parent a539067e57
commit 9fa4b9daad
4 changed files with 116 additions and 72 deletions

View File

@@ -39,8 +39,8 @@
"tauri": "tauri",
"cli": "cross-env NODE_ENV=development rollup -c -w",
"cli:build": "cross-env NODE_ENV=production rollup -c",
"test": "npm run cli:build && PAKE_CREATE_APP=1 node tests/index.js",
"format": "prettier --write . --ignore-unknown && cd src-tauri && cargo fmt --verbose",
"test": "npm run cli:build && cross-env PAKE_CREATE_APP=1 node tests/index.js",
"format": "prettier --write . --ignore-unknown && find tests -name '*.js' -exec sed -i '' 's/[[:space:]]*$//' {} \\; && cd src-tauri && cargo fmt --verbose",
"prepublishOnly": "npm run cli:build"
},
"type": "module",