package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {
  2. "name": "opencode",
  3. "displayName": "opencode",
  4. "description": "opencode for VS Code",
  5. "version": "1.0.190",
  6. "publisher": "sst-dev",
  7. "repository": {
  8. "type": "git",
  9. "url": "https://github.com/sst/opencode"
  10. },
  11. "license": "MIT",
  12. "icon": "images/icon.png",
  13. "galleryBanner": {
  14. "color": "#000000",
  15. "theme": "dark"
  16. },
  17. "engines": {
  18. "vscode": "^1.94.0"
  19. },
  20. "categories": [
  21. "Other"
  22. ],
  23. "activationEvents": [],
  24. "main": "./dist/extension.js",
  25. "contributes": {
  26. "commands": [
  27. {
  28. "command": "opencode.openTerminal",
  29. "title": "Open opencode",
  30. "icon": {
  31. "light": "images/button-dark.svg",
  32. "dark": "images/button-light.svg"
  33. }
  34. },
  35. {
  36. "command": "opencode.openNewTerminal",
  37. "title": "Open opencode in new tab",
  38. "icon": {
  39. "light": "images/button-dark.svg",
  40. "dark": "images/button-light.svg"
  41. }
  42. },
  43. {
  44. "command": "opencode.addFilepathToTerminal",
  45. "title": "Add Filepath to Terminal"
  46. }
  47. ],
  48. "menus": {
  49. "editor/title": [
  50. {
  51. "command": "opencode.openNewTerminal",
  52. "group": "navigation"
  53. }
  54. ]
  55. },
  56. "keybindings": [
  57. {
  58. "command": "opencode.openTerminal",
  59. "title": "Run opencode",
  60. "key": "cmd+escape",
  61. "mac": "cmd+escape",
  62. "win": "ctrl+escape",
  63. "linux": "ctrl+escape"
  64. },
  65. {
  66. "command": "opencode.openNewTerminal",
  67. "title": "Run opencode",
  68. "key": "cmd+shift+escape",
  69. "mac": "cmd+shift+escape",
  70. "win": "ctrl+shift+escape",
  71. "linux": "ctrl+shift+escape"
  72. },
  73. {
  74. "command": "opencode.addFilepathToTerminal",
  75. "title": "opencode: Insert At-Mentioned",
  76. "key": "cmd+alt+k",
  77. "mac": "cmd+alt+k",
  78. "win": "ctrl+alt+K",
  79. "linux": "ctrl+alt+K"
  80. }
  81. ]
  82. },
  83. "scripts": {
  84. "vscode:prepublish": "bun run package",
  85. "compile": "bun run check-types && bun run lint && node esbuild.js",
  86. "watch:esbuild": "node esbuild.js --watch",
  87. "watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
  88. "package": "bun run check-types && bun run lint && node esbuild.js --production",
  89. "compile-tests": "tsc -p . --outDir out",
  90. "watch-tests": "tsc -p . -w --outDir out",
  91. "pretest": "bun run compile-tests && bun run compile && bun run lint",
  92. "check-types": "tsc --noEmit",
  93. "lint": "eslint src",
  94. "test": "vscode-test"
  95. },
  96. "devDependencies": {
  97. "@types/vscode": "^1.94.0",
  98. "@types/mocha": "^10.0.10",
  99. "@types/node": "20.x",
  100. "@typescript-eslint/eslint-plugin": "^8.31.1",
  101. "@typescript-eslint/parser": "^8.31.1",
  102. "eslint": "^9.25.1",
  103. "esbuild": "^0.25.3",
  104. "typescript": "^5.8.3",
  105. "@vscode/test-cli": "^0.0.11",
  106. "@vscode/test-electron": "^2.5.2"
  107. }
  108. }