From 0555154ea69a05eef60fb41b40f0e409dc12e544 Mon Sep 17 00:00:00 2001 From: Ayo Date: Fri, 3 Apr 2026 15:31:20 +0200 Subject: [PATCH] chore: update workspace scripts --- lib/package.json | 2 +- package.json | 5 ++--- lib/vite.config.js => vite-lib.config.js | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) rename lib/vite.config.js => vite-lib.config.js (74%) diff --git a/lib/package.json b/lib/package.json index 328308e..d611a74 100644 --- a/lib/package.json +++ b/lib/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/ayo-run/mnswpr" }, "scripts": { - "release": "bumpp && node ../scripts/release.js && npm publish", + "release": "bumpp && node ../scripts/release.js", "build:release": "npm run build:lib && npm run release" }, "main": "mnswpr.js", diff --git a/package.json b/package.json index 1cef049..bbfc5d3 100644 --- a/package.json +++ b/package.json @@ -16,9 +16,8 @@ "build": "vite build app", "preview": "vite preview app", "build:preview": "npm run build && npm run preview", - "build:lib": "vite build lib", - "release": "bumpp && node scripts/release.js && npm publish", - "build:release": "npm run build:lib && npm run release", + "build:lib": "vite build lib --config vite-lib.config.js", + "release": "pnpm run build:lib && pnpm -F @ayo-run/mnswpr release", "prepare": "husky", "lint": "eslint .", "lint:fix": "eslint . --fix" diff --git a/lib/vite.config.js b/vite-lib.config.js similarity index 74% rename from lib/vite.config.js rename to vite-lib.config.js index 9511e4a..0802733 100644 --- a/lib/vite.config.js +++ b/vite-lib.config.js @@ -4,7 +4,7 @@ import { defineConfig } from 'vite' export default defineConfig({ build: { lib: { - entry: resolve(import.meta.dirname, './mnswpr.js'), + entry: resolve(import.meta.dirname, './lib/mnswpr.js'), name: 'mnswpr', fileName: 'mnswpr' }