package.json 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {
  2. "name": "balanced-match",
  3. "description": "Match balanced character pairs, like \"{\" and \"}\"",
  4. "version": "4.0.4",
  5. "files": [
  6. "dist"
  7. ],
  8. "repository": {
  9. "type": "git",
  10. "url": "git://github.com/juliangruber/balanced-match.git"
  11. },
  12. "exports": {
  13. "./package.json": "./package.json",
  14. ".": {
  15. "import": {
  16. "types": "./dist/esm/index.d.ts",
  17. "default": "./dist/esm/index.js"
  18. },
  19. "require": {
  20. "types": "./dist/commonjs/index.d.ts",
  21. "default": "./dist/commonjs/index.js"
  22. }
  23. }
  24. },
  25. "type": "module",
  26. "scripts": {
  27. "preversion": "npm test",
  28. "postversion": "npm publish",
  29. "prepublishOnly": "git push origin --follow-tags",
  30. "prepare": "tshy",
  31. "pretest": "npm run prepare",
  32. "presnap": "npm run prepare",
  33. "test": "tap",
  34. "snap": "tap",
  35. "format": "prettier --write .",
  36. "benchmark": "node benchmark/index.js",
  37. "typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts"
  38. },
  39. "devDependencies": {
  40. "@types/brace-expansion": "^1.1.2",
  41. "@types/node": "^25.2.1",
  42. "mkdirp": "^3.0.1",
  43. "prettier": "^3.3.2",
  44. "tap": "^21.6.2",
  45. "tshy": "^3.0.2",
  46. "typedoc": "^0.28.5"
  47. },
  48. "keywords": [
  49. "match",
  50. "regexp",
  51. "test",
  52. "balanced",
  53. "parse"
  54. ],
  55. "license": "MIT",
  56. "engines": {
  57. "node": "18 || 20 || >=22"
  58. },
  59. "tshy": {
  60. "exports": {
  61. "./package.json": "./package.json",
  62. ".": "./src/index.ts"
  63. }
  64. },
  65. "main": "./dist/commonjs/index.js",
  66. "types": "./dist/commonjs/index.d.ts",
  67. "module": "./dist/esm/index.js"
  68. }