Skip to content

feat(typecheck): support ts projects - #928

Merged
danielroe merged 2 commits into
mainfrom
feat/typecheck
Jun 27, 2025
Merged

feat(typecheck): support ts projects#928
danielroe merged 2 commits into
mainfrom
feat/typecheck

Conversation

@danielroe

@danielroedanielroe commented Jun 27, 2025

Copy link
Copy Markdown
Member

🔗 Linked issue

resolves#323
resolves#926

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

with the upcoming v4 nuxt release, and nuxt/nuxt#32343, it's now possible to typecheck all three contexts (node/app/nitro) of a nuxt project with a single command.

Make sure you are running v4 alpha 3 or newer, and follow the steps here: https://nuxt.com/docs/4.x/getting-started/upgrade#typescript-configuration-changes

@github-actions

github-actionsBot commented Jun 27, 2025

Copy link
Copy Markdown
Contributor

Bundle Stats — nuxi size comparison

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files countTotal bundle size% Changed
585.46 MB → 5.46 MB (+833 B)+0.01%
Changeset
FileΔSize
node_modules/pkg-types/dist/index.mjs📈 +665 B (+25.13%)2.58 kB → 3.23 kB
src/commands/typecheck.ts📈 +168 B (+9.21%)1.78 kB → 1.95 kB
View detailed bundle breakdown

Added

AssetFile Size% Changed
shared/nuxi.ChutbOY_.mjs0 B → 25.34 kB (+25.34 kB)-
shared/nuxi.CbyJ5osS.mjs0 B → 13.45 kB (+13.45 kB)-
shared/nuxi.BEgIcxrx.mjs0 B → 4.06 kB (+4.06 kB)-

Removed

AssetFile Size% Changed
shared/nuxi.DRfkfsvA.mjs25.34 kB → 0 B (-25.34 kB)-100%
shared/nuxi.CvGKll9s.mjs12.8 kB → 0 B (-12.8 kB)-100%
shared/nuxi.pQKP70qC.mjs4.06 kB → 0 B (-4.06 kB)-100%

Bigger

AssetFile Size% Changed
chunks/typecheck.mjs1.78 kB → 1.95 kB (+168 B)+9.21%

Smaller

No assets were smaller

Unchanged

AssetFile Size% Changed
index.mjs247 B0%
dev/index.mjs896 B0%
chunks/add.mjs6.89 kB0%
chunks/analyze.mjs3.27 kB0%
chunks/build.mjs1.96 kB0%
chunks/cleanup.mjs471 B0%
chunks/dev-child.mjs780 B0%
chunks/dev.mjs27.24 kB0%
chunks/devtools.mjs764 B0%
chunks/generate.mjs472 B0%
chunks/info.mjs4.38 kB0%
chunks/init.mjs665.88 kB0%
chunks/index.mjs274 B0%
chunks/prepare.mjs984 B0%
chunks/preview.mjs3.5 kB0%
chunks/test.mjs1.16 kB0%
chunks/upgrade.mjs6.28 kB0%
chunks/satisfies.mjs116 B0%
chunks/main.mjs15.3 kB0%
chunks/prompt.mjs42.91 kB0%
chunks/jiti.mjs305 B0%
chunks/index2.mjs194.26 kB0%
chunks/index3.mjs71.97 kB0%
chunks/multipart-parser.mjs5.11 kB0%
chunks/add2.mjs12.08 kB0%
chunks/search.mjs45.85 kB0%
chunks/xdg-open.mjs25.32 kB0%
chunks/node.mjs145.67 kB0%
chunks/index4.mjs1.23 kB0%
chunks/index5.mjs5.85 kB0%
chunks/multipart-parser2.mjs4.58 kB0%
chunks/index6.mjs898.9 kB0%
shared/nuxi.DFIyyeua.mjs19.18 kB0%
shared/nuxi.Dh2ZdpAd.mjs57.22 kB0%
shared/nuxi.CTyTlDmo.mjs18.91 kB0%
shared/nuxi.DKSCJgDw.mjs792 B0%
shared/nuxi.BtDT0y5R.mjs294 B0%
shared/nuxi.Cm5apyPX.mjs2.57 kB0%
shared/nuxi.Db0skjkt.mjs915.23 kB0%
shared/nuxi.D2_bzAv0.mjs1.54 kB0%
shared/nuxi.DtQ0anGB.mjs4.07 kB0%
shared/nuxi.BSm0_9Hr.mjs107 B0%
shared/nuxi.DMyZmNH9.mjs836 B0%
shared/nuxi.dlymdmbV.mjs1.05 kB0%
shared/nuxi.BMIgfYLN.mjs15.26 kB0%
shared/nuxi.D5KtpA0t.mjs984 B0%
shared/nuxi.wc1-AWrO.mjs2.02 MB0%
shared/nuxi.BjhZEm2-.mjs1.75 kB0%
shared/nuxi.DU9QXUOf.mjs26.96 kB0%
shared/nuxi.BzZJv2UC.mjs123.67 kB0%
shared/nuxi.QWnQy_ku.mjs5.75 kB0%
shared/nuxi.BLb4POFS.mjs42.47 kB0%
shared/nuxi.Do0aYBCO.mjs5.46 kB0%
shared/nuxi.4t9faemh.mjs43.64 kB0%

