package.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. {
  2. "name": "pinyin",
  3. "version": "4.0.0-alpha.2",
  4. "description": "汉语拼音转换工具。",
  5. "main": "./dist/pinyin.js",
  6. "module": "./dist/pinyin.mjs",
  7. "browser": {
  8. "./dist/pinyin.js": "./lib/pinyin-web.js",
  9. "./dist/pinyin.mjs": "./esm/pinyin-web.js"
  10. },
  11. "bin": {
  12. "pinyin": "./bin/pinyin"
  13. },
  14. "homepage": "https://pinyin.js.org/",
  15. "author": "闲耘 <hotoo.cn@gmail.com>",
  16. "repository": {
  17. "type": "git",
  18. "url": "https://github.com/hotoo/pinyin.git"
  19. },
  20. "bugs": {
  21. "url": "https://github.com/hotoo/pinyin/issues"
  22. },
  23. "scripts": {
  24. "start": "dumi dev",
  25. "prepublishOnly": "npm run build",
  26. "build": "rollup -c && rollup -c rollup.esm.config.js",
  27. "build:tsc": "tsc --downlevelIteration -p tsconfig-es5.json & tsc --downlevelIteration -p tsconfig.json & npm run build:amd",
  28. "build:amd": "tsc --downlevelIteration -p tsconfig-amd.json",
  29. "doc:build": "rm -rf ./src/.umi && dumi build",
  30. "doc:deploy": "npm run doc:build && cp CNAME docs-dist/dist && gh-pages -d docs-dist/dist",
  31. "lint": "eslint ./src/ ./test/",
  32. "test": "jest --coverage",
  33. "debug": "npx ts-node tools/debug.ts"
  34. },
  35. "dependencies": {
  36. "commander": "~1.1.1"
  37. },
  38. "peerDependencies": {
  39. "@node-rs/jieba": "^1.6.0",
  40. "nodejieba": "2.5.2",
  41. "segmentit": "^2.0.3"
  42. },
  43. "peerDependenciesMeta": {
  44. "@node-rs/jieba": {
  45. "optional": true
  46. },
  47. "nodejieba": {
  48. "optional": true
  49. },
  50. "segmentit": {
  51. "optional": true
  52. }
  53. },
  54. "devDependencies": {
  55. "@babel/preset-env": "^7.15.6",
  56. "@babel/preset-typescript": "^7.15.0",
  57. "@rollup/plugin-commonjs": "^17.1.0",
  58. "@rollup/plugin-json": "^4.1.0",
  59. "@rollup/plugin-node-resolve": "^11.2.0",
  60. "@types/jest": "^27.0.2",
  61. "@typescript-eslint/eslint-plugin": "^5.14.0",
  62. "@typescript-eslint/parser": "^5.14.0",
  63. "aurl": "^1.2.0",
  64. "aws-sdk": "^2.1011.0",
  65. "beautify-benchmark": "^0.2.4",
  66. "benchmark": "~1.0.0",
  67. "dumi": "^1.1.30",
  68. "eslint": "^8.11.0",
  69. "eslint-config-prettier": "^8.5.0",
  70. "eslint-import-resolver-typescript": "^2.5.0",
  71. "eslint-plugin-prettier": "^4.0.0",
  72. "gh-pages": "^3.2.3",
  73. "jest": "^27.2.3",
  74. "mock-aws-s3": "^4.0.2",
  75. "nock": "^13.1.4",
  76. "npx": "^10.2.2",
  77. "prettier": "^2.6.0",
  78. "react-json-view": "^1.21.3",
  79. "request": "~2.68.0",
  80. "rollup": "2.60.0",
  81. "rollup-plugin-alias": "^2.2.0",
  82. "rollup-plugin-cleanup": "^3.2.1",
  83. "rollup-plugin-terser": "^7.0.2",
  84. "rollup-plugin-typescript2": "^0.34.1",
  85. "ts-node": "^10.5.0",
  86. "typescript": "^4.4.4"
  87. },
  88. "registry": "https://registry.npmmirror.com",
  89. "publishConfig": {
  90. "registry": "https://registry.npmjs.org/"
  91. },
  92. "files": [
  93. "package.json",
  94. "build/",
  95. "bin",
  96. "data",
  97. "dist",
  98. "lib",
  99. "esm",
  100. "amd",
  101. "index.js"
  102. ],
  103. "keywords": [
  104. "拼音",
  105. "汉语",
  106. "汉字",
  107. "中文",
  108. "Pinyin"
  109. ],
  110. "directories": {
  111. "example": "examples",
  112. "test": "test"
  113. },
  114. "engines": {
  115. "install-node": "^18.0.0"
  116. },
  117. "license": "MIT"
  118. }