package.json 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. "group": "navigation"
  45. }
  46. ]
  47. },
  48. "keybindings": [
  49. {
  50. "command": "opencode.openTerminal",
  51. "title": "Run opencode",
  52. "key": "cmd+escape",
  53. "mac": "cmd+escape",
  54. "win": "ctrl+escape",
  55. "linux": "ctrl+escape"
  56. },
  57. {
  58. "command": "opencode.addFilepathToTerminal",
  59. "title": "opencode: Insert At-Mentioned",
  60. "key": "cmd+alt+k",
  61. "mac": "cmd+alt+k",
  62. "win": "ctrl+alt+K",
  63. "linux": "ctrl+alt+K"
  64. }
  65. ]
  66. },
  67. "scripts": {
  68. "vscode:prepublish": "bun run package",
  69. "compile": "bun run check-types && bun run lint && node esbuild.js",
  70. "watch:esbuild": "node esbuild.js --watch",
  71. "watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
  72. "package": "bun run check-types && bun run lint && node esbuild.js --production",
  73. "compile-tests": "tsc -p . --outDir out",
  74. "watch-tests": "tsc -p . -w --outDir out",
  75. "pretest": "bun run compile-tests && bun run compile && bun run lint",
  76. "check-types": "tsc --noEmit",
  77. "lint": "eslint src",
  78. "test": "vscode-test"
  79. },
  80. "devDependencies": {
  81. "@types/vscode": "^1.94.0",
  82. "@types/mocha": "^10.0.10",
  83. "@types/node": "20.x",
  84. "@typescript-eslint/eslint-plugin": "^8.31.1",
  85. "@typescript-eslint/parser": "^8.31.1",
  86. "eslint": "^9.25.1",
  87. "esbuild": "^0.25.3",
  88. "typescript": "^5.8.3",
  89. "@vscode/test-cli": "^0.0.11",
  90. "@vscode/test-electron": "^2.5.2"
  91. }
  92. }