From 7c5023d16a152f566b400815b6b08e249a99477d Mon Sep 17 00:00:00 2001 From: zhangqingwu <18656007202@163.com> Date: Wed, 16 Nov 2022 16:40:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20update=20scripts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/uikit/config/rollup.config.mjs | 10 +++++++++- packages/uikit/package.json | 7 +++---- packages/uikit/src/components/FInput/FInput.tsx | 2 +- yarn.lock | 5 +++++ 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/packages/uikit/config/rollup.config.mjs b/packages/uikit/config/rollup.config.mjs index e8a86993..c5fe4502 100644 --- a/packages/uikit/config/rollup.config.mjs +++ b/packages/uikit/config/rollup.config.mjs @@ -22,7 +22,15 @@ export default { sourcemap: true, }, ], - external: ["vue", /^vuetify/, "@foxone/icons"], + external: [ + "vue", + /^vuetify/, + /^@foxone\/util/, + "@foxone/icons", + "axios", + "qrcode", + "bignumber.js", + ], plugins: [ nodeResolve({ extensions }), babel({ diff --git a/packages/uikit/package.json b/packages/uikit/package.json index a884f118..3d7f135b 100644 --- a/packages/uikit/package.json +++ b/packages/uikit/package.json @@ -8,20 +8,19 @@ "scripts": { "dev": "start-storybook -p 6006", "doc": "build-storybook", - "build": "yarn build:dist && yarn build:lib && yarn build:types", + "build": "yarn build:lib && yarn build:types", "build:dist": "rm -rf dist && rollup --config config/rollup.config.mjs", - "build:lib-2": "babel src --out-dir lib --extensions \".ts\",\".tsx\"", "build:lib": "rm -rf lib && gulp --gulpfile config/gulp.config.js", "build:types": "tsc --pretty --emitDeclarationOnly -p tsconfig.lib.json" }, "dependencies": { + "@foxone/utils": "^0.2.26", "qrcode": "^1.5.1", "tsconfig": "^7.0.0" }, "exports": { ".": { - "import": "./lib/index.js", - "require": "./dist/index.js" + "import": "./lib/index.js" }, "./sass/main": "./src/styles/_main.scss", "./sass/setting": "./src/styles/_settings.scss", diff --git a/packages/uikit/src/components/FInput/FInput.tsx b/packages/uikit/src/components/FInput/FInput.tsx index 7d31787e..f5799efc 100644 --- a/packages/uikit/src/components/FInput/FInput.tsx +++ b/packages/uikit/src/components/FInput/FInput.tsx @@ -1,5 +1,5 @@ import { defineComponent, ref } from "vue"; -import { VTextField } from "vuetify/components/VTextField"; +import { VTextField } from "vuetify/components"; import { numberInput } from "../../utils"; import "./FInput.scss"; diff --git a/yarn.lock b/yarn.lock index 8f3f2da1..2d4c5449 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16246,6 +16246,11 @@ typescript@^4.2.4, typescript@^4.8.4: resolved "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6" integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ== +typescript@^4.9.3: + version "4.9.3" + resolved "https://registry.npmjs.org/typescript/-/typescript-4.9.3.tgz#3aea307c1746b8c384435d8ac36b8a2e580d85db" + integrity sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA== + uglify-js@^3.1.4: version "3.17.4" resolved "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz#61678cf5fa3f5b7eb789bb345df29afb8257c22c"