Skip to content

Commit 7d818ed

Browse files
committed
cleanup package.json
1 parent 3d831df commit 7d818ed

File tree

3 files changed

+10
-22
lines changed

3 files changed

+10
-22
lines changed

.babelrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

babel.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
module.exports = {
2+
env: {
3+
test: {
4+
presets: ['module:metro-react-native-babel-preset'],
5+
retainLines: true,
6+
},
7+
},
28
presets: ['module:metro-react-native-babel-preset'],
39
retainLines: true,
410
plugins: ['transform-inline-environment-variables'],

package.json

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@
5353
"url-parse": "^1.2.0"
5454
},
5555
"devDependencies": {
56+
"@babel/core": "^7.4.0",
57+
"@babel/preset-env": "^7.3.1",
58+
"@babel/runtime": "^7.4.2",
5659
"@react-native-community/async-storage": "1.2.4",
5760
"@react-native-community/eslint-config": "0.0.5",
5861
"@types/prop-types": "^15.5.3",
5962
"@types/react-native": "^0.55.21",
60-
"babel-cli": "^6.23.0",
61-
"babel-core": "^7.0.0-bridge.0",
6263
"babel-jest": "^24.5.0",
63-
"babel-preset-es2015": "^6.22.0",
64-
"babel-preset-react": "^6.22.0",
64+
"babel-preset-react-native": "*",
6565
"eslint": "^5.16.0",
6666
"eslint-plugin-import": "^2.2.0",
6767
"eslint-plugin-uilib": "file:./eslint-rules",
@@ -98,18 +98,5 @@
9898
"transform": {
9999
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js"
100100
}
101-
},
102-
"babel_IGNORE": {
103-
"env": {
104-
"test": {
105-
"presets": [
106-
"react-native"
107-
],
108-
"retainLines": true
109-
}
110-
},
111-
"plugins": [
112-
"transform-inline-environment-variables"
113-
]
114101
}
115102
}

0 commit comments

Comments
 (0)