Skip to content

Commit 8b9d00f

Browse files
committed
fix: build error
1 parent 21502a6 commit 8b9d00f

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
"noopener",
100100
"noreferrer",
101101
"nums",
102+
"pico",
102103
"picocolors",
103104
"pinia",
104105
"pnpm",

build/plugins/info.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import dayjs from 'dayjs'
22
import duration from 'dayjs/plugin/duration'
3-
import { bold, green } from 'picocolors'
3+
import pico from 'picocolors'
44
import { getPackageSize } from '../utils'
55
import type { Plugin } from 'vite'
66
import type { Dayjs } from 'dayjs'
@@ -26,8 +26,8 @@ export function viteBuildInfo(): Plugin {
2626
endTime = dayjs(new Date())
2727
getPackageSize(outDir, (size: string) => {
2828
console.log(
29-
bold(
30-
green(
29+
pico.bold(
30+
pico.green(
3131
`🎉恭喜打包完成(总用时${dayjs
3232
.duration(endTime.diff(startTime))
3333
.format('mm分ss秒')},打包后的大小为${size})`,

types/auto-imports.d.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ declare global {
4343
const h: typeof import('vue')['h']
4444
const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch']
4545
const inject: typeof import('vue')['inject']
46+
const injectLocal: typeof import('@vueuse/core')['injectLocal']
4647
const isDefined: typeof import('@vueuse/core')['isDefined']
4748
const isProxy: typeof import('vue')['isProxy']
4849
const isReactive: typeof import('vue')['isReactive']
@@ -77,6 +78,7 @@ declare global {
7778
const onUpdated: typeof import('vue')['onUpdated']
7879
const pausableWatch: typeof import('@vueuse/core')['pausableWatch']
7980
const provide: typeof import('vue')['provide']
81+
const provideLocal: typeof import('@vueuse/core')['provideLocal']
8082
const reactify: typeof import('@vueuse/core')['reactify']
8183
const reactifyObject: typeof import('@vueuse/core')['reactifyObject']
8284
const reactive: typeof import('vue')['reactive']
@@ -145,6 +147,7 @@ declare global {
145147
const useBrowserLocation: typeof import('@vueuse/core')['useBrowserLocation']
146148
const useCached: typeof import('@vueuse/core')['useCached']
147149
const useClipboard: typeof import('@vueuse/core')['useClipboard']
150+
const useClipboardItems: typeof import('@vueuse/core')['useClipboardItems']
148151
const useCloned: typeof import('@vueuse/core')['useCloned']
149152
const useColorMode: typeof import('@vueuse/core')['useColorMode']
150153
const useConfirmDialog: typeof import('@vueuse/core')['useConfirmDialog']
@@ -305,7 +308,7 @@ declare global {
305308
// for type re-export
306309
declare global {
307310
// @ts-ignore
308-
export type { Component, ComponentPublicInstance, ComputedRef, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
311+
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
309312
}
310313
// for vue template auto import
311314
import { UnwrapRef } from 'vue'
@@ -349,6 +352,7 @@ declare module 'vue' {
349352
readonly h: UnwrapRef<typeof import('vue')['h']>
350353
readonly ignorableWatch: UnwrapRef<typeof import('@vueuse/core')['ignorableWatch']>
351354
readonly inject: UnwrapRef<typeof import('vue')['inject']>
355+
readonly injectLocal: UnwrapRef<typeof import('@vueuse/core')['injectLocal']>
352356
readonly isDefined: UnwrapRef<typeof import('@vueuse/core')['isDefined']>
353357
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
354358
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
@@ -383,6 +387,7 @@ declare module 'vue' {
383387
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
384388
readonly pausableWatch: UnwrapRef<typeof import('@vueuse/core')['pausableWatch']>
385389
readonly provide: UnwrapRef<typeof import('vue')['provide']>
390+
readonly provideLocal: UnwrapRef<typeof import('@vueuse/core')['provideLocal']>
386391
readonly reactify: UnwrapRef<typeof import('@vueuse/core')['reactify']>
387392
readonly reactifyObject: UnwrapRef<typeof import('@vueuse/core')['reactifyObject']>
388393
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
@@ -451,6 +456,7 @@ declare module 'vue' {
451456
readonly useBrowserLocation: UnwrapRef<typeof import('@vueuse/core')['useBrowserLocation']>
452457
readonly useCached: UnwrapRef<typeof import('@vueuse/core')['useCached']>
453458
readonly useClipboard: UnwrapRef<typeof import('@vueuse/core')['useClipboard']>
459+
readonly useClipboardItems: UnwrapRef<typeof import('@vueuse/core')['useClipboardItems']>
454460
readonly useCloned: UnwrapRef<typeof import('@vueuse/core')['useCloned']>
455461
readonly useColorMode: UnwrapRef<typeof import('@vueuse/core')['useColorMode']>
456462
readonly useConfirmDialog: UnwrapRef<typeof import('@vueuse/core')['useConfirmDialog']>
@@ -649,6 +655,7 @@ declare module '@vue/runtime-core' {
649655
readonly h: UnwrapRef<typeof import('vue')['h']>
650656
readonly ignorableWatch: UnwrapRef<typeof import('@vueuse/core')['ignorableWatch']>
651657
readonly inject: UnwrapRef<typeof import('vue')['inject']>
658+
readonly injectLocal: UnwrapRef<typeof import('@vueuse/core')['injectLocal']>
652659
readonly isDefined: UnwrapRef<typeof import('@vueuse/core')['isDefined']>
653660
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
654661
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
@@ -683,6 +690,7 @@ declare module '@vue/runtime-core' {
683690
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
684691
readonly pausableWatch: UnwrapRef<typeof import('@vueuse/core')['pausableWatch']>
685692
readonly provide: UnwrapRef<typeof import('vue')['provide']>
693+
readonly provideLocal: UnwrapRef<typeof import('@vueuse/core')['provideLocal']>
686694
readonly reactify: UnwrapRef<typeof import('@vueuse/core')['reactify']>
687695
readonly reactifyObject: UnwrapRef<typeof import('@vueuse/core')['reactifyObject']>
688696
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
@@ -751,6 +759,7 @@ declare module '@vue/runtime-core' {
751759
readonly useBrowserLocation: UnwrapRef<typeof import('@vueuse/core')['useBrowserLocation']>
752760
readonly useCached: UnwrapRef<typeof import('@vueuse/core')['useCached']>
753761
readonly useClipboard: UnwrapRef<typeof import('@vueuse/core')['useClipboard']>
762+
readonly useClipboardItems: UnwrapRef<typeof import('@vueuse/core')['useClipboardItems']>
754763
readonly useCloned: UnwrapRef<typeof import('@vueuse/core')['useCloned']>
755764
readonly useColorMode: UnwrapRef<typeof import('@vueuse/core')['useColorMode']>
756765
readonly useConfirmDialog: UnwrapRef<typeof import('@vueuse/core')['useConfirmDialog']>

0 commit comments

Comments
 (0)