From d0d9ef5b6d4719fa6c1d9e76c46397db5f5945c9 Mon Sep 17 00:00:00 2001 From: Katie Byers Date: Tue, 10 May 2022 12:00:10 -0700 Subject: [PATCH 1/2] fix version regex --- packages/nextjs/vercel/install-sentry-from-branch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nextjs/vercel/install-sentry-from-branch.sh b/packages/nextjs/vercel/install-sentry-from-branch.sh index 1bb94b0cc833..5cacb1273f26 100644 --- a/packages/nextjs/vercel/install-sentry-from-branch.sh +++ b/packages/nextjs/vercel/install-sentry-from-branch.sh @@ -53,7 +53,7 @@ PACKAGE_NAMES=$(ls $PACKAGES_DIR) for package in ${PACKAGE_NAMES[@]}; do # Within a given package.json file, search for each of the other packages in turn, and if found, make the replacement for package_dep in ${PACKAGE_NAMES[@]}; do - sed -Ei /"@sentry\/${package_dep}"/s/"[0-9]+\.[0-9]+\.[0-9]+"/"file:${ESCAPED_PACKAGES_DIR}\/${package_dep}"/ ${PACKAGES_DIR}/${package}/package.json + sed -Ei /"@sentry\/${package_dep}"/s/"[0-9]+\.[0-9]+\.[0-9]+(-(alpha|beta)\.[0-9]+)?"/"file:${ESCAPED_PACKAGES_DIR}\/${package_dep}"/ ${PACKAGES_DIR}/${package}/package.json done done From 1dac3586292ed17dc72d5ece83117d3e46b775e4 Mon Sep 17 00:00:00 2001 From: Katie Byers Date: Tue, 10 May 2022 12:01:15 -0700 Subject: [PATCH 2/2] use new build process --- packages/nextjs/vercel/install-sentry-from-branch.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/nextjs/vercel/install-sentry-from-branch.sh b/packages/nextjs/vercel/install-sentry-from-branch.sh index 5cacb1273f26..84a0f59eb7c3 100644 --- a/packages/nextjs/vercel/install-sentry-from-branch.sh +++ b/packages/nextjs/vercel/install-sentry-from-branch.sh @@ -27,13 +27,8 @@ yarn --prod false echo " " echo "BUILDING SDK" -# Types are required for any type of build to succeed -yarn build:types -# We need to build es5 versions because `next.config.js` calls `require` on the SDK (to get `withSentryConfig`) and -# therefore it looks for `cjs/index.js` -yarn build:cjs -# We need to build esm versions because that's what `next` actually uses when it builds the app -yarn build:esm +# build types, cjs, and esm +yarn build:dev # Set all packages in the repo to point to their siblings as file dependencies. That way, when we install the local copy # of @sentry/nextjs, it'll pull the local copy of each of its @sentry/* dependents. This mimics what Lerna does with