package.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {
  2. "name": "cosmiconfig",
  3. "version": "4.0.0",
  4. "description": "Find and load configuration from a package.json property, rc file, or CommonJS module",
  5. "main": "dist/index.js",
  6. "files": [
  7. "dist"
  8. ],
  9. "scripts": {
  10. "precommit": "lint-staged && jest && flow check",
  11. "lint": "eslint .",
  12. "lint:fix": "eslint . --fix",
  13. "format": "prettier --write \"{src/*.js,test/*.js}\"",
  14. "pretest": "npm run lint && flow check",
  15. "test": "jest --coverage",
  16. "test:watch": "jest --watch",
  17. "coverage": "jest --coverage --coverageReporters=html --coverageReporters=text",
  18. "build": "flow-remove-types src --out-dir dist --quiet",
  19. "prepublishOnly": "npm run build"
  20. },
  21. "lint-staged": {
  22. "*.js": [
  23. "eslint --fix",
  24. "prettier --write",
  25. "git add"
  26. ]
  27. },
  28. "repository": {
  29. "type": "git",
  30. "url": "git+https://github.com/davidtheclark/cosmiconfig.git"
  31. },
  32. "keywords": [
  33. "load",
  34. "configuration",
  35. "config"
  36. ],
  37. "author": "David Clark <david.dave.clark@gmail.com>",
  38. "contributors": [
  39. "Bogdan Chadkin <trysound@yandex.ru>",
  40. "Suhas Karanth <sudo.suhas@gmail.com>"
  41. ],
  42. "license": "MIT",
  43. "bugs": {
  44. "url": "https://github.com/davidtheclark/cosmiconfig/issues"
  45. },
  46. "homepage": "https://github.com/davidtheclark/cosmiconfig#readme",
  47. "prettier": {
  48. "trailingComma": "es5",
  49. "singleQuote": true,
  50. "printWidth": 80,
  51. "tabWidth": 2
  52. },
  53. "jest": {
  54. "testEnvironment": "node",
  55. "collectCoverageFrom": [
  56. "src/*.js"
  57. ],
  58. "coverageThreshold": {
  59. "global": {
  60. "branches": 100,
  61. "functions": 100,
  62. "lines": 100,
  63. "statements": 100
  64. }
  65. }
  66. },
  67. "babel": {
  68. "plugins": [
  69. "transform-flow-strip-types"
  70. ]
  71. },
  72. "dependencies": {
  73. "is-directory": "^0.3.1",
  74. "js-yaml": "^3.9.0",
  75. "parse-json": "^4.0.0",
  76. "require-from-string": "^2.0.1"
  77. },
  78. "devDependencies": {
  79. "babel-eslint": "^8.0.3",
  80. "babel-plugin-transform-flow-strip-types": "^6.22.0",
  81. "eslint": "^4.12.1",
  82. "eslint-config-davidtheclark-node": "^0.2.2",
  83. "eslint-config-prettier": "^2.9.0",
  84. "eslint-plugin-flowtype": "^2.39.1",
  85. "eslint-plugin-node": "^5.2.1",
  86. "flow-bin": "^0.54.1",
  87. "flow-remove-types": "^1.2.3",
  88. "husky": "^0.14.3",
  89. "jest": "^21.2.1",
  90. "lint-staged": "^6.0.0",
  91. "prettier": "^1.8.2"
  92. },
  93. "engines": {
  94. "node": ">=4"
  95. }
  96. }