diff --git a/build/index.ts b/build/index.ts index d667010..0e678f2 100644 --- a/build/index.ts +++ b/build/index.ts @@ -4,11 +4,11 @@ import pkg from "../package.json" import { writeFileSync, readFileSync, existsSync, mkdirSync } from "fs"; // 创建dist 文件夹 -if(!existsSync(path.resolve(__dirname, "../dist"))){ +if (!existsSync(path.resolve(__dirname, "../dist"))) { mkdirSync(path.resolve(__dirname, "../dist")) } -const libs = ["axios", "echarts", "crud", "vueComponent", "pdf"] +const libs = ["axios", "echarts", "crud", "vueComponent", "pdf", "xlsx"] const _exports = {} @@ -21,12 +21,13 @@ for (const lib of libs) { } ( - async function(){ + async function () { await build({ configFile: path.join(__dirname, `./vite/axios.config.ts`) }) await build({ configFile: path.join(__dirname, `./vite/echarts.config.ts`) }) await build({ configFile: path.join(__dirname, `./vite/crud.config.ts`) }) await build({ configFile: path.join(__dirname, `./vite/vueComponent.config.ts`) }) await build({ configFile: path.join(__dirname, `./vite/pdf.config.ts`) }) + await build({ configFile: path.join(__dirname, `./vite/xlsx.config.ts`) }) } )() // -------------------------------------------------- diff --git a/example/components.d.ts b/example/components.d.ts index f7dc7f2..73e41ae 100644 --- a/example/components.d.ts +++ b/example/components.d.ts @@ -1,7 +1,6 @@ // generated by unplugin-vue-components // We suggest you to commit this file into source control // Read more: https://github.com/vuejs/core/pull/3399 -import '@vue/runtime-core' export {} @@ -21,7 +20,7 @@ declare module '@vue/runtime-core' { AMenuItem: typeof import('ant-design-vue/es')['MenuItem'] AMenuItemGroup: typeof import('ant-design-vue/es')['MenuItemGroup'] ASpace: typeof import('ant-design-vue/es')['Space'] - CodeView: typeof import('./src/components/CodeView.vue')['default'] + CodeView: typeof import("./src/components/CodeView")['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] } diff --git a/package.json b/package.json index c4ba399..b196dbd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "howuse", - "version": "0.0.5-beta.2", + "version": "0.0.5-beta.3", "description": "a simple Vue Composition utils", "main": "dist/index.js", "scripts": { @@ -80,4 +80,4 @@ "lodash-es": "^4.17.21", "mitt": "^3.0.0" } -} +} \ No newline at end of file diff --git a/src/xlsx/tools/xlsx-json.ts b/src/xlsx/tools/xlsx-json.ts index 2099227..a36bc69 100644 --- a/src/xlsx/tools/xlsx-json.ts +++ b/src/xlsx/tools/xlsx-json.ts @@ -1,4 +1,4 @@ -import { createDef } from "howuse/utils/util" +import { createDef } from "../../utils/util" import { utils, writeFile } from "xlsx" import { readXlsx } from "./xlsx" diff --git a/src/xlsx/tools/xlsx-table.ts b/src/xlsx/tools/xlsx-table.ts index b2b585f..9e38418 100644 --- a/src/xlsx/tools/xlsx-table.ts +++ b/src/xlsx/tools/xlsx-table.ts @@ -1,4 +1,4 @@ -import { createDef } from "howuse/utils/util"; +import { createDef } from "../../utils/util" import { type Table2SheetOpts, utils, writeFile } from "xlsx";