Skip to content

Commit 16604f3

Browse files
authored
Merge pull request BrasilAPI#56 from filipedeschamps/fix-browser
Conserta o suporte ao browser
2 parents fa3718c + 8c582b5 commit 16604f3

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

package.json

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "1.0.3",
44
"description": "Busca por CEP integrado diretamente aos serviços dos Correios e ViaCEP",
55
"main": "dist/cep-promise.js",
6-
"browser": "dist/cep-promise-browser.min.js",
76
"scripts": {
87
"test": "npm run coverage",
98
"coverage": "babel-node node_modules/.bin/babel-istanbul cover _mocha -- --timeout 30000 test/**/*.spec.js",
@@ -14,10 +13,25 @@
1413
"lint-check": "standard",
1514
"lint-fix": "standard --fix",
1615
"build-node": "babel src --out-dir dist",
17-
"build-web": "npm run build-node && browserify dist/cep-promise.js -s cep -o | uglifyjs > dist/cep-promise-browser.min.js",
16+
"build-web": "browserify src/cep-promise.js -s cep -o | uglifyjs > dist/cep-promise-browser.min.js",
1817
"build": "npm run build-node && npm run build-web",
1918
"prepublish": "npm run build"
2019
},
20+
"browserify": {
21+
"transform": [
22+
[
23+
"babelify",
24+
{
25+
"presets": [
26+
"es2015"
27+
],
28+
"plugins": [
29+
"add-module-exports"
30+
]
31+
}
32+
]
33+
]
34+
},
2135
"repository": {
2236
"type": "git",
2337
"url": "https://github.com/filipedeschamps/cep-promise.git"
@@ -35,6 +49,7 @@
3549
"babel-istanbul": "0.11.0",
3650
"babel-plugin-add-module-exports": "0.2.1",
3751
"babel-preset-es2015": "6.13.2",
52+
"babelify": "7.3.0",
3853
"browserify": "13.1.0",
3954
"chai": "3.5.0",
4055
"chai-as-promised": "5.3.0",
@@ -53,11 +68,7 @@
5368
]
5469
},
5570
"dependencies": {
56-
"babel-cli": "6.16.0",
57-
"babel-core": "6.17.0",
58-
"babel-preset-es2015": "6.16.0",
5971
"bluebird": "3.4.6",
60-
"chai-as-promised": "6.0.0",
6172
"isomorphic-fetch": "2.2.1",
6273
"lodash.get": "4.4.2",
6374
"xml2js": "0.4.16"

0 commit comments

Comments
 (0)