Skip to content

Commit

Permalink
hore: move to babel7
Browse files Browse the repository at this point in the history
  • Loading branch information
JPeer264 committed Nov 2, 2018
1 parent 1176451 commit 9b1285f
Show file tree
Hide file tree
Showing 4 changed files with 2,168 additions and 1,187 deletions.
4 changes: 2 additions & 2 deletions .babelrc
@@ -1,6 +1,6 @@
{
"presets": ["env"],
"presets": ["@babel/preset-env"],
"plugins": [
["transform-object-rest-spread", { "useBuiltIns": true }]
["@babel/plugin-proposal-object-rest-spread", { "useBuiltIns": true }]
]
}
1 change: 1 addition & 0 deletions lib/getConfig.js
Expand Up @@ -7,6 +7,7 @@ import path from 'path';
const cwd = process.cwd();
const homedir = os.homedir();

// eslint-disable-next-line global-require, import/no-dynamic-require
const safeRequire = jsPath => fs.existsSync(jsPath) && require(jsPath);

const getConfig = (altPath) => {
Expand Down
19 changes: 10 additions & 9 deletions package.json
Expand Up @@ -21,10 +21,9 @@
},
"ava": {
"require": [
"babel-register",
"babel-polyfill"
],
"babel": "inherit"
"@babel/register",
"@babel/polyfill"
]
},
"nyc": {
"exclude": [
Expand Down Expand Up @@ -52,11 +51,13 @@
],
"homepage": "https://github.com/JPeer264/node-semantic-git-commit-cli#readme",
"devDependencies": {
"ava": "^0.18.2",
"babel-cli": "^6.24.0",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-polyfill": "^6.23.0",
"babel-preset-env": "^1.2.1",
"@babel/cli": "^7.1.2",
"@babel/core": "^7.1.2",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/polyfill": "^7.0.0",
"@babel/preset-env": "^7.1.0",
"@babel/register": "^7.0.0",
"ava": "^1.0.0-rc.1",
"coveralls": "^2.12.0",
"eslint": "^3.17.1",
"eslint-config-airbnb-base": "^11.1.1",
Expand Down

0 comments on commit 9b1285f

Please sign in to comment.