Skip to content

Commit 726f513

Browse files
committed
Revert "drop node@4 support"
This reverts commit 21495be.
1 parent 21495be commit 726f513

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
language: node_js
22
node_js:
3+
- "4"
34
- "6"
45
- "node"

package.json

+20-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
{
22
"name": "icss-utils",
3-
"version": "4.0.0",
3+
"version": "3.0.1",
44
"description": "ICSS utils for postcss ast",
5-
"main": "src/index.js",
6-
"engines": {
7-
"node": ">= 6"
8-
},
5+
"main": "lib/index.js",
96
"files": [
10-
"src"
7+
"lib"
118
],
129
"scripts": {
10+
"build": "babel --out-dir lib src",
1311
"test": "jest --coverage",
1412
"precommit": "lint-staged",
15-
"prepublish": "yarn test"
13+
"prepublish": "yarn test && yarn run build"
1614
},
1715
"lint-staged": {
1816
"*.js": [
@@ -30,6 +28,18 @@
3028
},
3129
"extends": "eslint:recommended"
3230
},
31+
"babel": {
32+
"presets": [
33+
[
34+
"env",
35+
{
36+
"targets": {
37+
"node": 4
38+
}
39+
}
40+
]
41+
]
42+
},
3343
"repository": {
3444
"type": "git",
3545
"url": "git+https://github.com/css-modules/icss-utils.git"
@@ -50,6 +60,9 @@
5060
"postcss": "^7.0.5"
5161
},
5262
"devDependencies": {
63+
"babel-cli": "^6.24.1",
64+
"babel-jest": "^20.0.3",
65+
"babel-preset-env": "^1.5.2",
5366
"eslint": "^4.0.0",
5467
"husky": "^0.13.4",
5568
"jest": "^20.0.4",

0 commit comments

Comments
 (0)