diff --git a/.travis.yml b/.travis.yml index eca5a6d4..f464b661 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,4 @@ branches: - 'master' node_js: - 'stable' -before_script: - - npm run setup -script: npm run build \ No newline at end of file +script: npm run build diff --git a/package.json b/package.json index e55c25a8..5ecb4fa3 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,6 @@ "scripts": { "build": "sh scripts/build.sh", "clean": "sh scripts/clean.sh", - "setup": "sh scripts/setup.sh", "release": "sh scripts/publish-latest.sh", "release-beta": "sh scripts/publish-beta.sh", "release-local": "sh scripts/publish-local.sh" @@ -47,6 +46,9 @@ "@types/lodash.debounce": "4.0.3", "@types/prop-types": "15.5.2", "@types/react-native": "0.49.5", - "@types/react": "16.4.7" + "@types/react": "16.4.7", + "file-directives": "^1.4.6", + "tslint": "^5.11.0", + "typescript": "^3.1.1" } } diff --git a/scripts/setup.sh b/scripts/setup.sh deleted file mode 100644 index 7d237d18..00000000 --- a/scripts/setup.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash -set -e -npm install -g file-directives@1.4.6 typescript@2.7.1 tslint@5.8.0 diff --git a/tsconfig.json b/tsconfig.json index 89851bf6..c9400d72 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,7 @@ { "compilerOptions": { - "lib": [ - "es6", - "dom" - ], // target Node.js(v6) + "lib": ["es6", "dom"], // target Node.js(v6) + "types": ["react", "react-native"], "module": "commonjs", // export compatibility "target": "es5", // target Node.js(v6) "moduleResolution": "node", // target Node.js(v6) @@ -13,6 +11,7 @@ "noImplicitReturns": true, "removeComments": false, "jsx": "react", - "sourceMap": true + "sourceMap": true, + "skipLibCheck": true } -} \ No newline at end of file +}