package.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {
  2. "name": "opencode",
  3. "displayName": "opencode",
  4. "description": "opencode for VS Code",
  5. "version": "0.0.0",
  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 Terminal with Opencode",
  30. "icon": {
  31. "light": "images/button-dark.svg",
  32. "dark": "images/button-light.svg"
  33. }
  34. },
  35. {
  36. "command": "opencode.addFilepathToTerminal",
  37. "title": "Add Filepath to Terminal"
  38. }
  39. ],
  40. "menus": {
  41. "editor/title": [
  42. {
  43. "command": "opencode.openTerminal",
  44. "when": "editorTextFocus",
  45. "group": "navigation"
  46. }
  47. ]
  48. },
  49. "keybindings": [
  50. {
  51. "command": "opencode.openTerminal",
  52. "title": "Run opencode",
  53. "key": "cmd+escape",
  54. "mac": "cmd+escape",
  55. "win": "ctrl+escape",
  56. "linux": "ctrl+escape"
  57. },
  58. {
  59. "command": "opencode.addFilepathToTerminal",
  60. "title": "opencode: Insert At-Mentioned",
  61. "key": "cmd+alt+k",
  62. "mac": "cmd+alt+k",
  63. "win": "ctrl+alt+K",
  64. "linux": "ctrl+alt+K"
  65. }
  66. ]
  67. },
  68. "scripts": {
  69. "vscode:prepublish": "bun run package",
  70. "compile": "bun run check-types && bun run lint && node esbuild.js",
  71. "watch:esbuild": "node esbuild.js --watch",
  72. "watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
  73. "package": "bun run check-types && bun run lint && node esbuild.js --production",
  74. "compile-tests": "tsc -p . --outDir out",
  75. "watch-tests": "tsc -p . -w --outDir out",
  76. "pretest": "bun run compile-tests && bun run compile && bun run lint",
  77. "check-types": "tsc --noEmit",
  78. "lint": "eslint src",
  79. "test": "vscode-test"
  80. },
  81. "devDependencies": {
  82. "@types/vscode": "^1.94.0",
  83. "@types/mocha": "^10.0.10",
  84. "@types/node": "20.x",
  85. "@typescript-eslint/eslint-plugin": "^8.31.1",
  86. "@typescript-eslint/parser": "^8.31.1",
  87. "eslint": "^9.25.1",
  88. "esbuild": "^0.25.3",
  89. "typescript": "^5.8.3",
  90. "@vscode/test-cli": "^0.0.11",
  91. "@vscode/test-electron": "^2.5.2"
  92. }
  93. }