Skip to content

Commit 7b4a209

Browse files
author
Peng Jie
committed
chore: remove pkg minify commands
1 parent 8b3d14c commit 7b4a209

File tree

3 files changed

+15
-19
lines changed

3 files changed

+15
-19
lines changed

.size-snapshot.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
{
22
"lib/react-gh-like-diff.cjs.js": {
3-
"bundled": 14700,
4-
"minified": 7886,
5-
"gzipped": 2918
3+
"bundled": 14773,
4+
"minified": 8029,
5+
"gzipped": 2944
66
},
77
"es/react-gh-like-diff.esm.js": {
8-
"bundled": 14419,
9-
"minified": 7652,
10-
"gzipped": 2865,
8+
"bundled": 14492,
9+
"minified": 7795,
10+
"gzipped": 2886,
1111
"treeshaked": {
1212
"rollup": {
13-
"code": 6304,
13+
"code": 6542,
1414
"import_statements": 211
1515
},
1616
"webpack": {
17-
"code": 7462
17+
"code": 7672
1818
}
1919
}
2020
},
2121
"dist/react-gh-like-diff.umd.js": {
22-
"bundled": 16077,
23-
"minified": 6746,
24-
"gzipped": 2740
22+
"bundled": 16158,
23+
"minified": 6986,
24+
"gzipped": 2803
2525
}
2626
}

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@
1010
"test": "npm run lint && jest",
1111
"test:watch": "npm test -- --watch",
1212
"test:cov": "npm run lint && jest --coverage",
13-
"build": "npm-run-all clean rollup minify:*",
1413
"clean": "rimraf lib es dist",
15-
"rollup": "npm run clean && rollup -c",
16-
"minify:cjs": "uglifyjs $npm_package_main -cm toplevel -o $npm_package_main",
17-
"minify:esm": "babel --env=production --presets=minify $npm_package_module -o $npm_package_module",
14+
"build": "npm run clean && rollup -c",
1815
"size": "bundlesize",
1916
"lint": "eslint src"
2017
},
@@ -99,8 +96,7 @@
9996
"rollup-plugin-css-porter": "1.0.2",
10097
"rollup-plugin-node-builtins": "2.1.2",
10198
"rollup-plugin-node-resolve": "5.2.0",
102-
"rollup-plugin-size-snapshot": "0.10.0",
103-
"uglify-js": "3.6.0"
99+
"rollup-plugin-size-snapshot": "0.10.0"
104100
},
105101
"peerDependencies": {
106102
"react": "^15.0.0 || ^16.0.0",
@@ -114,7 +110,7 @@
114110
"bundlesize": [
115111
{
116112
"path": "./lib/react-gh-like-diff.cjs.js",
117-
"maxSize": "3.0 kB"
113+
"maxSize": "5.0 kB"
118114
}
119115
]
120116
}

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8159,7 +8159,7 @@ ua-parser-js@^0.7.18:
81598159
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.19.tgz#94151be4c0a7fb1d001af7022fdaca4642659e4b"
81608160
integrity sha512-T3PVJ6uz8i0HzPxOF9SWzWAlfN/DavlpQqepn22xgve/5QecC+XMCAtmUNnY7C9StehaV6exjUCI801lOI7QlQ==
81618161

8162-
uglify-js@3.6.0, uglify-js@^3.1.4:
8162+
uglify-js@^3.1.4:
81638163
version "3.6.0"
81648164
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.6.0.tgz#704681345c53a8b2079fb6cec294b05ead242ff5"
81658165
integrity sha512-W+jrUHJr3DXKhrsS7NUVxn3zqMOFn0hL/Ei6v0anCIMoKC93TjcflTagwIHLW7SfMFfiQuktQyFVCFHGUE0+yg==

0 commit comments

Comments
 (0)