|
1 | 1 | { |
2 | 2 | "name": "react-loading-switch", |
3 | | - "version": "1.0.0", |
| 3 | + "version": "1.0.1", |
4 | 4 | "description": "React component API for easily composing the render logic surrounding react-apollo data fetching, loading, and error handling", |
| 5 | + "browser": "lib/index.js", |
5 | 6 | "main": "lib/index.js", |
6 | 7 | "module": "src/index.js", |
| 8 | + "files": ["lib/"], |
7 | 9 | "scripts": { |
8 | 10 | "lint": "./node_modules/.bin/eslint src/.", |
9 | 11 | "lint-fix": "npm run lint -- --fix", |
10 | 12 | "flow-typed-install": "flow-typed install", |
11 | 13 | "flow": "flow", |
| 14 | + "prepublishOnly": "npm run ci-test && npm run build", |
12 | 15 | "build": "npm run build:babel && npm run build:flow", |
13 | 16 | "build:babel": "babel src/ -d lib", |
14 | 17 | "build:flow": "flow-copy-source src lib", |
15 | | - "ci-test": "NODE_ENV=test npm run build && npm run flow && npm run jest", |
16 | | - "test": "NODE_ENV=test npm run build && npm run jest", |
| 18 | + "ci-test": "npm run build && npm run lint && npm run flow && npm run jest", |
| 19 | + "test": "npm run build && npm run jest", |
17 | 20 | "jest": "jest --testMatch **/test/*.js --verbose", |
18 | 21 | "test-update": "npm run test -- -u" |
19 | 22 | }, |
|
83 | 86 | "regenerator-runtime": "^0.11.1" |
84 | 87 | }, |
85 | 88 | "dependencies": { |
86 | | - "react": "^16.3.2" |
87 | 89 | } |
88 | 90 | } |
0 commit comments