package.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {
  2. "name": "@antv/event-emitter",
  3. "version": "0.1.3",
  4. "description": "event emitter for antvis.",
  5. "license": "MIT",
  6. "main": "lib/index.js",
  7. "module": "esm/index.js",
  8. "types": "lib/index.d.ts",
  9. "files": [
  10. "src",
  11. "lib",
  12. "esm",
  13. "README.md",
  14. "LICENSE"
  15. ],
  16. "publishConfig": {
  17. "access": "public"
  18. },
  19. "repository": {
  20. "type": "git",
  21. "url": "git@github.com:antvis/event-emitter.git"
  22. },
  23. "scripts": {
  24. "build": "run-s clean lib",
  25. "clean": "rimraf lib esm",
  26. "lib": "run-p lib:*",
  27. "lib:cjs": "tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib",
  28. "lib:esm": "tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm",
  29. "test": "jest"
  30. },
  31. "devDependencies": {
  32. "@types/jest": "^24.0.18",
  33. "jest": "^24.9.0",
  34. "jest-electron": "^0.1.7",
  35. "npm-run-all": "^4.1.5",
  36. "prettier": "^2.0.2",
  37. "rimraf": "^2.6.2",
  38. "ts-jest": "^24.1.0",
  39. "typescript": "^3.6.4"
  40. },
  41. "jest": {
  42. "preset": "ts-jest",
  43. "runner": "jest-electron/runner",
  44. "testEnvironment": "jest-electron/environment",
  45. "collectCoverage": true,
  46. "collectCoverageFrom": [
  47. "src/**/*.ts",
  48. "!**/node_modules/**"
  49. ],
  50. "testRegex": "/__tests__/.*spec\\.ts$"
  51. }
  52. }