Skip to content

Commit f4c3e3a

Browse files
committed
tweak pnpm settings and update declare module
1 parent edb568f commit f4c3e3a

File tree

3 files changed

+24
-9
lines changed

3 files changed

+24
-9
lines changed

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
shamefully-hoist=true
1+
public-hoist-pattern[]='@vue/*'

packages/vue-i18n-core/src/composer.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,15 @@ import {
5656
import { deepCopy, getLocaleMessages, getComponentOptions } from './utils'
5757
import { VERSION } from './misc'
5858

59-
import type { ComponentInternalInstance, VNode, VNodeArrayChildren } from 'vue'
60-
import type { WritableComputedRef, ComputedRef } from '@vue/reactivity'
59+
import type {
60+
ComponentInternalInstance,
61+
VNode,
62+
VNodeArrayChildren,
63+
WritableComputedRef,
64+
ComputedRef,
65+
RendererNode,
66+
RendererElement
67+
} from 'vue'
6168
import type {
6269
Path,
6370
MessageResolver,
@@ -103,7 +110,7 @@ import type { VueDevToolsEmitter } from '@intlify/vue-devtools'
103110
import { isLegacyVueI18n } from './utils'
104111

105112
// extend VNode interface
106-
declare module '@vue/runtime-core' {
113+
declare module 'vue' {
107114
// eslint-disable-next-line @typescript-eslint/no-unused-vars
108115
interface VNode<HostNode = RendererNode, HostElement = RendererElement> {
109116
toString: () => string // mark for vue-i18n message runtime

pnpm-lock.yaml

Lines changed: 13 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)