From 9b3027b9dda5313e6bf46427709bc9c981d5379f Mon Sep 17 00:00:00 2001 From: luke358 Date: Mon, 22 Jan 2024 19:13:11 +0800 Subject: [PATCH] chore: dev --- components.d.ts | 4 +--- package.json | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/components.d.ts b/components.d.ts index f9e1f1e..4627702 100644 --- a/components.d.ts +++ b/components.d.ts @@ -3,11 +3,9 @@ // @ts-nocheck // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 -import '@vue/runtime-core' - export {} -declare module '@vue/runtime-core' { +declare module 'vue' { export interface GlobalComponents { AddServiceDrawer: typeof import('./src/components/AddServiceDrawer.vue')['default'] ContextMenuPopover: typeof import('./src/components/ContextMenuPopover.vue')['default'] diff --git a/package.json b/package.json index 73cf7bc..2c85a7a 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ } }, "scripts": { - "dev": "vite --port 5555", + "dev": "npm run recipe && vite --port 5555", "build": "vue-tsc --noEmit && vite build && electron-builder", "recipe": "esbuild ./preload/recipe.ts --bundle --packages=external --outfile=./preload/recipe.js --format=cjs", "preview": "vite preview",