package.json 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. },
  31. {
  32. "command": "opencode.addFilepathToTerminal",
  33. "title": "Add Filepath to Terminal"
  34. }
  35. ],
  36. "keybindings": [
  37. {
  38. "command": "opencode.openTerminal",
  39. "title": "Run opencode",
  40. "key": "cmd+escape",
  41. "mac": "cmd+escape"
  42. },
  43. {
  44. "command": "opencode.addFilepathToTerminal",
  45. "title": "opencode: Insert At-Mentioned",
  46. "key": "cmd+alt+k",
  47. "mac": "cmd+alt+k"
  48. }
  49. ]
  50. },
  51. "scripts": {
  52. "vscode:prepublish": "bun run package",
  53. "compile": "bun run check-types && bun run lint && node esbuild.js",
  54. "watch:esbuild": "node esbuild.js --watch",
  55. "watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
  56. "package": "bun run check-types && bun run lint && node esbuild.js --production",
  57. "compile-tests": "tsc -p . --outDir out",
  58. "watch-tests": "tsc -p . -w --outDir out",
  59. "pretest": "bun run compile-tests && bun run compile && bun run lint",
  60. "check-types": "tsc --noEmit",
  61. "lint": "eslint src",
  62. "test": "vscode-test"
  63. },
  64. "devDependencies": {
  65. "@types/vscode": "^1.94.0",
  66. "@types/mocha": "^10.0.10",
  67. "@types/node": "20.x",
  68. "@typescript-eslint/eslint-plugin": "^8.31.1",
  69. "@typescript-eslint/parser": "^8.31.1",
  70. "eslint": "^9.25.1",
  71. "esbuild": "^0.25.3",
  72. "typescript": "^5.8.3",
  73. "@vscode/test-cli": "^0.0.11",
  74. "@vscode/test-electron": "^2.5.2"
  75. }
  76. }