From 90a3445e761c7372998deaaa9ee39fddb1c42e3b Mon Sep 17 00:00:00 2001 From: lsh <59404696+peterroe@users.noreply.github.com> Date: Fri, 15 Mar 2024 02:23:41 +0800 Subject: [PATCH] fix: publish script in `package.json` --- templates/cli-starter/package.json | 4 ++++ templates/ts-starter-vite/package.json | 6 +++++- templates/ts-starter/package.json | 6 +++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/templates/cli-starter/package.json b/templates/cli-starter/package.json index e3ff4dd..98e8446 100644 --- a/templates/cli-starter/package.json +++ b/templates/cli-starter/package.json @@ -6,6 +6,10 @@ "author": "peterroe", "license": "MIT", "type": "module", + "files": [ + "dist", + "package.json" + ], "keywords": [ "cli", "typescript", diff --git a/templates/ts-starter-vite/package.json b/templates/ts-starter-vite/package.json index c94e39f..1e56260 100644 --- a/templates/ts-starter-vite/package.json +++ b/templates/ts-starter-vite/package.json @@ -6,6 +6,10 @@ "author": "peterroe", "license": "MIT", "type": "module", + "files": [ + "dist", + "package.json" + ], "keywords": [ "typescript" ], @@ -32,7 +36,7 @@ "fix": "eslint --fix \"**/*.{ts,js}\"", "start": "esno src/index.ts", "test": "vitest", - "release": "pnpm build bumpp && npm publish", + "release": "pnpm build && bumpp && npm publish", "typecheck": "tsc --noEmit", "git-hook-init": "git init && husky install && husky add .husky/pre-commit 'npm run lint && npm run typecheck'" }, diff --git a/templates/ts-starter/package.json b/templates/ts-starter/package.json index 05c95ba..ecb564c 100644 --- a/templates/ts-starter/package.json +++ b/templates/ts-starter/package.json @@ -6,6 +6,10 @@ "author": "peterroe", "license": "MIT", "type": "module", + "files": [ + "dist", + "package.json" + ], "keywords": [ "typescript", "template" @@ -33,7 +37,7 @@ "fix": "eslint --fix \"**/*.{ts,js}\"", "start": "esno src/index.ts", "test": "vitest", - "release": "pnpm build bumpp && npm publish", + "release": "pnpm build && bumpp && npm publish", "typecheck": "tsc --noEmit", "git-hook-init": "git init && husky install && husky add .husky/pre-commit 'npm run lint && npm run typecheck'" },