From 8727b3089d7501c7d87e9a99edf1c5938318fe2e Mon Sep 17 00:00:00 2001 From: TechQuery Date: Thu, 21 Nov 2024 06:17:04 +0800 Subject: [PATCH] [fix] NPM scripts --- package.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index b7ec5d9..3bbf835 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cell-router", - "version": "3.0.0", + "version": "3.0.1", "license": "LGPL-3.0", "description": "Web Component Router based on WebCell & MobX", "keywords": [ @@ -58,14 +58,13 @@ "typescript": "~5.6.3" }, "scripts": { - "prepare": "husky", - "install": "app-find chrome msedge firefox -c", + "prepare": "husky && app-find chrome msedge firefox -c", "preview": "cd test/ && rimraf ../.parcel-cache/ dist/ && parcel --open", "pack-preview": "cd test/ && rimraf ../.parcel-cache/ dist/ && parcel build --public-url=. --dist-dir=../docs/preview/", "pack-dist": "rimraf dist/ && parcel build source/index.ts", "test": "lint-staged && npm run pack-preview && jest --forceExit", "pack-docs": "rimraf docs/ && typedoc source/", - "build": "npm run pack-dist && npm run pack-docs", + "build": "npm run pack-dist && npm run pack-docs && npm run pack-preview", "help": "npm run pack-docs && web-server docs/ -o", "prepublishOnly": "npm test && npm run build" },