Skip to content

Commit 9e57987

Browse files
committed
version and publish scripts update
1 parent 8fdc086 commit 9e57987

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
22
"name": "css-modules-require-hook",
3-
"version": "4.0.0",
3+
"version": "4.0.1",
44
"description": "A require hook to compile CSS Modules on the fly",
55
"main": "lib/index.js",
66
"engines": {
77
"node": ">=0.12"
88
},
99
"scripts": {
10-
"prepublish": "in-publish && npm run -s build || in-install",
1110
"build": "babel lib --out-dir lib && babel preset.js --out-file preset.js",
1211
"cleanup": "git reset --hard",
12+
"prepublish": "in-publish && npm run -s build || in-install",
13+
"publish": "in-publish && npm run -s cleanup || in-install",
1314
"test": "npm run test:babel",
1415
"test:babel": "NODE_PATH=$(pwd)/test/tokens/node_modules $npm_package_scripts_test_unit --compilers js:babel-register",
1516
"test:coverage": "NODE_PATH=$(pwd)/test/tokens/node_modules babel-node --presets es2015 `npm bin`/isparta cover --report text --report html `npm bin`/_mocha -- --require test/setup.js --ui tdd test/*/*.js",
@@ -41,6 +42,7 @@
4142
"generic-names": "^1.0.1",
4243
"glob-to-regexp": "^0.1.0",
4344
"icss-replace-symbols": "^1.0.2",
45+
"in-publish": "^2.0.0",
4446
"lodash": "^4.3.0",
4547
"postcss": "^5.0.19",
4648
"postcss-modules-extract-imports": "^1.0.0",
@@ -54,7 +56,6 @@
5456
"babel-cli": "^6.5.1",
5557
"babel-preset-es2015": "^6.5.0",
5658
"babel-register": "^6.5.2",
57-
"in-publish": "^2.0.0",
5859
"isparta": "^4.0.0",
5960
"mocha": "^2.4.5",
6061
"postcss-less": "^0.2.0",

0 commit comments

Comments
 (0)