Skip to content

fix(create-rspress): add TypeScript dependency to templates - #3525

Merged
SoonIter merged 1 commit into
mainfrom
fix/create-rspress-typescript-dependency
Jul 16, 2026
Merged

SoonIter merged 1 commit into
mainfrom
fix/create-rspress-typescript-dependency

Conversation

@SoonIter

Copy link
Copy Markdown
Member

Summary

The initial create-rspress templates include TypeScript configuration but omit TypeScript itself, so generated projects do not have a local TypeScript toolchain. This PR adds TypeScript to the shared template devDependencies and covers the generated package manifest with a scaffold regression assertion.

Related Issue

N/A

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings July 16, 2026 07:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a scaffolding gap in packages/create-rspress where generated templates include TypeScript configuration but did not include typescript itself, leading to projects without a local TypeScript toolchain. It adds typescript to the shared template devDependencies and adds a regression assertion to ensure future scaffolds include it.

Changes:

  • Add typescript to template-common devDependencies so generated projects have a local TS toolchain.
  • Extend the scaffold regression test to assert typescript is present in the generated package.json.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/create-rspress/tests/cli-scaffold.test.ts Adds an assertion that the scaffolded project’s devDependencies includes typescript.
packages/create-rspress/template-common/package.json Adds typescript to shared template devDependencies used during scaffolding.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@SoonIter
SoonIter requested a review from Timeless0911 July 16, 2026 07:34
@SoonIter
SoonIter enabled auto-merge (squash) July 16, 2026 07:34
@SoonIter
SoonIter merged commit 5f9b42b into main Jul 16, 2026
7 checks passed
@SoonIter
SoonIter deleted the fix/create-rspress-typescript-dependency branch July 16, 2026 07:42
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.

3 participants