将npm install 放到postAttachCommand阶段

This commit is contained in:
2025-10-27 15:46:14 +08:00
parent b99ef73798
commit 19d3ce8a66

View File

@@ -18,6 +18,5 @@
"onAutoForward": "notify" "onAutoForward": "notify"
} }
}, },
"postCreateCommand": "npm install && npm add -D vitepress", "postAttachCommand": "npm install && npm add -D vitepress npm run docs:dev -- --host 0.0.0.0"
"postAttachCommand": "npm run docs:dev -- --host 0.0.0.0"
} }