From 9d305f784398acba7aa0ab8274573dcd0340b601 Mon Sep 17 00:00:00 2001 From: PinghuaZhuang Date: Tue, 5 Sep 2023 15:56:39 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ package.json | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1ab73f6..9390061 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # CommandStack +[![publish](https://github.com/PinghuaZhuang/command-stack/actions/workflows/publish.yml/badge.svg)](https://github.com/PinghuaZhuang/command-stack/actions/workflows/publish.yml) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/PinghuaZhuang/command-stack/blob/master/LICENSE) [![Commit](https://img.shields.io/github/last-commit/pinghuazhuang/command-stack.svg)](https://github.com/PinghuaZhuang/command-stack/commits/master) [![Verison](https://img.shields.io/npm/v/@zstark/command-stack.svg)](https://www.npmjs.com/package/@zstark/command-stack) + 常见的 redo, undo操作. 继承 events. ## Quick start diff --git a/package.json b/package.json index 71a9871..a6a94a8 100644 --- a/package.json +++ b/package.json @@ -11,9 +11,9 @@ "author": "", "main": "./src/index.ts", "scripts": { - "build": " npm-run-all -s test build:es build:umd", + "build": "npm-run-all -s test build:es build:umd", "build:umd": "vite --mode=umd build", - "build:example": "vite build", + "build:example": "tsc && vite build", "dev": "vite", "build:es": "tsc", "test": "vitest --watch=false" @@ -27,5 +27,9 @@ "typescript": "^5.2.2", "vite": "^4.4.9", "vitest": "^0.34.3" + }, + "publishConfig": { + "access": "public", + "registry": "https://registry.npmjs.org/" } }