Skip to content

Commit

Permalink
Fix: babel runtime (#1)
Browse files Browse the repository at this point in the history
* Chore: remove babel-runtime and update to babel 7

* Chore: update dependencies, npm to yarn and husky prepush hook

* Test: lib to src
  • Loading branch information
aichbauer committed Sep 7, 2018
1 parent f71afc7 commit 5425fce
Show file tree
Hide file tree
Showing 4 changed files with 1,592 additions and 1,460 deletions.
5 changes: 2 additions & 3 deletions .babelrc
@@ -1,6 +1,5 @@
{
"presets": [
"env"
],
"plugins": ["transform-runtime"]
"@babel/env"
]
}
23 changes: 14 additions & 9 deletions package.json
Expand Up @@ -8,11 +8,12 @@
"license": "MIT",
"private": false,
"scripts": {
"pretest": "npm run build && npm run lint",
"pretest": "yarn run build && yarn run lint",
"lint": "eslint src",
"test": "jest --coverage",
"build": "babel src --out-dir lib",
"prepublish": "npm run build"
"prepush": "yarn run test",
"prepare": "yarn run build"
},
"keywords": [
"string",
Expand All @@ -33,12 +34,16 @@
]
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.1",
"eslint": "^4.19.1",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-plugin-import": "^2.9.0",
"jest": "^22.4.3"
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"babel-core": "^7.0.0-0",
"babel-jest": "^23.4.2",
"eslint": "^5.5.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.14.0",
"husky": "^0.14.3",
"jest": "^23.5.0",
"regenerator-runtime": "^0.12.1"
}
}
2 changes: 1 addition & 1 deletion test/index.spec.js
@@ -1,4 +1,4 @@
import converter, { convertStringToNumber } from '../lib';
import converter, { convertStringToNumber } from '../src';

test('default export | convert string "2" to integer 2', () => {
const input = '2';
Expand Down

0 comments on commit 5425fce

Please sign in to comment.