package.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. {
  2. "name": "is-regex",
  3. "version": "1.2.1",
  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-bound": "^1.0.2",
  45. "gopd": "^1.2.0",
  46. "has-tostringtag": "^1.0.2",
  47. "hasown": "^2.0.2"
  48. },
  49. "devDependencies": {
  50. "@arethetypeswrong/cli": "^0.17.1",
  51. "@ljharb/eslint-config": "^21.1.1",
  52. "@ljharb/tsconfig": "^0.2.2",
  53. "@types/core-js": "^2.5.8",
  54. "@types/for-each": "^0.3.3",
  55. "@types/tape": "^5.6.5",
  56. "auto-changelog": "^2.5.0",
  57. "core-js": "^3.39.0",
  58. "eclint": "^2.8.1",
  59. "encoding": "^0.1.13",
  60. "eslint": "=8.8.0",
  61. "for-each": "^0.3.3",
  62. "in-publish": "^2.0.1",
  63. "npmignore": "^0.3.1",
  64. "nyc": "^10.3.2",
  65. "safe-publish-latest": "^2.0.0",
  66. "tape": "^5.9.0",
  67. "typescript": "^5.8.0-dev.20241129"
  68. },
  69. "testling": {
  70. "files": "test/index.js",
  71. "browsers": [
  72. "iexplore/6.0..latest",
  73. "firefox/3.0..6.0",
  74. "firefox/15.0..latest",
  75. "firefox/nightly",
  76. "chrome/4.0..10.0",
  77. "chrome/20.0..latest",
  78. "chrome/canary",
  79. "opera/10.0..latest",
  80. "opera/next",
  81. "safari/4.0..latest",
  82. "ipad/6.0..latest",
  83. "iphone/6.0..latest",
  84. "android-browser/4.2"
  85. ]
  86. },
  87. "engines": {
  88. "node": ">= 0.4"
  89. },
  90. "auto-changelog": {
  91. "output": "CHANGELOG.md",
  92. "template": "keepachangelog",
  93. "unreleased": false,
  94. "commitLimit": false,
  95. "backfillLimit": false,
  96. "hideCredit": true
  97. },
  98. "publishConfig": {
  99. "ignore": [
  100. ".github/workflows",
  101. "test-corejs.js"
  102. ]
  103. }
  104. }