From e28905001f0d39a56c20b92e9097bb704439169d Mon Sep 17 00:00:00 2001 From: Katie Byers Date: Tue, 7 Dec 2021 06:58:32 -0800 Subject: [PATCH] chore(build): Fix missed `es5` to `cjs` conversions in build commands (#4243) Follow up to https://github.com/getsentry/sentry-javascript/pull/4178. This fixes two spots which were missed when converting the build command from `build:es5` to `build:cjs`. --- package.json | 3 ++- packages/nextjs/vercel/install-sentry-from-branch.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7a44893443fe..9693de08cd02 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,10 @@ "private": true, "scripts": { "build": "node ./scripts/verify-packages-versions.js && lerna run --stream --concurrency 1 --sort build", + "build:cjs": "lerna run --stream --concurrency 1 --sort build:cjs", "build:dev": "lerna run --stream --concurrency 1 --sort build:dev", "build:dev:filter": "lerna run --stream --concurrency 1 --sort build:dev --include-filtered-dependencies --include-filtered-dependents --scope", - "build:es5": "lerna run --stream --concurrency 1 --sort build:es5", + "build:es5": "yarn lerna run --stream --concurrency 1 --sort build:cjs # *** backwards compatibility - remove in v7 ***", "build:esm": "lerna run --stream --concurrency 1 --sort build:esm", "build:watch": "lerna run --parallel build:watch", "build:dev:watch": "lerna run --parallel build:dev:watch", diff --git a/packages/nextjs/vercel/install-sentry-from-branch.sh b/packages/nextjs/vercel/install-sentry-from-branch.sh index f41d995ecc34..af79d10ea04e 100644 --- a/packages/nextjs/vercel/install-sentry-from-branch.sh +++ b/packages/nextjs/vercel/install-sentry-from-branch.sh @@ -29,7 +29,7 @@ echo " " echo "BUILDING SDK" # We need to build es5 versions because `next.config.js` calls `require` on the SDK (to get `withSentryConfig`) and # therefore it looks for `dist/index.js` -yarn build:es5 +yarn build:cjs # We need to build esm versions because that's what `next` actually uses when it builds the app yarn build:esm