package.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. {
  2. "_from": "mitt@^3.0.1",
  3. "_id": "mitt@3.0.1",
  4. "_inBundle": false,
  5. "_integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==",
  6. "_location": "/mitt",
  7. "_phantomChildren": {},
  8. "_requested": {
  9. "type": "range",
  10. "registry": true,
  11. "raw": "mitt@^3.0.1",
  12. "name": "mitt",
  13. "escapedName": "mitt",
  14. "rawSpec": "^3.0.1",
  15. "saveSpec": null,
  16. "fetchSpec": "^3.0.1"
  17. },
  18. "_requiredBy": [
  19. "/"
  20. ],
  21. "_resolved": "https://registry.npmmirror.com/mitt/-/mitt-3.0.1.tgz",
  22. "_shasum": "ea36cf0cc30403601ae074c8f77b7092cdab36d1",
  23. "_spec": "mitt@^3.0.1",
  24. "_where": "E:\\qinduan\\mallbackinfrontend",
  25. "authors": [
  26. "Jason Miller <jason@developit.ca>"
  27. ],
  28. "bugs": {
  29. "url": "https://github.com/developit/mitt/issues"
  30. },
  31. "bundleDependencies": false,
  32. "deprecated": false,
  33. "description": "Tiny 200b functional Event Emitter / pubsub.",
  34. "devDependencies": {
  35. "@types/chai": "^4.2.11",
  36. "@types/mocha": "^7.0.2",
  37. "@types/sinon": "^9.0.4",
  38. "@types/sinon-chai": "^3.2.4",
  39. "@typescript-eslint/eslint-plugin": "^5.61.0",
  40. "@typescript-eslint/parser": "^5.61.0",
  41. "chai": "^4.2.0",
  42. "documentation": "^14.0.2",
  43. "eslint": "^7.32.0",
  44. "eslint-config-developit": "^1.2.0",
  45. "eslint-plugin-compat": "^4.1.4",
  46. "esm": "^3.2.25",
  47. "microbundle": "^0.12.3",
  48. "mocha": "^8.0.1",
  49. "npm-run-all": "^4.1.5",
  50. "prettier": "^2.8.8",
  51. "rimraf": "^3.0.2",
  52. "sinon": "^9.0.2",
  53. "sinon-chai": "^3.5.0",
  54. "ts-node": "^10.9.1",
  55. "typescript": "^4.9.5"
  56. },
  57. "exports": {
  58. "types": "./index.d.ts",
  59. "module": "./dist/mitt.mjs",
  60. "import": "./dist/mitt.mjs",
  61. "require": "./dist/mitt.js",
  62. "default": "./dist/mitt.mjs"
  63. },
  64. "files": [
  65. "dist",
  66. "index.d.ts"
  67. ],
  68. "homepage": "https://github.com/developit/mitt",
  69. "jsnext:main": "dist/mitt.mjs",
  70. "keywords": [
  71. "events",
  72. "eventemitter",
  73. "emitter",
  74. "pubsub"
  75. ],
  76. "license": "MIT",
  77. "main": "dist/mitt.js",
  78. "mocha": {
  79. "extension": [
  80. "ts"
  81. ],
  82. "require": [
  83. "ts-node/register",
  84. "esm"
  85. ],
  86. "spec": [
  87. "test/*_test.ts"
  88. ]
  89. },
  90. "module": "dist/mitt.mjs",
  91. "name": "mitt",
  92. "prettier": {
  93. "singleQuote": true,
  94. "trailingComma": "none"
  95. },
  96. "repository": {
  97. "type": "git",
  98. "url": "git+https://github.com/developit/mitt.git"
  99. },
  100. "scripts": {
  101. "build": "npm-run-all --silent clean -p bundle -s docs",
  102. "bundle": "microbundle -f es,cjs,umd",
  103. "clean": "rimraf dist",
  104. "docs": "documentation readme src/index.ts --section API -q --parse-extension ts",
  105. "lint": "eslint src test --ext ts --ext js",
  106. "mocha": "mocha test",
  107. "release": "npm run -s build -s && npm t && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish",
  108. "test": "npm-run-all --silent typecheck lint mocha test-types",
  109. "test-types": "tsc test/test-types-compilation.ts --noEmit --strict",
  110. "typecheck": "tsc --noEmit"
  111. },
  112. "source": "src/index.ts",
  113. "typings": "index.d.ts",
  114. "umd:main": "dist/mitt.umd.js",
  115. "version": "3.0.1"
  116. }