|
31 | 31 | "graphql-compose-pagination": ">=1.1.5" |
32 | 32 | }, |
33 | 33 | "peerDependencies": { |
34 | | - "graphql-compose": ">=2.9.0 || >=3.0.0", |
| 34 | + "graphql-compose": ">=3.0.2", |
35 | 35 | "mongoose": ">=4.0.0 || >=5.0.0" |
36 | 36 | }, |
37 | 37 | "devDependencies": { |
|
47 | 47 | "eslint": "^4.17.0", |
48 | 48 | "eslint-config-airbnb-base": "^12.1.0", |
49 | 49 | "eslint-config-prettier": "^2.9.0", |
50 | | - "eslint-plugin-flowtype": "^2.43.0", |
| 50 | + "eslint-plugin-flowtype": "^2.44.0", |
51 | 51 | "eslint-plugin-import": "^2.8.0", |
52 | 52 | "eslint-plugin-prettier": "^2.6.0", |
53 | 53 | "flow-bin": "^0.65.0", |
54 | 54 | "graphql": "0.13.0", |
55 | | - "graphql-compose": "^3.0.0-beta.5", |
| 55 | + "graphql-compose": "^3.0.2", |
56 | 56 | "graphql-compose-connection": ">=2.5.7", |
57 | 57 | "graphql-compose-pagination": ">=1.1.5", |
58 | | - "jest": "^22.2.2", |
| 58 | + "jest": "^22.3.0", |
59 | 59 | "mongodb-memory-server": "^1.6.5", |
60 | | - "mongoose": "^5.0.4", |
| 60 | + "mongoose": "^5.0.5", |
61 | 61 | "prettier": "^1.10.2", |
62 | 62 | "request": "^2.83.0", |
63 | 63 | "rimraf": "^2.6.2", |
|
74 | 74 | ] |
75 | 75 | }, |
76 | 76 | "scripts": { |
77 | | - "build": "npm run build-cjs && npm run build-flow", |
78 | | - "build-cjs": "rimraf lib && babel src --ignore __tests__,__mocks__ -d lib", |
79 | | - "build-flow": "find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/lib\\//g'`.flow; done", |
| 77 | + "build": "npm run build-lib && npm run build-es && npm run build-node8", |
| 78 | + "build-lib": "rimraf lib && BABEL_ENV=lib babel src --ignore __tests__,__mocks__ -d lib && COPY_TO_FOLDER=lib npm run build-flow", |
| 79 | + "build-es": "rimraf es && BABEL_ENV=es babel src --ignore __tests__,__mocks__ -d es && COPY_TO_FOLDER=es npm run build-flow", |
| 80 | + "build-node8": "rimraf node8 && BABEL_ENV=node8 babel src --ignore __tests__,__mocks__ -d node8 && COPY_TO_FOLDER=node8 npm run build-flow", |
| 81 | + "build-flow": "echo `$1` && find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo ./${COPY_TO_FOLDER:-lib}$filepath | sed 's/.\\/src\\//\\//g'`.flow; done", |
80 | 82 | "watch": "jest --watch", |
81 | 83 | "coverage": "jest --coverage --maxWorkers 2", |
82 | 84 | "lint": "eslint --ext .js ./src", |
|
0 commit comments