From dee205ea8323683e5b5a20f18e2319aa982a2ce9 Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 27 May 2021 17:35:15 -0400 Subject: [PATCH] Update `yarn next` script with `--enable-source-maps` This will allow for easier development. For example, when running `yarn next dev examples/basic-css` and an internal is error is thrown, you'll see the TS source file in the stack trace instead of the JS dist file. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 027334f469f6d..f18d52d1e1296 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "publish-canary": "lerna version prerelease --preid canary --force-publish && release --pre --skip-questions", "publish-stable": "lerna version --force-publish", "lint-staged": "lint-staged", - "next": "node --trace-deprecation packages/next/dist/bin/next", + "next": "node --trace-deprecation --enable-source-maps packages/next/dist/bin/next", "debug": "node --inspect packages/next/dist/bin/next" }, "pre-commit": "lint-staged",