package.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. {
  2. "name": "@johannlai/gptcli",
  3. "version": "0.0.0-semantic-release",
  4. "description": "",
  5. "scripts": {
  6. "postinstall": "node scripts/createConfig.js",
  7. "watch": "node scripts/watch.js",
  8. "build": "node scripts/build",
  9. "lint": "eslint --cache .",
  10. "type-check": "tsc",
  11. "test": "vitest run",
  12. "prepack": "node scripts/build && clean-pkg-json"
  13. },
  14. "keywords": [
  15. "ai",
  16. "git",
  17. "gpt",
  18. "chatgpt"
  19. ],
  20. "publishConfig": {
  21. "access": "public"
  22. },
  23. "release": {
  24. "branches": [
  25. "main"
  26. ],
  27. "preset": "conventionalcommits",
  28. "extends": "@semantic-release/npm",
  29. "plugins": [
  30. [
  31. "semantic-release-gitmoji",
  32. {
  33. "releaseRules": {
  34. "major": [
  35. ":boom:",
  36. ":fire:",
  37. ":rotating_light:",
  38. ":boom::fire:",
  39. ":boom::rotating_light:",
  40. ":boom::fire::rotating_light:",
  41. ":zap:"
  42. ],
  43. "minor": [
  44. ":sparkles:",
  45. ":lipstick:",
  46. ":tada:",
  47. ":sparkles::lipstick:",
  48. ":sparkles::tada:",
  49. ":art:"
  50. ],
  51. "patch": [
  52. ":bug:",
  53. ":wrench:",
  54. ":ambulance:",
  55. ":gear:",
  56. ":lock:",
  57. ":bug::ambulance:",
  58. ":bug::lock:",
  59. ":heavy_plus_sign",
  60. ":ambulance::lock:"
  61. ]
  62. }
  63. }
  64. ],
  65. "@semantic-release/commit-analyzer",
  66. "@semantic-release/release-notes-generator",
  67. "@semantic-release/npm",
  68. "@semantic-release/github"
  69. ]
  70. },
  71. "simple-git-hooks": {
  72. "pre-commit": "pnpm lint-staged"
  73. },
  74. "lint-staged": {
  75. "*.ts": "eslint --cache"
  76. },
  77. "license": "MIT",
  78. "repository": "johannlai/gptcli",
  79. "author": "ZHIHANG LI",
  80. "type": "module",
  81. "exports": {
  82. "./jobs/script.js": "./dist/jobs/script.js",
  83. "./jobs/gpt/confirm.js": "./dist/jobs/gpt/confirm.js",
  84. "./jobs/gpt/chat.js": "./dist/jobs/gpt/chat.js",
  85. "./jobs/gpt/createChatCompletion.js": "./dist/jobs/gpt/createChatCompletion.js",
  86. "./jobs/gpt/copyToClipboard.js": "./dist/jobs/gpt/copyToClipboard.js"
  87. },
  88. "files": [
  89. "dist",
  90. "scripts"
  91. ],
  92. "bin": {
  93. "gpt": "./dist/cli.mjs",
  94. "gptcli": "./dist/cli.mjs",
  95. "chatgpt": "./dist/cli.mjs",
  96. "gpt-cli": "./dist/cli.mjs"
  97. },
  98. "devDependencies": {
  99. "@semantic-release/commit-analyzer": "^9.0.2",
  100. "@semantic-release/github": "^8.0.7",
  101. "@semantic-release/npm": "^9.0.2",
  102. "@semantic-release/release-notes-generator": "^10.0.3",
  103. "@trivago/prettier-plugin-sort-imports": "^4.1.1",
  104. "@types/readable-stream": "^2.3.15",
  105. "@typescript-eslint/eslint-plugin": "^5.54.1",
  106. "@typescript-eslint/parser": "^5.54.1",
  107. "assert": "^2.0.0",
  108. "clean-pkg-json": "^1.2.0",
  109. "conventional-changelog-conventionalcommits": "^5.0.0",
  110. "eslint": "^8.35.0",
  111. "lint-staged": "^13.2.0",
  112. "pkgroll": "^1.9.0",
  113. "prettier": "^2.8.4",
  114. "semantic-release": "^20.1.1",
  115. "semantic-release-gitmoji": "^1.6.3",
  116. "simple-git-hooks": "^2.8.1",
  117. "typescript": "^4.9.5",
  118. "vitest": "^0.29.2"
  119. },
  120. "dependencies": {
  121. "@dqbd/tiktoken": "^0.4.0",
  122. "@types/ini": "^1.3.31",
  123. "@types/inquirer": "^9.0.3",
  124. "@types/js-yaml": "^4.0.5",
  125. "@types/node": "^18.15.0",
  126. "ansi-regex": "^6.0.1",
  127. "axios": "^1.3.4",
  128. "chalk": "^5.2.0",
  129. "chokidar": "^3.5.3",
  130. "cleye": "^1.3.2",
  131. "clipboardy": "^3.0.0",
  132. "eventsource-parser": "^0.1.0",
  133. "ini": "^3.0.1",
  134. "inquirer": "^9.1.4",
  135. "install": "^0.13.0",
  136. "js-yaml": "^4.1.0",
  137. "log-update": "^5.0.1",
  138. "manten": "^0.7.0",
  139. "openai": "^3.2.1",
  140. "ora": "^6.1.2",
  141. "read-pkg-up": "^9.1.0",
  142. "readable-stream": "^3.6.2",
  143. "undici": "^5.21.0",
  144. "web-streams-polyfill": "^3.2.1"
  145. }
  146. }