Skip to content
This repository was archived by the owner on Sep 14, 2020. It is now read-only.

Commit ffb162a

Browse files
fractalwrenchkattrali
authored andcommitted
fix(babel): Add nativeserializer to packaging step (#227)
When src/NativeSerializer.js was added it wasn't compiled by the npm prepublish script, which only mentioned src/Bugsnag.js explicitly. This commit ensures anything inside src/ (except the tests) gets compiled into lib/. For additional clarity, the argument names for the babel command are now expanded. Fixes #226.
1 parent 032f031 commit ffb162a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"prop-types": "^15.6.0"
1414
},
1515
"scripts": {
16-
"prepublish": "mkdir -p lib && babel src/Bugsnag.js -s -o lib/Bugsnag.js",
16+
"prepublish": "mkdir -p lib && babel --source-maps --out-dir='lib' --ignore='__tests__' src",
1717
"test:unit:js": "jest --coverage src/__tests__",
1818
"test:lint:js": "standard",
1919
"test:smoke:typescript": "tslint index.d.ts && tsc --strict test/app.ts"

0 commit comments

Comments
 (0)