From d8b2451a6706617c6ac65c1f5d3c5bdf3ec4b378 Mon Sep 17 00:00:00 2001 From: stoffern Date: Thu, 11 Aug 2016 13:41:40 +0200 Subject: [PATCH] refactor(dep): imporved dep --- .travis.yml | 4 ++++ package.json | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6276265..b8647da 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,8 +9,12 @@ node_js: - '4' before_install: - npm i -g npm@^2.0.0 + - npm install -g eslint + - npm install -g eslint-plugin-react before_script: - npm prune +script: + - npm run test after_success: - npm run semantic-release branches: diff --git a/package.json b/package.json index 86d6cc8..b946ffa 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,7 @@ "description": "", "main": "src/index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", - "check": "eslint .", + "test": "eslint .", "semantic-release": "semantic-release pre && npm publish && semantic-release post" }, "repository": { @@ -31,6 +30,10 @@ "react-native-nativebutton": "^0.1.3", "react-native-sglistview": "^0.3.2" }, + "peerDependencies": { + "react-native": ">=0.25.0", + "react": ">=0.14.0 || ^15.0.0" + }, "homepage": "https://github.com/stoffern/react-native-mediapicker#readme", "devDependencies": { "cz-conventional-changelog": "^1.1.7",