Skip to content

Commit b26a1df

Browse files
committed
Publish as ES5 and ES6
1 parent a418efc commit b26a1df

2 files changed

Lines changed: 178 additions & 2583 deletions

File tree

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "react-native-web-maps",
33
"version": "0.1.0",
44
"description": "React Native for Web implementation of react-native-maps",
5-
"main": "src/index.js",
5+
"main": "dist/index.js",
6+
"main-es": "src/index.js",
67
"repository": {
78
"type": "git",
89
"url": "git@github.com:react-native-web-community/react-native-web-maps.git"
@@ -19,14 +20,22 @@
1920
"react-native-web-maps"
2021
],
2122
"scripts": {
23+
"prepublish": "yarn build",
24+
"build": "mkdir -p dist && babel src --out-dir dist",
2225
"test": "echo \"Error: no test specified\" && exit 1"
2326
},
2427
"babel": {
2528
"presets": [
2629
"react-native"
2730
]
2831
},
32+
"files": [
33+
"dist",
34+
"src",
35+
"yarn.lock"
36+
],
2937
"devDependencies": {
38+
"babel-cli": "^6.26.0",
3039
"babel-core": "^6.26.0",
3140
"babel-loader": "^7.1.2",
3241
"babel-preset-react-native": "^4.0.0",

0 commit comments

Comments
 (0)