package.json 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. {
  2. "name": "globalthis",
  3. "version": "1.0.3",
  4. "author": "Jordan Harband <ljharb@gmail.com>",
  5. "funding": {
  6. "url": "https://github.com/sponsors/ljharb"
  7. },
  8. "description": "ECMAScript spec-compliant polyfill/shim for `globalThis`",
  9. "license": "MIT",
  10. "main": "index.js",
  11. "browser": {
  12. "./implementation": "./implementation.browser.js"
  13. },
  14. "scripts": {
  15. "prepack": "npmignore --auto --commentLines=autogenerated",
  16. "prepublishOnly": "safe-publish-latest && npm run build",
  17. "prepublish": "not-in-publish || npm run prepublishOnly",
  18. "pretest": "npm run lint",
  19. "test": "npm run --silent tests-only",
  20. "posttest": "aud --production",
  21. "tests-only": "nyc tape 'test/**/*.js'",
  22. "lint": "eslint --ext=js,mjs .",
  23. "postlint": "es-shim-api --bound --property",
  24. "build": "mkdir -p dist && browserify browserShim.js > dist/browser.js",
  25. "version": "auto-changelog && git add CHANGELOG.md",
  26. "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
  27. },
  28. "repository": {
  29. "type": "git",
  30. "url": "git://github.com/ljharb/System.global.git"
  31. },
  32. "keywords": [
  33. "window",
  34. "self",
  35. "global",
  36. "globalThis",
  37. "System.global",
  38. "global object",
  39. "global this value",
  40. "ECMAScript",
  41. "es-shim API",
  42. "polyfill",
  43. "shim"
  44. ],
  45. "dependencies": {
  46. "define-properties": "^1.1.3"
  47. },
  48. "devDependencies": {
  49. "@es-shims/api": "^2.2.3",
  50. "@ljharb/eslint-config": "^21.0.0",
  51. "aud": "^2.0.0",
  52. "auto-changelog": "^2.4.0",
  53. "browserify": "^16.5.2",
  54. "eslint": "=8.8.0",
  55. "for-each": "^0.3.3",
  56. "in-publish": "^2.0.1",
  57. "is": "^3.3.0",
  58. "nyc": "^10.3.2",
  59. "safe-publish-latest": "^2.0.0",
  60. "tape": "^5.5.3"
  61. },
  62. "testling": {
  63. "files": "test/index.js",
  64. "browsers": [
  65. "iexplore/6.0..latest",
  66. "firefox/3.0..6.0",
  67. "firefox/15.0..latest",
  68. "firefox/nightly",
  69. "chrome/4.0..10.0",
  70. "chrome/20.0..latest",
  71. "chrome/canary",
  72. "opera/10.0..latest",
  73. "opera/next",
  74. "safari/4.0..latest",
  75. "ipad/6.0..latest",
  76. "iphone/6.0..latest",
  77. "android-browser/4.2"
  78. ]
  79. },
  80. "engines": {
  81. "node": ">= 0.4"
  82. },
  83. "auto-changelog": {
  84. "output": "CHANGELOG.md",
  85. "template": "keepachangelog",
  86. "unreleased": false,
  87. "commitLimit": false,
  88. "backfillLimit": false,
  89. "hideCredit": true
  90. },
  91. "publishConfig": {
  92. "ignore": [
  93. "browserShim.js",
  94. ".github/workflows"
  95. ]
  96. }
  97. }