Skip to content

Commit 1a5d04b

Browse files
committed
fix(release): trying to point script to npm script to see if error changes
1 parent 5b70d67 commit 1a5d04b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
provider: script
1414
skip_cleanup: true
1515
script:
16-
- rm -rf dist && mkdir dist && babel src -d dist --copy-files
16+
- npm run prepublish
1717
deploy:
1818
provider: script
1919
skip_cleanup: true

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"start": "react-scripts start",
4040
"build": "react-scripts build",
4141
"test": "react-scripts test --env=jsdom",
42-
"eject": "react-scripts eject"
42+
"eject": "react-scripts eject",
43+
"prepublish": "rm -rf dist && mkdir dist && babel src -d dist --copy-files"
4344
},
4445
"browserslist": [
4546
">0.2%",

0 commit comments

Comments
 (0)