package.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. {
  2. "name": "hs-cti",
  3. "version": "1.0.9",
  4. "description": "红杉外呼",
  5. "main": "dist/hs-cti.es6.umd.js",
  6. "module": "dist/hs-cti.es6.esm.js",
  7. "types": "dist/hs-cti.d.ts",
  8. "exports": {
  9. "./zt": {
  10. "types": "./dist/cs-cti.d.ts",
  11. "node": {
  12. "import": {
  13. "production": "./dist/cs-cti.es6.esm.prod.js",
  14. "development": "./dist/cs-cti.es6.esm.js",
  15. "default": "./dist/cs-cti.es6.esm.js"
  16. },
  17. "require": {
  18. "production": "./dist/cs-cti.es6.umd.prod.js",
  19. "development": "./dist/cs-cti.es6.umd.js",
  20. "default": "./dist/cs-cti.es6.umd.js"
  21. }
  22. },
  23. "import": "./dist/cs-cti.es6.esm.js",
  24. "require": "./dist/cs-cti.es6.umd.js"
  25. },
  26. ".": {
  27. "types": "./dist/hs-cti.d.ts",
  28. "node": {
  29. "import": {
  30. "production": "./dist/hs-cti.es6.esm.prod.js",
  31. "development": "./dist/hs-cti.es6.esm.js",
  32. "default": "./dist/hs-cti.es6.esm.js"
  33. },
  34. "require": {
  35. "production": "./dist/hs-cti.es6.umd.prod.js",
  36. "development": "./dist/hs-cti.es6.umd.js",
  37. "default": "./dist/hs-cti.es6.umd.js"
  38. }
  39. },
  40. "import": "./dist/hs-cti.es6.esm.js",
  41. "require": "./dist/hs-cti.es6.umd.js"
  42. }
  43. },
  44. "files": [
  45. "dist/"
  46. ],
  47. "type": "module",
  48. "scripts": {
  49. "dev": "rollup -c -w",
  50. "test": "jest --config ./jest.config.ts",
  51. "build": "rimraf dist && rollup -c",
  52. "build:map": "rimraf dist && rollup -c --environment sourcemap:true",
  53. "build:hs": "rimraf dist && rollup -c --environment model:hs",
  54. "build:zt": "rimraf dist && rollup -c --environment model:zt",
  55. "release": "node scripts/release.js",
  56. "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
  57. "lint:eslint": "eslint --max-warnings 0 \"src/**/*.{vue,ts,tsx,js,json,cjs,mjs,cts,mts}\" --fix",
  58. "lint:stylelint": "stylelint \"**/*.{vue,less,postcss,css,scss}\" --fix",
  59. "lint:lint-staged": "lint-staged",
  60. "prepare": "husky install"
  61. },
  62. "repository": {
  63. "type": "git",
  64. "url": ""
  65. },
  66. "keywords": [
  67. "hs",
  68. "call",
  69. "cti",
  70. "sip"
  71. ],
  72. "author": "platformfe",
  73. "license": "ISC",
  74. "dependencies": {
  75. "sip.js": "^0.21.2",
  76. "socket.io-client": "2"
  77. },
  78. "devDependencies": {
  79. "@babel/core": "^7.22.11",
  80. "@babel/preset-env": "^7.22.10",
  81. "@babel/preset-typescript": "^7.22.15",
  82. "@commitlint/cli": "^17.7.1",
  83. "@commitlint/config-conventional": "^17.7.0",
  84. "@rollup/plugin-babel": "^6.0.3",
  85. "@rollup/plugin-commonjs": "^25.0.4",
  86. "@rollup/plugin-json": "^6.0.0",
  87. "@rollup/plugin-node-resolve": "^15.2.1",
  88. "@rollup/plugin-terser": "^0.4.3",
  89. "@rollup/plugin-typescript": "^11.1.3",
  90. "@types/node": "^20.5.7",
  91. "@types/socket.io-client": "1.4.36",
  92. "@typescript-eslint/eslint-plugin": "^6.4.1",
  93. "@typescript-eslint/parser": "^6.4.1",
  94. "@vue/eslint-config-prettier": "^8.0.0",
  95. "@vue/eslint-config-typescript": "^11.0.3",
  96. "conventional-changelog-cli": "^2.2.2",
  97. "enquirer": "^2.4.1",
  98. "eslint": "^8.48.0",
  99. "eslint-config-prettier": "^9.0.0",
  100. "eslint-plugin-prettier": "^5.0.0",
  101. "husky": "^8.0.3",
  102. "jsdom": "^22.1.0",
  103. "lint-staged": "^14.0.1",
  104. "prettier": "^3.0.2",
  105. "rimraf": "^5.0.1",
  106. "rollup": "^3.28.1",
  107. "rollup-plugin-auto-external": "^2.0.0",
  108. "rollup-plugin-dts": "^5.3.1",
  109. "rollup-plugin-serve": "^1.1.1",
  110. "ts-node": "^10.9.1",
  111. "tslib": "^2.6.2",
  112. "typescript": "5.1.6"
  113. },
  114. "lint-staged": {
  115. "*.{js,jsx,ts,tsx,json}": [
  116. "eslint --fix",
  117. "prettier --write"
  118. ],
  119. "*.vue": [
  120. "eslint --fix",
  121. "prettier --write"
  122. ],
  123. "*.{scss,less,html}": [
  124. "stylelint --fix",
  125. "prettier --write"
  126. ],
  127. "*.md": [
  128. "prettier --write"
  129. ]
  130. },
  131. "browserslist": [
  132. "> 1%",
  133. "last 2 versions",
  134. "not dead"
  135. ]
  136. }