Skip to content

Commit ae6594f

Browse files
committed
add prepublishOnly task on package.json
1 parent d4fb3dd commit ae6594f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"README.md"
99
],
1010
"scripts": {
11+
"prepublishOnly": "yarn lint && yarn test && yarn build",
1112
"build": "rollup -c",
1213
"lint": "eslint ./",
1314
"test": "jest"

rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default {
1313
globals: {
1414
react: 'React',
1515
'react-tv': 'react-tv',
16-
}
16+
},
1717
},
1818
plugins: [
1919
flow(),
@@ -29,5 +29,5 @@ export default {
2929
}),
3030
uglify(),
3131
],
32-
external: ['react', 'react-tv']
32+
external: ['react', 'react-tv'],
3333
};

0 commit comments

Comments
 (0)