diff --git a/package.json b/package.json index 860ef9c590..05bf81b7f5 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "hexo": "./bin/hexo" }, "scripts": { - "prepublish ": "npm run clean && npm run build", + "prepublishOnly": "npm install && npm run clean && npm run build", "build": "tsc -b", "clean": "tsc -b --clean", "eslint": "eslint lib test",