From 9407c7db204d7c4e92be3465a9a8d74580d8308a Mon Sep 17 00:00:00 2001 From: cheton Date: Thu, 7 Mar 2024 18:24:49 +0800 Subject: [PATCH] ci: add `prepare` script to build icon files on `npm install` and `npm publish` --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 45b2ca8..cc498db 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@trendmicro/tmicon", - "version": "1.39.0", + "version": "1.39.1", "description": "", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", @@ -13,7 +13,8 @@ "scripts": { "clean": "del dist/cjs dist/esm src/icons/*", "build": "npm run build-icon-files && cross-env PACKAGE_NAME=index INPUT=src OUTPUT_DIRECTORY=dist rollup --config rollup.config.mjs", - "build-icon-files": "node ./script/build-icon-files.js" + "build-icon-files": "node ./script/build-icon-files.js", + "prepare": "npm run clean && npm run build" }, "contributors": [ {