Skip to content

Conversation

vaynevayne
Copy link
Contributor

@vaynevayne vaynevayne commented Mar 19, 2024

to resolve #5570

@@ -28,7 +28,7 @@
"build": "npm run doc && dumi build",
"deploy": "npm run build && gh-pages -d dist",
"dev": "dumi dev",
"doc": "npm run doc:prepare && ts-node ./scripts/generate-api.ts && ts-node ./scripts/generate-intl.ts",
"doc": "npm run doc:prepare && tsx ./scripts/generate-api.ts && tsx ./scripts/generate-intl.ts",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个当前问题是什么?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个解法使用修改配置的方式可以解决吗?

{
  "compilerOptions": {
    "esModuleInterop": true,
  }
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不行 问题也在

@hustcc
Copy link
Member

hustcc commented Mar 20, 2024

CONTRIBUTING.en-US.md 文档中也有类似的拼写错误,也在这个 PR 中帮忙处理掉吧,感谢。

@vaynevayne
Copy link
Contributor Author

@Aarebecca
Copy link
Contributor

Aarebecca commented Mar 21, 2024

关于使用 tsx 不会得到合并的原因:

  • tsxts-node 一样需要用户全局安装
  • 目前 g6 中没有 tsx 相关的代码,因此是没有必要的

@hustcc
Copy link
Member

hustcc commented Mar 21, 2024

把 tsx 相关的变动先去掉吧,先把文档问题合并掉,tsx 部分可以继续讨论。

@vaynevayne
Copy link
Contributor Author

把 tsx 相关的变动先去掉吧,先把文档问题合并掉,tsx 部分可以继续讨论。

hao

@hustcc hustcc merged commit 09cfa1d into antvis:v5 Mar 21, 2024
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.

site包 pnpm run build 报错 .ts 扩展不支持
3 participants