Skip to content

Commit

Permalink
fixbug: 修改组件库打包路径
Browse files Browse the repository at this point in the history
  • Loading branch information
jsxiaosi committed Jan 12, 2022
1 parent 8e4cc2e commit d4ee1ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/rollup.config.dts.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import typescript from 'rollup-plugin-typescript2'
import vue from 'rollup-plugin-vue' // 处理vue文件
import { resolve } from 'path'
const input = resolve(__dirname, '../packages/components') // 入口文件
const output = resolve(__dirname, '../lib/components') // 输出文件
const output = resolve(__dirname, '../lib') // 输出文件
const config = [
{
input: `${input}/index.ts`,
Expand Down
2 changes: 1 addition & 1 deletion build/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import vue from 'rollup-plugin-vue' // 处理vue文件
import { readdirSync } from 'fs' // 写文件
import { resolve } from 'path'
const input = resolve(__dirname, '../packages/components') // 入口文件
const output = resolve(__dirname, '../lib/components') // 输出文件
const output = resolve(__dirname, '../lib') // 输出文件
const config = readdirSync(input)
.filter((name) => !['theme-default', 'index.ts', 'types.ts'].includes(name)) //过滤当前目录下的目录和文件
.map((name) => ({
Expand Down

0 comments on commit d4ee1ae

Please sign in to comment.