Skip to content

Commit

Permalink
fix: 图表打包指令修改
Browse files Browse the repository at this point in the history
  • Loading branch information
Davont committed Oct 23, 2024
1 parent 812c1ca commit 3d98049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internals/cli/src/commands/build/build-chart-theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const changeTheme = () => {
let content = fs.readFileSync(filePath, 'utf-8')

// 替换 process.env.VAR_NAME 为对应主题的值
content = content.replace(/option\.theme\s=\s'[a-zA-Z_]+'/g, `option.theme = '${theme}'`)
content = content.replace(/option\.theme\s=\s'[a-zA-Z_-]+'/g, `option.theme = '${theme}'`)

// 写入新内容到文件
fs.writeFileSync(filePath, content, 'utf-8')
Expand Down

0 comments on commit 3d98049

Please sign in to comment.