package.json 2.3 KB

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