From 3a21a4ddb82b9c4f6fd7f14d6f53d959e1f6ac40 Mon Sep 17 00:00:00 2001 From: yoshinorin Date: Fri, 19 Jan 2024 23:19:50 +0900 Subject: [PATCH] chore: use `prepublishOnly` instead of `prepublish` and run `npm install` in `prepublishOnly` script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",