Skip to content

Commit f174166

Browse files
authored
chore(build): Fix missed es5 to cjs conversions in build commands (#4243)
Follow up to #4178. This fixes two spots which were missed when converting the build command from `build:es5` to `build:cjs`.
1 parent 1d93ca9 commit f174166

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
"private": true,
33
"scripts": {
44
"build": "node ./scripts/verify-packages-versions.js && lerna run --stream --concurrency 1 --sort build",
5+
"build:cjs": "lerna run --stream --concurrency 1 --sort build:cjs",
56
"build:dev": "lerna run --stream --concurrency 1 --sort build:dev",
67
"build:dev:filter": "lerna run --stream --concurrency 1 --sort build:dev --include-filtered-dependencies --include-filtered-dependents --scope",
7-
"build:es5": "lerna run --stream --concurrency 1 --sort build:es5",
8+
"build:es5": "yarn lerna run --stream --concurrency 1 --sort build:cjs # *** backwards compatibility - remove in v7 ***",
89
"build:esm": "lerna run --stream --concurrency 1 --sort build:esm",
910
"build:watch": "lerna run --parallel build:watch",
1011
"build:dev:watch": "lerna run --parallel build:dev:watch",

packages/nextjs/vercel/install-sentry-from-branch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ echo " "
2929
echo "BUILDING SDK"
3030
# We need to build es5 versions because `next.config.js` calls `require` on the SDK (to get `withSentryConfig`) and
3131
# therefore it looks for `dist/index.js`
32-
yarn build:es5
32+
yarn build:cjs
3333
# We need to build esm versions because that's what `next` actually uses when it builds the app
3434
yarn build:esm
3535

0 commit comments

Comments
 (0)