Skip to content

Commit b82b4c4

Browse files
committed
chore: update
1 parent 186dd14 commit b82b4c4

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"require": "./dist/index.js",
2323
"import": "./dist/index.mjs"
2424
},
25-
"./style.css": "./dist/index.css"
25+
"./style.css": "./dist/style.css"
2626
},
2727
"main": "./dist/index.js",
2828
"module": "./dist/index.mjs",
@@ -42,7 +42,9 @@
4242
"node": ">=14.6"
4343
},
4444
"scripts": {
45-
"build": "tsup ./src/index.ts ./src/index.css --format cjs,esm --dts --clean --minify --external vue",
45+
"build": "npm run build:js && npm run build:css",
46+
"build:js": "tsup ./src/index.ts --format cjs,esm --dts --clean --minify --external vue",
47+
"build:css": "tsup ./src/style.css --minify",
4648
"dev": "npm run build -- --watch src",
4749
"play": "pnpm run -C playground dev",
4850
"play:build": "pnpm run -C playground build",

playground/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import App from './App.vue'
55
import '@unocss/reset/tailwind.css'
66
import './styles/main.css'
77
import 'uno.css'
8-
import 'vue3-right-click-menu/style.css'
8+
import '../../src/style.css'
99

1010
const app = createApp(App)
1111
const router = createRouter({

playground/src/pages/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { RightClick } from 'vue3-right-click-menu'
2+
import { RightClick } from '../../../src'
33
const menu = [
44
{ label: '新增', name: 'simon' },
55
{ label: '编辑', name: 'simon' },

playground/vite.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ export default defineConfig({
4343
// see unocss.config.ts for config
4444
Unocss(),
4545
],
46-
4746
// https://github.com/vitest-dev/vitest
4847
test: {
4948
environment: 'jsdom',
File renamed without changes.

0 commit comments

Comments
 (0)