Skip to content

Commit 7e1c4a2

Browse files
authored
fix: publishing issues (#389)
* Add rollup as a devDep to packages * update size-snapshot * fix: update README bundle size
1 parent ea9d7f3 commit 7e1c4a2

File tree

6 files changed

+25
-21
lines changed

6 files changed

+25
-21
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
## Features
1414

1515
- 🥇 First-class hooks API
16-
- ⚖️ _Tiny_ bundle: only 5.3kB (1.9 gzipped)
16+
- ⚖️ _Tiny_ bundle: only 7.6kB (2.8 gzipped)
1717
- 📄 Full SSR support: see [graphql-hooks-ssr](packages/graphql-hooks-ssr)
1818
- 🔌 Plugin Caching: see [graphql-hooks-memcache](packages/graphql-hooks-memcache)
1919
- 🔥 No more render props hell

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"lerna": "^3.15.0",
2929
"lint-staged": "^9.0.0",
3030
"prettier": "^1.18.2",
31-
"rollup": "^1.15.4",
31+
"rollup": "^1.25.2",
3232
"rollup-plugin-babel": "^4.3.2",
3333
"rollup-plugin-commonjs": "^10.0.0",
3434
"rollup-plugin-node-resolve": "^5.0.2",

packages/graphql-hooks-memcache/.size-snapshot.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
}
3434
},
3535
"dist/graphql-hooks-memcache.js": {
36-
"bundled": 3964,
36+
"bundled": 3966,
3737
"minified": 2087,
3838
"gzipped": 926
3939
},

packages/graphql-hooks-memcache/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,8 @@
4141
"bugs": {
4242
"url": "https://github.com/nearform/graphql-hooks/issues"
4343
},
44-
"homepage": "https://github.com/nearform/graphql-hooks/blob/master/packages/graphql-hooks-memcache#readme"
44+
"homepage": "https://github.com/nearform/graphql-hooks/blob/master/packages/graphql-hooks-memcache#readme",
45+
"devDependencies": {
46+
"rollup": "^1.25.2"
47+
}
4548
}

packages/graphql-hooks/.size-snapshot.json

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"lib/graphql-hooks.js": {
3-
"bundled": 15350,
4-
"minified": 7386,
5-
"gzipped": 2505
3+
"bundled": 15687,
4+
"minified": 7523,
5+
"gzipped": 2550
66
},
77
"es/graphql-hooks.js": {
8-
"bundled": 14973,
9-
"minified": 7068,
10-
"gzipped": 2420,
8+
"bundled": 15310,
9+
"minified": 7205,
10+
"gzipped": 2465,
1111
"treeshaked": {
1212
"rollup": {
1313
"code": 104,
@@ -19,28 +19,28 @@
1919
}
2020
},
2121
"es/graphql-hooks.mjs": {
22-
"bundled": 6226,
23-
"minified": 6223,
24-
"gzipped": 2436,
22+
"bundled": 6365,
23+
"minified": 6362,
24+
"gzipped": 2475,
2525
"treeshaked": {
2626
"rollup": {
2727
"code": 67,
2828
"import_statements": 21
2929
},
3030
"webpack": {
31-
"code": 1151
31+
"code": 1071
3232
}
3333
}
3434
},
3535
"dist/graphql-hooks.js": {
36-
"bundled": 17632,
37-
"minified": 7791,
38-
"gzipped": 2880
36+
"bundled": 17971,
37+
"minified": 7928,
38+
"gzipped": 2920
3939
},
4040
"dist/graphql-hooks.min.js": {
41-
"bundled": 7717,
42-
"minified": 7703,
43-
"gzipped": 2845
41+
"bundled": 7854,
42+
"minified": 7840,
43+
"gzipped": 2888
4444
},
4545
"lib\\graphql-hooks.js": {
4646
"bundled": 12621,

packages/graphql-hooks/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
"jest-fetch-mock": "^2.1.2",
4747
"react": "^16.8.6",
4848
"react-dom": "^16.8.6",
49-
"react-test-renderer": "^16.8.6"
49+
"react-test-renderer": "^16.8.6",
50+
"rollup": "^1.25.2"
5051
},
5152
"repository": {
5253
"type": "git",

0 commit comments

Comments
 (0)