Skip to content

Commit 3c74f9a

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 f348c63 commit 3c74f9a

File tree

5 files changed

+479
-6
lines changed

5 files changed

+479
-6
lines changed

packages/next/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@
2828
},
2929
"dependencies": {
3030
"@swc/core": "1.11.24",
31-
"@workflow/cli": "workspace:*",
31+
"@workflow/builders": "workspace:*",
3232
"@workflow/core": "workspace:*",
33-
"@workflow/swc-plugin": "workspace:*"
33+
"@workflow/swc-plugin": "workspace:*",
34+
"watchpack": "2.4.4"
3435
},
3536
"devDependencies": {
3637
"@workflow/tsconfig": "workspace:*",
3738
"@types/node": "catalog:",
39+
"@types/watchpack": "2.4.4",
3840
"next": "15.5.3"
3941
},
4042
"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

44
export function withWorkflow({

0 commit comments

Comments
 (0)