UNPKG

graphql-compose

Version:

GraphQL schema builder from different data sources with middleware extensions.

97 lines (96 loc) 3.75 kB
{ "name": "graphql-compose", "version": "7.4.1", "description": "GraphQL schema builder from different data sources with middleware extensions.", "engines": { "node": ">= 6" }, "files": [ "lib", "esm", "mjs" ], "main": "lib/index.js", "module": "mjs/index.mjs", "types": "lib/index.d.ts", "repository": { "type": "git", "url": "https://github.com/graphql-compose/graphql-compose.git" }, "keywords": [ "graphql", "compose" ], "license": "MIT", "bugs": { "url": "https://github.com/graphql-compose/graphql-compose/issues" }, "homepage": "https://github.com/graphql-compose/graphql-compose", "peerDependencies": { "graphql": "~0.13.0 || ^14.0.0" }, "devDependencies": { "@babel/cli": "^7.6.4", "@babel/core": "^7.6.4", "@babel/plugin-proposal-class-properties": "^7.5.5", "@babel/plugin-proposal-object-rest-spread": "^7.6.2", "@babel/plugin-transform-flow-strip-types": "^7.6.3", "@babel/plugin-transform-runtime": "^7.6.2", "@babel/preset-env": "^7.6.3", "@babel/preset-flow": "^7.0.0", "@types/graphql": "^14.5.0", "babel-core": "^7.0.0-bridge.0", "babel-eslint": "^10.0.3", "babel-jest": "^24.9.0", "cz-conventional-changelog": "^3.0.2", "eslint": "^6.6.0", "eslint-config-airbnb-base": "^14.0.0", "eslint-config-prettier": "^6.5.0", "eslint-plugin-flowtype": "^4.3.0", "eslint-plugin-import": "^2.18.2", "eslint-plugin-prettier": "^3.1.1", "flow-bin": "0.110.0", "graphql": "14.5.8", "jest": "^24.9.0", "prettier": "^1.18.2", "rimraf": "^3.0.0", "semantic-release": "^15.13.28", "tslint": "^5.20.0", "tslint-config-prettier": "^1.18.0", "tslint-plugin-prettier": "^2.0.1", "typescript": "^3.6.4" }, "dependencies": { "graphql-type-json": "^0.3.0", "object-path": "^0.11.4" }, "config": { "commitizen": { "path": "./node_modules/cz-conventional-changelog" } }, "scripts": { "build": "npm run build-cjs && npm run build-mjs && npm run build-esm", "build-cjs": "rimraf lib && BABEL_ENV=cjs babel src --ignore __tests__,__mocks__ -d lib && COPY_TO_FOLDER=lib npm run build-flow && COPY_TO_FOLDER=lib npm run build-ts", "build-esm": "rimraf esm && BABEL_ENV=esm babel src --ignore __tests__,__mocks__ -d esm && COPY_TO_FOLDER=esm npm run build-flow && COPY_TO_FOLDER=esm npm run build-ts", "build-mjs": "rimraf mjs && BABEL_ENV=mjs babel src --ignore __tests__,__mocks__ -d mjs && yarn build-mjs-rename && COPY_TO_FOLDER=mjs npm run build-flow", "build-mjs-rename": "find ./mjs -name \"*.js\" -exec bash -c 'mv \"$1\" \"${1%.js}\".mjs' - '{}' \\;", "build-flow": "find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo ./${COPY_TO_FOLDER:-lib}$filepath | sed 's/.\\/src\\//\\//g'`.flow; done", "build-ts": "find ./src -name '*.d.ts' -not -path '*/__*' | while read filepath; do cp $filepath `echo ./${COPY_TO_FOLDER:-lib}$filepath | sed 's/.\\/src\\//\\//g'`; done", "watch": "jest --watch", "coverage": "jest --coverage --maxWorkers 4", "lint": "npm run eslint && npm run tslint", "eslint": "eslint --ext .js ./src", "tslint": "tslint -p . \"src/**/*.d.ts\"", "tscheck": "tsc --noEmit", "flow": "./node_modules/.bin/flow", "test": "npm run coverage && npm run lint && npm run flow && npm run tscheck", "semantic-release": "semantic-release", "test-vers": "yarn add graphql@0.13.0 --dev && jest && yarn add graphql@14.0.0 --dev && jest" }, "collective": { "type": "opencollective", "url": "https://opencollective.com/graphql-compose", "logo": "https://opencollective.com/graphql-compose/logo.txt" } }