package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {
  2. "name": "is-regex",
  3. "version": "1.2.0",
  4. "description": "Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag",
  5. "author": "Jordan Harband <ljharb@gmail.com>",
  6. "funding": {
  7. "url": "https://github.com/sponsors/ljharb"
  8. },
  9. "license": "MIT",
  10. "main": "index.js",
  11. "scripts": {
  12. "prepack": "npmignore --auto --commentLines=autogenerated",
  13. "prepublishOnly": "safe-publish-latest",
  14. "prepublish": "not-in-publish || npm run prepublishOnly",
  15. "pretest": "npm run lint",
  16. "test": "npm run tests-only && npm run test:harmony",
  17. "tests-only": "nyc node test",
  18. "test:harmony": "nyc node --harmony --es-staging test",
  19. "test:corejs": "nyc tape test-corejs.js",
  20. "posttest": "npx npm@'>=10.2' audit --production",
  21. "prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
  22. "lint": "eslint --ext=js,mjs .",
  23. "postlint": "tsc -p . && attw -P",
  24. "version": "auto-changelog && git add CHANGELOG.md",
  25. "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
  26. },
  27. "repository": {
  28. "type": "git",
  29. "url": "git://github.com/inspect-js/is-regex.git"
  30. },
  31. "bugs": {
  32. "url": "https://github.com/inspect-js/is-regex/issues"
  33. },
  34. "homepage": "https://github.com/inspect-js/is-regex",
  35. "keywords": [
  36. "regex",
  37. "regexp",
  38. "is",
  39. "regular expression",
  40. "regular",
  41. "expression"
  42. ],
  43. "dependencies": {
  44. "call-bind": "^1.0.7",
  45. "gopd": "^1.1.0",
  46. "has-tostringtag": "^1.0.2",
  47. "hasown": "^2.0.2"
  48. },
  49. "devDependencies": {
  50. "@arethetypeswrong/cli": "^0.17.0",
  51. "@ljharb/eslint-config": "^21.1.1",
  52. "@ljharb/tsconfig": "^0.2.0",
  53. "@types/call-bind": "^1.0.5",
  54. "@types/core-js": "^2.5.8",
  55. "@types/for-each": "^0.3.3",
  56. "@types/tape": "^5.6.5",
  57. "auto-changelog": "^2.5.0",
  58. "core-js": "^3.39.0",
  59. "eclint": "^2.8.1",
  60. "encoding": "^0.1.13",
  61. "eslint": "=8.8.0",
  62. "for-each": "^0.3.3",
  63. "in-publish": "^2.0.1",
  64. "npmignore": "^0.3.1",
  65. "nyc": "^10.3.2",
  66. "safe-publish-latest": "^2.0.0",
  67. "tape": "^5.9.0",
  68. "typescript": "^5.8.0-dev.20241129"
  69. },
  70. "testling": {
  71. "files": "test/index.js",
  72. "browsers": [
  73. "iexplore/6.0..latest",
  74. "firefox/3.0..6.0",
  75. "firefox/15.0..latest",
  76. "firefox/nightly",
  77. "chrome/4.0..10.0",
  78. "chrome/20.0..latest",
  79. "chrome/canary",
  80. "opera/10.0..latest",
  81. "opera/next",
  82. "safari/4.0..latest",
  83. "ipad/6.0..latest",
  84. "iphone/6.0..latest",
  85. "android-browser/4.2"
  86. ]
  87. },
  88. "engines": {
  89. "node": ">= 0.4"
  90. },
  91. "auto-changelog": {
  92. "output": "CHANGELOG.md",
  93. "template": "keepachangelog",
  94. "unreleased": false,
  95. "commitLimit": false,
  96. "backfillLimit": false,
  97. "hideCredit": true
  98. },
  99. "publishConfig": {
  100. "ignore": [
  101. ".github/workflows",
  102. "test-corejs.js"
  103. ]
  104. }
  105. }