@github-actions

github-actionsBot commented Jun 27, 2025

Copy link
Copy Markdown
Contributor

Bundle Stats — nuxt-cli size comparison

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files countTotal bundle size% Changed
3290.29 kB → 90.45 kB (+168 B)+0.18%
Changeset
FileΔSize
home/runner/work/cli/cli/packages/nuxi/src/commands/typecheck.ts📈 +168 B (+9.21%)1.78 kB → 1.95 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

AssetFile Size% Changed
chunks/typecheck.mjs1.78 kB → 1.95 kB (+168 B)+9.21%

Smaller

No assets were smaller

Unchanged

AssetFile Size% Changed
dev/index.mjs0 B0%
index.mjs236 B0%
chunks/index.mjs11.43 kB0%
chunks/analyze.mjs3.27 kB0%
chunks/cleanup.mjs471 B0%
chunks/dev-child.mjs815 B0%
chunks/dev.mjs10.09 kB0%
chunks/devtools.mjs763 B0%
chunks/generate.mjs472 B0%
chunks/build.mjs1.96 kB0%
chunks/info.mjs4.39 kB0%
chunks/index2.mjs273 B0%
chunks/add.mjs10.17 kB0%
chunks/search.mjs2.96 kB0%
chunks/prepare.mjs984 B0%
chunks/preview.mjs3.5 kB0%
chunks/test.mjs1.16 kB0%
chunks/upgrade.mjs6.28 kB0%
chunks/init.mjs9.85 kB0%
chunks/add2.mjs6.89 kB0%
shared/cli.B9AmABr3.mjs39 B0%
shared/cli.Dvb-m6bf.mjs792 B0%
shared/cli.BEUGgaW4.mjs294 B0%
shared/cli.BSm0_9Hr.mjs107 B0%
shared/cli.At9IMXtr.mjs1.23 kB0%
shared/cli.pLQ0oPGc.mjs836 B0%
shared/cli.BrKZotr9.mjs1.05 kB0%
shared/cli.P0cplz3M.mjs78 B0%
shared/cli.jA1DRKbi.mjs1.04 kB0%
shared/cli.BLVI_04J.mjs1.8 kB0%
shared/cli.yHMpVeHl.mjs5.42 kB0%

@github-actions

github-actionsBot commented Jun 27, 2025

Copy link
Copy Markdown
Contributor

Bundle Stats — create-nuxt size comparison

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files countTotal bundle size% Changed
495.88 MB → 5.89 MB (+835 B)+0.01%
Changeset
FileΔSize
node_modules/pkg-types/dist/index.mjs📈 +667 B (+25.17%)2.59 kB → 3.24 kB
home/runner/work/cli/cli/packages/nuxi/src/commands/typecheck.ts📈 +168 B (+9.21%)1.78 kB → 1.95 kB
View detailed bundle breakdown

Added

AssetFile Size% Changed
shared/create-nuxt.DThhmweU.mjs0 B → 2.02 MB (+2.02 MB)-
shared/create-nuxt.Drn2Mj-1.mjs0 B → 1.17 MB (+1.17 MB)-
shared/create-nuxt.B3STrcyM.mjs0 B → 964.43 kB (+964.43 kB)-
shared/create-nuxt.DX9WOARL.mjs0 B → 108.11 kB (+108.11 kB)-
shared/create-nuxt.C_rHbSeB.mjs0 B → 18.91 kB (+18.91 kB)-
shared/create-nuxt.CssRAp0b.mjs0 B → 15.27 kB (+15.27 kB)-
shared/create-nuxt.bOUheP_L.mjs0 B → 4.07 kB (+4.07 kB)-
shared/create-nuxt.BEnMq1Re.mjs0 B → 4.06 kB (+4.06 kB)-
shared/create-nuxt.CTZIz834.mjs0 B → 3.9 kB (+3.9 kB)-
shared/create-nuxt.CCE4xtFl.mjs0 B → 1.05 kB (+1.05 kB)-
shared/create-nuxt.DbuVfATn.mjs0 B → 836 B (+836 B)-
shared/create-nuxt.BTFclNRC.mjs0 B → 792 B (+792 B)-
shared/create-nuxt.Bls702kr.mjs0 B → 294 B (+294 B)-

