diff --git a/package.json b/package.json index 8554f4e..631ce4d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fesjs/traction-widget", - "version": "1.8.9", + "version": "1.8.10", "description": "集合大型中台项目使用到的通用组件和工具函数", "scripts": { "docs:dev": "npm run build && vitepress dev docs", diff --git a/packages/traction-widget/package.json b/packages/traction-widget/package.json index 5ea72f2..683225b 100644 --- a/packages/traction-widget/package.json +++ b/packages/traction-widget/package.json @@ -1,6 +1,6 @@ { "name": "@fesjs/traction-widget", - "version": "1.8.9", + "version": "1.8.10", "description": "集合大型中台项目使用到的通用组件和工具函数", "main": "dist/traction-widget.min.js", "module": "es/components/index.js", diff --git a/scripts/build-umd.js b/scripts/build-umd.js index 3d02a67..42e627c 100644 --- a/scripts/build-umd.js +++ b/scripts/build-umd.js @@ -6,6 +6,7 @@ const replace = require('@rollup/plugin-replace'); const { minify } = require('terser'); const { getRollupConfig, OUTPUT_DIR } = require('./build-shard'); +const SOURCE = path.join(__dirname, '../packages/traction-widget/components'); fse.mkdirsSync(OUTPUT_DIR); @@ -36,6 +37,7 @@ async function compiler () { path.join(OUTPUT_DIR, 'traction-widget.min.js'), compressResult.code ); + fse.copySync(path.join(SOURCE, 'assets'), path.join(OUTPUT_DIR, 'assets'), { overwrite: true }); } compiler();