Skip to content

Commit 00ca4e6

Browse files
pranaygpclaude
andcommitted
feat: move NextBuilder to @workflow/next package
Moves NextBuilder from @workflow/cli to @workflow/next package, establishing proper package boundaries where framework-specific builders live in their respective framework integration packages. Changes: - Moved NextBuilder from @workflow/cli to @workflow/next - Added @workflow/builders and watchpack dependencies to @workflow/next - Updated runtime re-export to use @workflow/core/dist/runtime directly - Removed direct dependency on @workflow/cli from @workflow/next This aligns the Next.js builder with the Nitro builder pattern (which already lives in @workflow/nitro), creating consistent package organization. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent a413ab6 commit 00ca4e6

File tree

6 files changed

+484
-6
lines changed

6 files changed

+484
-6
lines changed

.changeset/move-next-builder.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@workflow/next": patch
3+
---
4+
5+
Move NextBuilder to @workflow/next package

packages/next/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,17 @@
2828
},
2929
"dependencies": {
3030
"@swc/core": "1.11.24",
31-
"@workflow/cli": "workspace:*",
31+
"@workflow/builders": "workspace:*",
3232
"@workflow/core": "workspace:*",
3333
"@workflow/swc-plugin": "workspace:*",
34-
"semver": "7.7.3"
34+
"semver": "7.7.3",
35+
"watchpack": "2.4.4"
3536
},
3637
"devDependencies": {
3738
"@workflow/tsconfig": "workspace:*",
3839
"@types/node": "catalog:",
3940
"@types/semver": "7.7.1",
41+
"@types/watchpack": "2.4.4",
4042
"next": "16.0.1"
4143
},
4244
"peerDependencies": {

packages/next/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NextBuilder } from '@workflow/cli/dist/lib/builders/next-build';
1+
import { NextBuilder } from './next-builder.js';
22
import type { NextConfig } from 'next';
33
import semver from 'semver';
44

0 commit comments

Comments
 (0)