[heft] heft-typescript-plugin - error with an array at the extends property
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- typescript
- 领域
- build-system
调研方向
Start with heft-plugins/heft-typescript-plugin/src/schemas/typescript.schema.json and compare its extends definition with the TypeScript tsconfig schema linked in the issue. Reproduce the failure using a Heft TypeScript project with an extends array, then update the schema so the documented configuration is accepted and confirm the project builds successfully.
由索引模型根据 Issue 内容生成。
描述
Summary
I am trying to extend my tsconfig.json with a rig config and a custom config from a multi project repo. So my tsconfig.json looks something like this:
{
"extends": [
"./node_modules/@microsoft/spfx-web-build-rig/profiles/default/tsconfig-base.json",
"../../tsconfig.base.json"
]
}
When I am trying to build the project, this fails somewhere in the heft-typescript-plugin:
The schema for TypeScript allows this syntax. The schema in the heft-typescript-plugin does not.
Repro steps
I am working with a SPFx setup which is using heft since version 1.22.
So the easiest way would be to
- Create a SPFx project
- Change the tsconfig to include an array
But a simple heft typescript project should work too.
Details
What do you think is the cause of this problem? see above
How do you think we should fix this? extend the schema for allowing arrays
Standard questions
Please answer these questions to help us investigate your issue more quickly:
| Question | Answer |
|---|---|
@rushstack/heft version? |
1.1.2 |
| Operating system? | windows / linux (wsl) |
| Would you consider contributing a PR? | Maybe |
Node.js version (node -v)? |
22.17.0 |
- 主要语言
- TypeScript
- 星标
- 6.5k
- 派生
- 708
- 平均合并
- 4 天 7 小时
- 30 天内合并 PR
- 61
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/rushstack 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
microsoft/rushstack#5971 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
microsoft/rushstack#5902 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
microsoft/rushstack#5839 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
microsoft/rushstack#5683 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
维护者通常 1 天内回复
查看 microsoft/rushstack 的全部 Issue
相似的 Issue
-
module-request
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
appandflow/stim#1604 · 1 条评论 ·
维护者通常 1 天内回复
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
难度 1/5 1 小时以内 新手友好度 92/100
lingdojo/kana-dojo#31060 · 1 条评论 · 5 个 reaction ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
paperclipai/paperclip#14173 ·
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复