Skip to content

Commit

Permalink
fix: watch experimental/testmode in when running "pnpm dev" (#65689)
Browse files Browse the repository at this point in the history
Fixes the taskfile so that `experimental/testmode` is auto-recompiled
when running `pnpm dev`.
  • Loading branch information
lubieowoce authored May 14, 2024
1 parent 15d6667 commit 7f3a75d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/next/taskfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2629,6 +2629,7 @@ export default async function (task) {
['nextbuild', 'nextbuild_esm', 'nextbuildjest'],
opts
)
await task.watch('src/experimental/testmode', 'experimental_testmode', opts)
await task.watch('src/export', 'nextbuildstatic', opts)
await task.watch('src/export', 'nextbuildstatic_esm', opts)
await task.watch('src/client', 'client', opts)
Expand Down Expand Up @@ -2705,7 +2706,9 @@ export async function server_wasm(task, opts) {
export async function experimental_testmode(task, opts) {
await task
.source('src/experimental/testmode/**/!(*.test).+(js|ts|tsx)')
.swc('server', {})
.swc('server', {
dev: opts.dev,
})
.target('dist/experimental/testmode')
}

Expand Down

0 comments on commit 7f3a75d

Please sign in to comment.