package.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {
  2. "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
  3. "name": "glob",
  4. "description": "the most correct and second fastest glob implementation in JavaScript",
  5. "version": "9.0.0",
  6. "repository": {
  7. "type": "git",
  8. "url": "git://github.com/isaacs/node-glob.git"
  9. },
  10. "main": "./dist/cjs/index-cjs.js",
  11. "module": "./dist/mjs/index.js",
  12. "exports": {
  13. ".": {
  14. "import": {
  15. "types": "./dist/mjs/index.d.ts",
  16. "default": "./dist/mjs/index.js"
  17. },
  18. "require": {
  19. "types": "./dist/cjs/index-cjs.d.ts",
  20. "default": "./dist/cjs/index.js"
  21. }
  22. }
  23. },
  24. "files": [
  25. "dist"
  26. ],
  27. "scripts": {
  28. "preversion": "npm test",
  29. "postversion": "npm publish",
  30. "prepublishOnly": "git push origin --follow-tags",
  31. "preprepare": "rm -rf dist",
  32. "prepare": "tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
  33. "postprepare": "bash fixup.sh",
  34. "pretest": "npm run prepare",
  35. "presnap": "npm run prepare",
  36. "test": "c8 tap",
  37. "snap": "c8 tap",
  38. "format": "prettier --write . --loglevel warn",
  39. "typedoc": "typedoc --tsconfig tsconfig-esm.json ./src/*.ts",
  40. "prepublish": "npm run benchclean",
  41. "profclean": "rm -f v8.log profile.txt",
  42. "test-regen": "npm run profclean && TEST_REGEN=1 node --no-warnings --loader ts-node/esm test/00-setup.ts",
  43. "prebench": "npm run prepare",
  44. "bench": "bash benchmark.sh",
  45. "preprof": "npm run prepare",
  46. "prof": "bash prof.sh",
  47. "benchclean": "node benchclean.js"
  48. },
  49. "prettier": {
  50. "semi": false,
  51. "printWidth": 75,
  52. "tabWidth": 2,
  53. "useTabs": false,
  54. "singleQuote": true,
  55. "jsxSingleQuote": false,
  56. "bracketSameLine": true,
  57. "arrowParens": "avoid",
  58. "endOfLine": "lf"
  59. },
  60. "dependencies": {
  61. "fs.realpath": "^1.0.0",
  62. "minimatch": "^7.3.0",
  63. "minipass": "^4.2.4",
  64. "path-scurry": "^1.5.0"
  65. },
  66. "devDependencies": {
  67. "@types/node": "^18.11.18",
  68. "@types/tap": "^15.0.7",
  69. "c8": "^7.12.0",
  70. "eslint-config-prettier": "^8.6.0",
  71. "mkdirp": "^2.0.0",
  72. "prettier": "^2.8.3",
  73. "rimraf": "^4.1.1",
  74. "tap": "^16.3.4",
  75. "ts-node": "^10.9.1",
  76. "typedoc": "^0.23.24",
  77. "typescript": "^4.9.4"
  78. },
  79. "tap": {
  80. "before": "test/00-setup.ts",
  81. "coverage": false,
  82. "node-arg": [
  83. "--no-warnings",
  84. "--loader",
  85. "ts-node/esm"
  86. ],
  87. "ts": false
  88. },
  89. "license": "ISC",
  90. "funding": {
  91. "url": "https://github.com/sponsors/isaacs"
  92. },
  93. "engines": {
  94. "node": ">=16"
  95. }
  96. }