package.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. {
  2. "name": "cosmiconfig",
  3. "version": "8.2.0",
  4. "description": "Find and load configuration from a package.json property, rc file, or CommonJS module",
  5. "main": "dist/index.js",
  6. "types": "dist/index.d.ts",
  7. "files": [
  8. "dist"
  9. ],
  10. "scripts": {
  11. "clean": "del-cli --dot=true \"./dist/**/*\"",
  12. "build": "npm run clean && npm run build:compile && npm run build:types",
  13. "build:compile": "cross-env NODE_ENV=production babel src -d dist --verbose --extensions .js,.ts --ignore \"**/**/*.test.js\",\"**/**/*.test.ts\" --source-maps",
  14. "build:types": "cross-env NODE_ENV=production tsc --project tsconfig.types.json",
  15. "dev": "npm run clean && npm run build:compile -- --watch",
  16. "lint": "eslint --ext .js,.ts . && npm run lint:md",
  17. "lint:fix": "eslint --ext .js,.ts . --fix",
  18. "lint:md": "remark-preset-davidtheclark",
  19. "format": "prettier \"**/*.{js,ts,json,yml,yaml}\" --write",
  20. "format:md": "remark-preset-davidtheclark --format",
  21. "format:check": "prettier \"**/*.{js,ts,json,yml,yaml}\" --check",
  22. "typescript": "tsc",
  23. "test": "vitest run --coverage",
  24. "test:watch": "vitest",
  25. "check:all": "npm run test && npm run typescript && npm run lint && npm run format:check",
  26. "prepublishOnly": "npm run check:all && npm run build"
  27. },
  28. "husky": {
  29. "hooks": {
  30. "pre-commit": "lint-staged && npm run typescript && npm run test",
  31. "pre-push": "npm run check:all"
  32. }
  33. },
  34. "lint-staged": {
  35. "*.{js,ts}": [
  36. "eslint --fix",
  37. "prettier --write"
  38. ],
  39. "*.{json,yml,yaml}": [
  40. "prettier --write"
  41. ],
  42. "*.md": [
  43. "remark-preset-davidtheclark",
  44. "remark-preset-davidtheclark --format"
  45. ]
  46. },
  47. "repository": {
  48. "type": "git",
  49. "url": "git+https://github.com/cosmiconfig/cosmiconfig.git"
  50. },
  51. "keywords": [
  52. "load",
  53. "configuration",
  54. "config"
  55. ],
  56. "author": "Daniel Fischer <daniel@d-fischer.dev>",
  57. "contributors": [
  58. "David Clark <david.dave.clark@gmail.com>",
  59. "Bogdan Chadkin <trysound@yandex.ru>",
  60. "Suhas Karanth <sudo.suhas@gmail.com>"
  61. ],
  62. "funding": "https://github.com/sponsors/d-fischer",
  63. "license": "MIT",
  64. "bugs": {
  65. "url": "https://github.com/cosmiconfig/cosmiconfig/issues"
  66. },
  67. "homepage": "https://github.com/cosmiconfig/cosmiconfig#readme",
  68. "prettier": {
  69. "trailingComma": "all",
  70. "arrowParens": "always",
  71. "singleQuote": true,
  72. "printWidth": 80,
  73. "tabWidth": 2
  74. },
  75. "babel": {
  76. "presets": [
  77. [
  78. "@babel/preset-env",
  79. {
  80. "targets": {
  81. "node": "14"
  82. },
  83. "exclude": [
  84. "proposal-dynamic-import"
  85. ]
  86. }
  87. ],
  88. "@babel/preset-typescript"
  89. ]
  90. },
  91. "dependencies": {
  92. "import-fresh": "^3.2.1",
  93. "js-yaml": "^4.1.0",
  94. "parse-json": "^5.0.0",
  95. "path-type": "^4.0.0"
  96. },
  97. "devDependencies": {
  98. "@babel/cli": "^7.19.3",
  99. "@babel/core": "^7.20.2",
  100. "@babel/preset-env": "^7.20.2",
  101. "@babel/preset-typescript": "^7.18.6",
  102. "@types/js-yaml": "^4.0.5",
  103. "@types/node": "^14.0.22",
  104. "@types/parse-json": "^4.0.0",
  105. "@typescript-eslint/eslint-plugin": "^5.54.1",
  106. "@typescript-eslint/parser": "^5.54.1",
  107. "@vitest/coverage-istanbul": "^0.29.2",
  108. "cross-env": "^7.0.2",
  109. "del": "^5.1.0",
  110. "del-cli": "^3.0.1",
  111. "eslint": "^8.36.0",
  112. "eslint-config-davidtheclark-node": "^0.2.2",
  113. "eslint-config-prettier": "^6.11.0",
  114. "eslint-import-resolver-typescript": "^3.5.3",
  115. "eslint-plugin-import": "^2.22.0",
  116. "eslint-plugin-node": "^11.1.0",
  117. "eslint-plugin-vitest": "^0.0.54",
  118. "husky": "^4.2.5",
  119. "lint-staged": "^10.2.11",
  120. "make-dir": "^3.1.0",
  121. "parent-module": "^2.0.0",
  122. "prettier": "^2.0.5",
  123. "remark-preset-davidtheclark": "^0.12.0",
  124. "typescript": "^4.9.5",
  125. "vitest": "^0.29.2"
  126. },
  127. "engines": {
  128. "node": ">=14"
  129. }
  130. }