chore: update workspace scripts
This commit is contained in:
parent
b6cad231c3
commit
0555154ea6
3 changed files with 4 additions and 5 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
}
|
||||
Loading…
Reference in a new issue