Skip to content

Commit 83b4261

Browse files
farnabazTahul
andauthored
fix(module): only parse global components (#52)
Co-authored-by: Yaël Guilloux <[email protected]>
1 parent f3411cc commit 83b4261

File tree

8 files changed

+2544
-2053
lines changed

8 files changed

+2544
-2053
lines changed

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,22 @@
2525
"release": "pnpm test && release-it"
2626
},
2727
"dependencies": {
28-
"@nuxt/kit": "^3.0.0",
28+
"@nuxt/kit": "^3.3.1",
2929
"scule": "^1.0.0",
30-
"typescript": "^4.9.4",
31-
"vue-component-meta": "^1.0.18"
30+
"typescript": "^5.0.2",
31+
"vue-component-meta": "^1.2.0"
3232
},
3333
"devDependencies": {
34-
"@iconify/vue": "^4.0.2",
35-
"@nuxt/content": "^2.3.0",
34+
"@iconify/vue": "^4.1.0",
35+
"@nuxt/content": "^2.5.2",
3636
"@nuxt/module-builder": "latest",
37-
"@nuxt/test-utils": "^3.0.0",
37+
"@nuxt/test-utils": "^3.3.1",
3838
"@nuxtjs/eslint-config-typescript": "latest",
3939
"eslint": "latest",
40-
"nuxt": "^3.0.0",
41-
"release-it": "^15.6.0",
42-
"vitest": "^0.26.2",
43-
"vue": "^3.2.45"
40+
"nuxt": "^3.3.1",
41+
"release-it": "^15.9.1",
42+
"vitest": "^0.29.7",
43+
"vue": "^3.2.47"
4444
},
4545
"build": {
4646
"entries": [
Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,44 @@
11
<template>
22
<div>
33
<hr>
4-
I am global
4+
TestComponent
55
<hr>
6+
<slot />
7+
<slot name="nuxt" />
68
</div>
79
</template>
10+
11+
<script setup>
12+
defineProps({
13+
/**
14+
* The foo property.
15+
*
16+
* @since v1.0.0
17+
*/
18+
foo: {
19+
type: String,
20+
default: 'Hello'
21+
},
22+
/**
23+
* The hello property.
24+
*
25+
* @since v1.0.0
26+
*/
27+
hello: {
28+
type: String,
29+
default: 'Hello'
30+
},
31+
booleanProp: {
32+
type: Boolean,
33+
default: false
34+
},
35+
numberProp: {
36+
type: Number,
37+
default: 1.3
38+
}
39+
})
40+
41+
const emit = defineEmits(['change', 'delete'])
42+
43+
const test = {}
44+
</script>

0 commit comments

Comments
 (0)