Skip to content

Commit 54ffa1a

Browse files
committed
Breaking: drop Node.js 4 support
1 parent 258651e commit 54ffa1a

File tree

5 files changed

+31
-52
lines changed

5 files changed

+31
-52
lines changed

.travis.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ sudo: false
22

33
language: node_js
44
node_js:
5-
- "4"
6-
- "6"
5+
- "6.5"
76
- "8"
8-
- "9"
7+
- "10"

package.json

+2-8
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.1.0",
44
"description": "Regular expression parser for ECMAScript 2018.",
55
"engines": {
6-
"node": ">=4.0.0"
6+
"node": ">=6.5.0"
77
},
88
"main": "index",
99
"files": [
@@ -14,10 +14,6 @@
1414
"@types/eslint": "^4.16.0",
1515
"@types/mocha": "^2.2.48",
1616
"@types/node": "^9.4.6",
17-
"babel-core": "^6.26.0",
18-
"babel-plugin-transform-es2015-destructuring": "^6.23.0",
19-
"babel-plugin-transform-es2015-parameters": "^6.24.1",
20-
"babel-plugin-transform-es2015-spread": "^6.22.0",
2117
"dts-bundle": "^0.7.3",
2218
"eslint": "^4.18.0",
2319
"eslint-config-mysticatea": "^13.0.2",
@@ -28,7 +24,6 @@
2824
"prettier": "^1.9.2",
2925
"rimraf": "^2.6.2",
3026
"rollup": "^0.56.1",
31-
"rollup-plugin-babel": "^3.0.3",
3227
"rollup-plugin-node-resolve": "^3.0.3",
3328
"rollup-plugin-sourcemaps": "^0.4.2",
3429
"rollup-watch": "^4.3.1",
@@ -40,8 +35,7 @@
4035
"prebuild": "npm run -s clean",
4136
"build": "run-s build:*",
4237
"build:tsc": "tsc --module es2015 --target es2015",
43-
"build:mjs": "rollup -c rollup-mjs.config.js",
44-
"build:js": "rollup -c rollup-js.config.js",
38+
"build:rollup": "rollup -c",
4539
"build:dts": "dts-bundle --name regexpp --main .temp/index.d.ts --out ../index.d.ts",
4640
"clean": "rimraf .temp index.*",
4741
"lint": "eslint src test tools --ext .ts",

rollup-js.config.js

-26
This file was deleted.

rollup-mjs.config.js

-15
This file was deleted.

rollup.config.js

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import resolve from "rollup-plugin-node-resolve"
2+
import sourcemaps from "rollup-plugin-sourcemaps"
3+
4+
export default [
5+
{
6+
input: ".temp/index.js",
7+
output: {
8+
file: "index.js",
9+
format: "cjs",
10+
sourcemap: true,
11+
sourcemapFile: "index.js.map",
12+
banner: `/*! @author Toru Nagashima <https://github.com/mysticatea> */`,
13+
},
14+
plugins: [sourcemaps(), resolve()],
15+
},
16+
{
17+
input: ".temp/index.js",
18+
output: {
19+
file: "index.mjs",
20+
format: "es",
21+
sourcemap: true,
22+
sourcemapFile: "index.mjs.map",
23+
banner: `/*! @author Toru Nagashima <https://github.com/mysticatea> */`,
24+
},
25+
plugins: [sourcemaps(), resolve()],
26+
},
27+
]

0 commit comments

Comments
 (0)