Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(internal/utils): path parsing error under Windows #5089

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

RSS1102
Copy link
Collaborator

@RSS1102 RSS1102 commented Feb 25, 2025

fix: toolchain pre-build error when pnpm i on windows
fix: can not find demo problem of md file missing in site
perf: remove build product types from repo

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

💡 需求背景和解决方案

  1. 在 windows 环境中,使用 [email protected][email protected],执行 pnpm i 产生错误
17404662533505

通过更改为tsconfig.ts 配置文件后出现

image

则修改了 rollup.config.ts 配置文件


  1. 发现 internal\utils\types 这个文件是被打包生成的
  "scripts": {
    "build:tsc": "tsc  .....  --outDir types  ..... './src/*.ts' index.ts"
  },

则将其打包在 dist 下,以方便产物忽略。

📝 更新日志

  • fix(internal/utils): 修复 windows 下 pnpm i 时工具链预构建错误

  • fix(internal/utils): 使用 posix.resolve 解决跨平台路径兼容问题

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

perf: remove build product types from repo
Copy link

pkg-pr-new bot commented Feb 25, 2025

Open in Stackblitz

npm i https://pkg.pr.new/tdesign-vue-next@5089

commit: 68b054f

Copy link
Contributor

github-actions bot commented Feb 25, 2025

完成

remove: internal\utils\types  文件,将其移动到 dist\{es/cjs}\types
@RSS1102 RSS1102 changed the title fix(internal/utils): toolchain pre-build error when pnpm i on windows fix(internal/utils): path parsing error under Windows Feb 25, 2025
@Wesley-0808
Copy link
Collaborator

我这边跑没问题
image

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