Removed

AssetFile Size% Changed
shared/create-nuxt.Be-Kjlkt.mjs2.02 MB → 0 B (-2.02 MB)-100%
shared/create-nuxt.DzJUR39Z.mjs1.17 MB → 0 B (-1.17 MB)-100%
shared/create-nuxt.B71Ptx3t.mjs963.78 kB → 0 B (-963.78 kB)-100%
shared/create-nuxt.BHNcDoGS.mjs108.11 kB → 0 B (-108.11 kB)-100%
shared/create-nuxt.DWN1j4sa.mjs18.91 kB → 0 B (-18.91 kB)-100%
shared/create-nuxt.BGYNhO8g.mjs15.27 kB → 0 B (-15.27 kB)-100%
shared/create-nuxt.DgkXlNAq.mjs4.07 kB → 0 B (-4.07 kB)-100%
shared/create-nuxt.CNhf76gk.mjs4.06 kB → 0 B (-4.06 kB)-100%
shared/create-nuxt.BZEC9aF-.mjs3.9 kB → 0 B (-3.9 kB)-100%
shared/create-nuxt.0VtSoDeL.mjs1.05 kB → 0 B (-1.05 kB)-100%
shared/create-nuxt.DrUPYlIo.mjs836 B → 0 B (-836 B)-100%
shared/create-nuxt.GQ4ySyuL.mjs792 B → 0 B (-792 B)-100%
shared/create-nuxt.BzVnAJ6D.mjs294 B → 0 B (-294 B)-100%

Bigger

AssetFile Size% Changed
chunks/typecheck.mjs1.78 kB → 1.95 kB (+168 B)+9.21%

Smaller

No assets were smaller

Unchanged

AssetFile Size% Changed
index.mjs1.07 kB0%
chunks/multipart-parser.mjs5.11 kB0%
chunks/multipart-parser2.mjs4.58 kB0%
chunks/add.mjs6.89 kB0%
chunks/analyze.mjs3.27 kB0%
chunks/build.mjs1.96 kB0%
chunks/cleanup.mjs471 B0%
chunks/dev-child.mjs811 B0%
chunks/dev.mjs27.24 kB0%
chunks/devtools.mjs764 B0%
chunks/generate.mjs472 B0%
chunks/info.mjs4.38 kB0%
chunks/index.mjs274 B0%
chunks/prepare.mjs984 B0%
chunks/preview.mjs3.5 kB0%
chunks/test.mjs1.16 kB0%
chunks/upgrade.mjs6.28 kB0%
chunks/prompt.mjs42.91 kB0%
chunks/satisfies.mjs116 B0%
chunks/index2.mjs194.26 kB0%
chunks/jiti.mjs305 B0%
chunks/index3.mjs71.97 kB0%
chunks/add2.mjs12.08 kB0%
chunks/search.mjs45.85 kB0%
chunks/xdg-open.mjs25.32 kB0%
chunks/node.mjs145.67 kB0%
chunks/index4.mjs1.23 kB0%
chunks/index5.mjs5.85 kB0%
chunks/index6.mjs6.24 kB0%
chunks/index7.mjs50.51 kB0%
chunks/index8.mjs898.9 kB0%
shared/create-nuxt.BSm0_9Hr.mjs107 B0%
shared/create-nuxt.BjhZEm2-.mjs1.75 kB0%
shared/create-nuxt.Vk1IrVtB.mjs26.96 kB0%
shared/create-nuxt.4t9faemh.mjs43.64 kB0%

@pkg-pr-new

pkg-pr-newBot commented Jun 27, 2025

Copy link
Copy Markdown

nuxt-cli-playground

npm i https://pkg.pr.new/create-nuxt@928
npm i https://pkg.pr.new/nuxi@928
npm i https://pkg.pr.new/@nuxt/cli@928

commit: 0a705d1

@codspeed-hq

codspeed-hqBot commented Jun 27, 2025

Copy link
Copy Markdown

CodSpeed Performance Report

Merging #928 will not alter performance

Comparing feat/typecheck (0a705d1) with main (e5ef49e)

Summary

✅ 2 untouched benchmarks

Sign up for freeto 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.

support project-based typechecking Run typecheck for client *and* server with nuxi typecheck

1 participant

@danielroe