package.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {
  2. "name": "graphql-type-json",
  3. "version": "0.3.2",
  4. "description": "JSON scalar types for GraphQL.js",
  5. "files": [
  6. "lib",
  7. "es"
  8. ],
  9. "main": "lib/index.js",
  10. "module": "es/index.js",
  11. "types": "lib/index.d.ts",
  12. "scripts": {
  13. "build": "npm run build:cjs && npm run build:esm && npm run build:types",
  14. "build:cjs": "babel -d lib --delete-dir-on-start src",
  15. "build:esm": "babel --env-name esm -d es --delete-dir-on-start src",
  16. "build:types": "cpy types/*.d.ts lib",
  17. "format": "eslint --fix . && npm run prettier -- --write",
  18. "lint": "eslint . && npm run prettier -- -l",
  19. "prepublish": "npm run build",
  20. "prettier": "prettier --ignore-path .eslintignore '**/*.{md,ts,tsx}'",
  21. "tdd": "jest --watch",
  22. "test": "npm run lint && npm run test:ts && npm run testonly -- --coverage",
  23. "test:ts": "dtslint types",
  24. "testonly": "jest --runInBand --verbose"
  25. },
  26. "husky": {
  27. "hooks": {
  28. "pre-commit": "lint-staged"
  29. }
  30. },
  31. "lint-staged": {
  32. "*.js": "eslint --fix",
  33. "*.{md,ts}": "prettier --write"
  34. },
  35. "prettier": {
  36. "printWidth": 79,
  37. "singleQuote": true,
  38. "trailingComma": "all"
  39. },
  40. "jest": {
  41. "collectCoverageFrom": [
  42. "src/**"
  43. ],
  44. "testEnvironment": "node"
  45. },
  46. "repository": {
  47. "type": "git",
  48. "url": "git+https://github.com/taion/graphql-type-json.git"
  49. },
  50. "keywords": [
  51. "graphql"
  52. ],
  53. "author": "Jimmy Jia",
  54. "license": "MIT",
  55. "bugs": {
  56. "url": "https://github.com/taion/graphql-type-json/issues"
  57. },
  58. "homepage": "https://github.com/taion/graphql-type-json#readme",
  59. "devDependencies": {
  60. "@babel/cli": "^7.10.1",
  61. "@babel/core": "^7.10.2",
  62. "@babel/preset-env": "^7.10.2",
  63. "babel-jest": "^26.0.1",
  64. "codecov": "^3.7.0",
  65. "cpy-cli": "^3.1.1",
  66. "dtslint": "^3.6.11",
  67. "eslint": "^7.2.0",
  68. "eslint-config-4catalyzer": "^1.1.2",
  69. "eslint-config-4catalyzer-jest": "^2.0.7",
  70. "eslint-config-prettier": "^6.11.0",
  71. "eslint-plugin-import": "^2.21.2",
  72. "eslint-plugin-jest": "^23.13.2",
  73. "eslint-plugin-prettier": "^3.1.3",
  74. "graphql": "^15.1.0",
  75. "husky": "^4.2.5",
  76. "jest": "^26.0.1",
  77. "lint-staged": "^10.2.9",
  78. "prettier": "^2.0.5",
  79. "typescript": "^3.9.5"
  80. },
  81. "peerDependencies": {
  82. "graphql": ">=0.8.0"
  83. }
  84. }