Skip to content

build: migrate Nuxt Scripts to Module Builder v2 - #990

Merged
harlan-zw merged 2 commits into
mainfrom
build/module-builder-v2
Nov 25, 2026
Merged

harlan-zw merged 2 commits into
mainfrom
build/module-builder-v2

Conversation

@harlan-zw

Copy link
Copy Markdown
Collaborator

🔗 Linked issue

📚 Description

Module Builder v2 uses tsdown and loads build-time code in Node. Give the script package its own TypeScript config and move README staging into the tsdown build. Keep the existing published entry points.

🤖 AI disclosure: Harlan Agent Kit modified this description. My AI open-source policy.

Build the script package with tsdown and its own TypeScript project.
@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
scripts-playground Error Error Nov 25, 2026 1:59am UTC

Request Review

@socket-security

socket-security Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedtsdown@​0.23.7981008897100
Updated@​nuxt/​module-builder@​1.0.3 ⏵ 2.0.0-alpha.199 +110089 -1091 +4100

View full report

@pkg-pr-new

pkg-pr-new Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@nuxt/scripts-devtools@990
npm i https://pkg.pr.new/@nuxt/scripts@990

commit: fd42f6b

@github-actions

Copy link
Copy Markdown

📦 Package Size

⚠️ 9 size metrics grew

📚 22 runtime dependencies (no change)

Package output Gzipped Δ
@nuxt/scripts · dist/runtime 106 kB → 126 kB 🔴 +20 kB (+19.4%)
@nuxt/scripts · export . 26 kB → 27 kB 🔴 +999 B (+3.8%)
@nuxt/scripts · export ./registry 30 kB → 288 B 🟢 -30 kB (-99.0%)
@nuxt/scripts · export ./stats 13 kB → 12 kB 🟢 -986 B (-7.3%)
@nuxt/scripts · export ./types-source 49 kB → 50 kB 🔴 +606 B (+1.2%)
@nuxt/scripts · published payload 224 kB → 244 kB 🔴 +20 kB (+8.9%)
@nuxt/scripts · components runtime 2.5 kB → 3.6 kB 🔴 +1.1 kB (+45.4%)
@nuxt/scripts · composables runtime 7.8 kB → 10 kB 🔴 +2.5 kB (+31.3%)
@nuxt/scripts · registry runtime 46 kB → 52 kB 🔴 +6.1 kB (+13.4%)
@nuxt/scripts · server runtime 31 kB → 40 kB 🔴 +9.0 kB (+29.3%)
@nuxt/scripts · utils runtime 2.9 kB → 3.5 kB 🔴 +597 B (+20.6%)
All tracked output (25)
Package output Gzipped Raw
@nuxt/scripts-cli · runtime dependencies 72 kB 355 kB ✅
@nuxt/scripts-cli · dependency magicast 72 kB 355 kB ✅
@nuxt/scripts-cli · export . 3.4 kB 12 kB ✅
@nuxt/scripts-cli · published payload 3.4 kB 12 kB ✅
@nuxt/scripts · runtime dependencies 543 kB 2.40 MB ✅
@nuxt/scripts · dependency @oxc-project/types 0 B 0 B ✅
@nuxt/scripts · dependency @vueuse/core 178 kB 720 kB ✅
@nuxt/scripts · dependency @vueuse/shared 39 kB 152 kB ✅
@nuxt/scripts · dependency lru-cache 141 kB 623 kB ✅
@nuxt/scripts · dependency semver 25 kB 72 kB ✅
@nuxt/scripts · dependency sirv 8.8 kB 21 kB ✅
@nuxt/scripts · dependency unstorage 70 kB 225 kB ✅
@nuxt/scripts · dependency valibot 82 kB 590 kB ✅
@nuxt/scripts · dist/runtime 126 kB 337 kB 🔴
@nuxt/scripts · export . 27 kB 100 kB 🔴
@nuxt/scripts · export ./registry 288 B 449 B 🟢
@nuxt/scripts · export ./stats 12 kB 97 kB 🟢
@nuxt/scripts · export ./types-source 50 kB 259 kB 🔴
@nuxt/scripts · published payload 244 kB 883 kB 🔴
@nuxt/scripts · app runtime 176 B 658 B ✅
@nuxt/scripts · components runtime 3.6 kB 8.5 kB 🔴
@nuxt/scripts · composables runtime 10 kB 29 kB 🔴
@nuxt/scripts · registry runtime 52 kB 140 kB 🔴
@nuxt/scripts · server runtime 40 kB 108 kB 🔴
@nuxt/scripts · utils runtime 3.5 kB 8.6 kB 🔴
Runtime dependencies (22)
Package Dependency Requested Resolved Cost
@nuxt/scripts-cli magicast ^0.5.5 0.5.5 📦 72 kB gzip
@nuxt/scripts-cli pathe ^2.0.3 2.0.3 ♻️ free via Nuxt 4.7.0
@nuxt/scripts @nuxt/kit ^4.7.0 4.7.0 ♻️ free via Nuxt 4.7.0
@nuxt/scripts @oxc-project/types ^0.153.0 0.153.0 📦 0 B gzip
@nuxt/scripts @vueuse/core ^15.0.0 15.0.0 📦 178 kB gzip
@nuxt/scripts @vueuse/shared ^15.0.0 15.0.0 📦 39 kB gzip
@nuxt/scripts consola ^3.4.2 3.4.2 ♻️ free via Nuxt 4.7.0
@nuxt/scripts defu ^6.1.7 6.1.7 ♻️ free via Nuxt 4.7.0
@nuxt/scripts lru-cache ^11.5.3 11.5.3 📦 141 kB gzip
@nuxt/scripts magic-string ^1.4.3 1.4.3 ♻️ free via Nuxt 4.7.0
@nuxt/scripts ofetch ^1.5.1 1.5.1 ♻️ free via Nuxt 4.7.0
@nuxt/scripts ohash ^2.0.12 2.0.12 ♻️ free via Nuxt 4.7.0
@nuxt/scripts oxc-walker ^1.1.1 1.1.1 ♻️ free via Nuxt 4.7.0
@nuxt/scripts pathe ^2.0.3 2.0.3 ♻️ free via Nuxt 4.7.0
@nuxt/scripts semver ^7.8.5 7.8.5 📦 25 kB gzip
@nuxt/scripts sirv ^3.0.2 3.0.2 📦 8.8 kB gzip
@nuxt/scripts std-env ^4.3.0 4.3.0 ♻️ free via Nuxt 4.7.0
@nuxt/scripts ufo ^1.6.4 1.6.4 ♻️ free via Nuxt 4.7.0
@nuxt/scripts ultrahtml ^1.7.0 1.7.0 ♻️ free via Nuxt 4.7.0
@nuxt/scripts unplugin ^3.4.0 3.4.0 ♻️ free via Nuxt 4.7.0
@nuxt/scripts unstorage ^1.17.5 1.17.5 📦 70 kB gzip
@nuxt/scripts valibot ^1.5.0 1.5.0 📦 82 kB gzip

Baseline: main_@_87036c84___2026-11-25 · gzip is the comparison metric · changes below 16 B gzip are ignored

Use the same package build path for development and release preparation.
@harlan-zw
harlan-zw marked this pull request as ready for review November 25, 2026 04:13
@harlan-zw
harlan-zw merged commit f08c676 into main Nov 25, 2026
14 of 15 checks passed
@harlan-zw
harlan-zw deleted the build/module-builder-v2 branch November 25, 2026 04:13

This branch had an error being deployed

1 failed deployment
Preview — fd42f6b2 Deployed Nov 25, 2026 by vercel[bot]
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.

1 participant