Skip to content

fix(@tarojs/cli-convertor): 修复运行 npx @tarojs/cli-convertor 转换小程序时的报错:“taroize is not a function” (#18327)#18379

Merged
yoyo837 merged 4 commits intoNervJS:mainfrom
iFiring:main
Sep 22, 2025

Conversation

@iFiring
Copy link
Copy Markdown
Contributor

@iFiring iFiring commented Sep 19, 2025

这个 PR 做了什么? (简要描述所做更改)

import * as taroize from '@tarojs/taroize' 修改为 import taroize from '@tarojs/taroize'

修复一次破坏性改动导致的bug:
统一各包的构建产物目录为 dist,并调整主入口、类型声明等相关路径,简化包发布内容

相关issue:
微信小程序转换报错 #18327

这个 PR 是什么类型? (至少选择一个)

  • 错误修复 (Bugfix) issue: fix #
  • 新功能 (Feature)
  • 代码重构 (Refactor)
  • TypeScript 类型定义修改 (Types)
  • 文档修改 (Docs)
  • 代码风格更新 (Code style update)
  • 构建优化 (Chore)
  • 其他,请描述 (Other, please describe):

这个 PR 涉及以下平台:

  • 所有平台
  • Web 端(H5)
  • 移动端(React-Native)
  • 鸿蒙(Harmony)
  • 鸿蒙容器(Harmony Hybrid)
  • ASCF 元服务
  • 快应用(QuickApp)
  • 所有小程序
  • 微信小程序
  • 企业微信小程序
  • 京东小程序
  • 百度小程序
  • 支付宝小程序
  • 支付宝 IOT 小程序
  • 钉钉小程序
  • QQ 小程序
  • 飞书小程序
  • 快手小程序
  • 头条小程序

@yoyo837 yoyo837 added this to the 4.1.7 milestone Sep 20, 2025
@yoyo837 yoyo837 linked an issue Sep 20, 2025 that may be closed by this pull request
21 tasks
@yoyo837
Copy link
Copy Markdown
Contributor

yoyo837 commented Sep 20, 2025

更新下快照

@iFiring
Copy link
Copy Markdown
Contributor Author

iFiring commented Sep 20, 2025

更新下快照

done

@iFiring iFiring mentioned this pull request Sep 20, 2025
21 tasks
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.97%. Comparing base (2c55978) to head (798807a).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #18379      +/-   ##
==========================================
+ Coverage   55.05%   55.97%   +0.92%     
==========================================
  Files         416      416              
  Lines       21560    21560              
  Branches     5269     5300      +31     
==========================================
+ Hits        11870    12069     +199     
+ Misses       8167     7875     -292     
- Partials     1523     1616      +93     
Flag Coverage Δ
taro-cli 72.85% <ø> (ø)
taro-runtime 59.87% <ø> (ø)
taro-web 53.13% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
packages/taro-cli-convertor/src/index.ts 86.61% <100.00%> (+14.14%) ⬆️

... and 43 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

微信小程序转换报错

2 participants