package.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {
  2. "name": "mitt",
  3. "version": "3.0.0",
  4. "description": "Tiny 200b functional Event Emitter / pubsub.",
  5. "module": "dist/mitt.mjs",
  6. "main": "dist/mitt.js",
  7. "jsnext:main": "dist/mitt.mjs",
  8. "umd:main": "dist/mitt.umd.js",
  9. "source": "src/index.ts",
  10. "typings": "index.d.ts",
  11. "exports": {
  12. "import": "./dist/mitt.mjs",
  13. "require": "./dist/mitt.js",
  14. "default": "./dist/mitt.mjs"
  15. },
  16. "scripts": {
  17. "test": "npm-run-all --silent typecheck lint mocha test-types",
  18. "mocha": "mocha test",
  19. "test-types": "tsc test/test-types-compilation.ts --noEmit --strict",
  20. "lint": "eslint src test --ext ts --ext js",
  21. "typecheck": "tsc --noEmit",
  22. "bundle": "microbundle -f es,cjs,umd",
  23. "build": "npm-run-all --silent clean -p bundle -s docs",
  24. "clean": "rimraf dist",
  25. "docs": "documentation readme src/index.ts --section API -q --parse-extension ts",
  26. "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"
  27. },
  28. "repository": "developit/mitt",
  29. "keywords": [
  30. "events",
  31. "eventemitter",
  32. "emitter",
  33. "pubsub"
  34. ],
  35. "homepage": "https://github.com/developit/mitt",
  36. "authors": [
  37. "Jason Miller <jason@developit.ca>"
  38. ],
  39. "license": "MIT",
  40. "files": [
  41. "dist",
  42. "index.d.ts"
  43. ],
  44. "mocha": {
  45. "extension": [
  46. "ts"
  47. ],
  48. "require": [
  49. "ts-node/register",
  50. "esm"
  51. ],
  52. "spec": [
  53. "test/*_test.ts"
  54. ]
  55. },
  56. "eslintConfig": {
  57. "extends": [
  58. "developit",
  59. "plugin:@typescript-eslint/eslint-recommended",
  60. "plugin:@typescript-eslint/recommended"
  61. ],
  62. "parser": "@typescript-eslint/parser",
  63. "parserOptions": {
  64. "sourceType": "module"
  65. },
  66. "env": {
  67. "browser": true,
  68. "mocha": true,
  69. "jest": false,
  70. "es6": true
  71. },
  72. "globals": {
  73. "expect": true
  74. },
  75. "rules": {
  76. "semi": [
  77. 2,
  78. "always"
  79. ],
  80. "jest/valid-expect": 0,
  81. "@typescript-eslint/no-explicit-any": 0,
  82. "@typescript-eslint/explicit-function-return-type": 0,
  83. "@typescript-eslint/explicit-module-boundary-types": 0,
  84. "@typescript-eslint/no-empty-function": 0,
  85. "@typescript-eslint/no-non-null-assertion": 0
  86. }
  87. },
  88. "eslintIgnore": [
  89. "dist",
  90. "index.d.ts"
  91. ],
  92. "devDependencies": {
  93. "@types/chai": "^4.2.11",
  94. "@types/mocha": "^7.0.2",
  95. "@types/sinon": "^9.0.4",
  96. "@types/sinon-chai": "^3.2.4",
  97. "@typescript-eslint/eslint-plugin": "^3.0.1",
  98. "@typescript-eslint/parser": "^3.0.1",
  99. "chai": "^4.2.0",
  100. "documentation": "^13.0.0",
  101. "eslint": "^7.1.0",
  102. "eslint-config-developit": "^1.2.0",
  103. "esm": "^3.2.25",
  104. "microbundle": "^0.12.3",
  105. "mocha": "^8.0.1",
  106. "npm-run-all": "^4.1.5",
  107. "rimraf": "^3.0.2",
  108. "sinon": "^9.0.2",
  109. "sinon-chai": "^3.5.0",
  110. "ts-node": "^8.10.2",
  111. "typescript": "^3.9.7"
  112. }
  113. }