From ce41f6bc6f24f267dc87f5892bc40a690b8fc2af Mon Sep 17 00:00:00 2001 From: "Sebastian \"Sebbie\" Silbermann" Date: Tue, 22 Oct 2024 22:13:15 +0200 Subject: [PATCH] Enable source maps for `pnpm debug` (#71653) Now `pnpm debug` is like `pnpm next` with `NODE_OPTIONS=--inspect` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b211149ac4e4e..dc41e33e18fee 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "next": "cross-env NEXT_TELEMETRY_DISABLED=1 node --trace-deprecation --enable-source-maps packages/next/dist/bin/next", "next-no-sourcemaps": "cross-env NEXT_TELEMETRY_DISABLED=1 node --trace-deprecation packages/next/dist/bin/next", "clean-trace-jaeger": "node scripts/rm.mjs test/integration/basic/.next && TRACE_TARGET=JAEGER pnpm next build test/integration/basic", - "debug": "cross-env NEXT_TELEMETRY_DISABLED=1 node --inspect packages/next/dist/bin/next", + "debug": "cross-env NEXT_TELEMETRY_DISABLED=1 node --inspect --trace-deprecation --enable-source-maps packages/next/dist/bin/next", "postinstall": "node scripts/git-configure.mjs && node scripts/install-native.mjs", "version": "pnpm install --no-frozen-lockfile && IS_PUBLISH=yes ./scripts/check-pre-compiled.sh && git add .", "prepare": "husky",