Skip to content

Commit 71a5046

Browse files
committed
feat: update package export
1 parent 680c044 commit 71a5046

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

docs/examples/say-hello/basic.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<script setup>
2-
import { SayHello } from 'starter-lib-vue3'
3-
import 'starter-lib-vue3/style.css'
2+
import { StSayHello } from 'starter-lib-vue3'
43
</script>
54

65
<template>
7-
<SayHello name="Kieran" />
6+
<StSayHello name="Kieran" />
87
</template>

package.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,18 @@
2525
],
2626
"exports": {
2727
".": {
28-
"types": "./dist/index.d.ts",
29-
"import": "./dist/index.js",
30-
"require": "./dist/index.cjs"
28+
"types": "./dist/es/index.d.ts",
29+
"import": "./dist/es/index.js",
30+
"require": "./dist/lib/index.cjs"
3131
},
3232
"./*": "./*",
33-
"./volar": "./dist/volar.d.ts",
34-
"./style.css": "./dist/style.css"
33+
"./volar": "./dist/volar.d.ts"
3534
},
36-
"main": "dist/index.cjs",
37-
"module": "dist/index.js",
38-
"unpkg": "dist/index.global.js",
39-
"jsdelivr": "dist/index.global.js",
40-
"types": "dist/index.d.ts",
35+
"main": "dist/lib/index.cjs",
36+
"module": "dist/es/index.js",
37+
"unpkg": "dist/iife/index.js",
38+
"jsdelivr": "dist/iife/index.js",
39+
"types": "dist/es/index.d.ts",
4140
"files": [
4241
"dist"
4342
],

src/components.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
import SayHello from './say-hello'
1+
import StSayHello from './say-hello'
2+
3+
export * from './say-hello'
24

35
export const components = [
4-
SayHello,
6+
StSayHello,
57
]
68

79
export default components

0 commit comments

Comments
 (0)