From 974244506c6c3b42b6bbfadf887c4559384c0ca5 Mon Sep 17 00:00:00 2001 From: arvinxx Date: Thu, 7 Apr 2022 09:49:40 +0800 Subject: [PATCH] =?UTF-8?q?:wrench:=20chore:=20=E6=9B=B4=E6=96=B0=E6=89=93?= =?UTF-8?q?=E5=8C=85=E9=85=8D=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/color-picker/package.json | 1 + packages/color-picker/webpack.config.js | 4 ++++ pnpm-lock.yaml | 2 ++ 3 files changed, 7 insertions(+) diff --git a/packages/color-picker/package.json b/packages/color-picker/package.json index 9dfff8a9..9ac4ec53 100644 --- a/packages/color-picker/package.json +++ b/packages/color-picker/package.json @@ -23,6 +23,7 @@ "clean": "rm -rf es lib dist build coverage .umi" }, "dependencies": { + "@arvinxu/layout-kit": "workspace:1.4.0", "chroma-js": "^2.1.1", "classnames": "^2.3.1", "copy-to-clipboard": "^3.3.1", diff --git a/packages/color-picker/webpack.config.js b/packages/color-picker/webpack.config.js index aea64a5e..aadf3177 100644 --- a/packages/color-picker/webpack.config.js +++ b/packages/color-picker/webpack.config.js @@ -3,6 +3,10 @@ const config = require('../../webpack.config'); module.exports = { ...config, + entry: { + index: './src/index.ts', + 'index.min': './src/index.ts', + }, output: { ...config.output, library: 'ColorPicker', diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1ce3ea1e..6b55786b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -170,6 +170,7 @@ importers: packages/color-picker: specifiers: + '@arvinxu/layout-kit': workspace:1.4.0 '@types/lodash': ^4.14.181 '@types/reactcss': ^1.2.6 chroma-js: ^2.1.1 @@ -181,6 +182,7 @@ importers: tinycolor2: ^1.4.2 zustand: ^3.7.1 dependencies: + '@arvinxu/layout-kit': link:../layout-kit chroma-js: 2.4.2 classnames: 2.3.1 copy-to-clipboard: 3.3.1