Skip to content

Commit 8bbaa05

Browse files
authored
Merge pull request #1693 from bugsnag/improve-release
explicitly build prior to version/publish
2 parents 0ea947b + 71d39b2 commit 8bbaa05

File tree

12 files changed

+23
-22
lines changed

12 files changed

+23
-22
lines changed

bin/release.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ cd /app/bugsnag-js
2525
npm ci
2626
npm run bootstrap -- --ci
2727

28+
npx lerna run build \
29+
--scope @bugsnag/node \
30+
--scope @bugsnag/browser \
31+
--scope @bugsnag/expo
32+
33+
npx lerna run build \
34+
--ignore @bugsnag/node\
35+
--ignore @bugsnag/browser \
36+
--ignore @bugsnag/expo \
37+
--ignore @bugsnag/plugin-electron-app \
38+
--ignore @bugsnag/plugin-electron-client-state-persistence
39+
2840
# check if the browser package changed – if it didn't we don't need to upload to the CDN
2941
BROWSER_PACKAGE_CHANGED=$(npx lerna changed --parseable | grep -c packages/js$ || test $? = 1;)
3042

packages/browser/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
"build": "npm run clean && npm run build:dist && npm run build:dist:min",
2626
"build:dist": "cross-env NODE_ENV=production bash -c '../../bin/bundle src/notifier.js --standalone=Bugsnag | ../../bin/extract-source-map dist/bugsnag.js'",
2727
"build:dist:min": "cross-env NODE_ENV=production bash -c '../../bin/bundle src/notifier.js --standalone=Bugsnag | ../../bin/minify dist/bugsnag.min.js'",
28-
"cdn-upload": "./bin/cdn-upload",
29-
"postversion": "npm run build"
28+
"cdn-upload": "./bin/cdn-upload"
3029
},
3130
"author": "Bugsnag",
3231
"license": "MIT",

packages/node/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
"scripts": {
2020
"clean": "rm -fr dist && mkdir dist",
2121
"build": "npm run clean && npm run build:dist",
22-
"build:dist": "../../bin/bundle src/notifier.js --node --exclude=iserror,stack-generator,error-stack-parser,pump,byline --standalone=bugsnag | ../../bin/extract-source-map dist/bugsnag.js",
23-
"postversion": "npm run build"
22+
"build:dist": "../../bin/bundle src/notifier.js --node --exclude=iserror,stack-generator,error-stack-parser,pump,byline --standalone=bugsnag | ../../bin/extract-source-map dist/bugsnag.js"
2423
},
2524
"author": "Bugsnag",
2625
"license": "MIT",

packages/plugin-angular/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
"build": "npm run clean && npm run build:esm2015 && npm run build:esm5",
2626
"build:esm2015": "ngc -p tsconfig.json",
2727
"build:esm5": "ngc -p tsconfig.esm5.json",
28-
"test:types": "npm run build",
29-
"postversion": "npm run build"
28+
"test:types": "npm run build"
3029
},
3130
"author": "Bugsnag",
3231
"license": "MIT",

packages/plugin-aws-lambda/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
],
1919
"scripts": {
2020
"clean": "rm -fr dist && mkdir dist",
21-
"build": "npm run clean && ../../bin/bundle src/index.js --node --standalone=BugsnagPluginAwsLambda | ../../bin/extract-source-map dist/bugsnag-aws-lambda.js",
22-
"postversion": "npm run build"
21+
"build": "npm run clean && ../../bin/bundle src/index.js --node --standalone=BugsnagPluginAwsLambda | ../../bin/extract-source-map dist/bugsnag-aws-lambda.js"
2322
},
2423
"author": "Bugsnag",
2524
"license": "MIT",

packages/plugin-electron-ipc/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"url": "git@github.com:bugsnag/bugsnag-js.git"
99
},
1010
"scripts": {
11-
"build": "browserify preload.js --exclude electron --bare -o dist/preload.bundle.js",
12-
"postversion": "npm run build"
11+
"build": "browserify preload.js --exclude electron --bare -o dist/preload.bundle.js"
1312
},
1413
"publishConfig": {
1514
"access": "public"

packages/plugin-express/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
"scripts": {
2020
"clean": "rm -fr dist && mkdir dist",
2121
"build": "npm run clean && npm run build:dist",
22-
"build:dist": "../../bin/bundle src/express.js --node --exclude=iserror --standalone=bugsnag-express | ../../bin/extract-source-map dist/bugsnag-express.js",
23-
"postversion": "npm run build"
22+
"build:dist": "../../bin/bundle src/express.js --node --exclude=iserror --standalone=bugsnag-express | ../../bin/extract-source-map dist/bugsnag-express.js"
2423
},
2524
"author": "Bugsnag",
2625
"license": "MIT",

packages/plugin-koa/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
"scripts": {
2020
"clean": "rm -fr dist && mkdir dist",
2121
"build": "npm run clean && npm run build:dist",
22-
"build:dist": "../../bin/bundle src/koa.js --node --exclude=iserror --standalone=bugsnag-koa | ../../bin/extract-source-map dist/bugsnag-koa.js",
23-
"postversion": "npm run build"
22+
"build:dist": "../../bin/bundle src/koa.js --node --exclude=iserror --standalone=bugsnag-koa | ../../bin/extract-source-map dist/bugsnag-koa.js"
2423
},
2524
"author": "Bugsnag",
2625
"license": "MIT",

packages/plugin-react/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
],
2020
"scripts": {
2121
"clean": "rm -fr dist && mkdir dist",
22-
"build": "npm run clean && ../../bin/bundle src/index.js --standalone=BugsnagPluginReact | ../../bin/extract-source-map dist/bugsnag-react.js",
23-
"postversion": "npm run build"
22+
"build": "npm run clean && ../../bin/bundle src/index.js --standalone=BugsnagPluginReact | ../../bin/extract-source-map dist/bugsnag-react.js"
2423
},
2524
"author": "Bugsnag",
2625
"license": "MIT",

packages/plugin-restify/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
"scripts": {
2020
"clean": "rm -fr dist && mkdir dist",
2121
"build": "npm run clean && npm run build:dist",
22-
"build:dist": "../../bin/bundle src/restify.js --node --exclude=iserror --standalone=bugsnag-restify | ../../bin/extract-source-map dist/bugsnag-restify.js",
23-
"postversion": "npm run build"
22+
"build:dist": "../../bin/bundle src/restify.js --node --exclude=iserror --standalone=bugsnag-restify | ../../bin/extract-source-map dist/bugsnag-restify.js"
2423
},
2524
"author": "Bugsnag",
2625
"license": "MIT",

0 commit comments

Comments
 (0)