package.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {
  2. "name": "@opencode-ai/sdk",
  3. "version": "0.1.0-alpha.20",
  4. "description": "The official TypeScript library for the Opencode API",
  5. "author": "Opencode <[email protected]>",
  6. "types": "dist/index.d.ts",
  7. "main": "dist/index.js",
  8. "type": "commonjs",
  9. "repository": "github:sst/opencode-sdk-js",
  10. "license": "MIT",
  11. "packageManager": "[email protected]",
  12. "files": [
  13. "**/*"
  14. ],
  15. "private": false,
  16. "scripts": {
  17. "test": "./scripts/test",
  18. "build": "./scripts/build",
  19. "prepublishOnly": "echo 'to publish, run yarn build && (cd dist; yarn publish)' && exit 1",
  20. "format": "./scripts/format",
  21. "prepare": "if ./scripts/utils/check-is-in-git-install.sh; then ./scripts/build && ./scripts/utils/git-swap.sh; fi",
  22. "tsn": "ts-node -r tsconfig-paths/register",
  23. "lint": "./scripts/lint",
  24. "fix": "./scripts/format"
  25. },
  26. "dependencies": {},
  27. "devDependencies": {
  28. "@arethetypeswrong/cli": "^0.17.0",
  29. "@swc/core": "^1.3.102",
  30. "@swc/jest": "^0.2.29",
  31. "@types/jest": "^29.4.0",
  32. "@types/node": "^20.17.6",
  33. "@typescript-eslint/eslint-plugin": "8.31.1",
  34. "@typescript-eslint/parser": "8.31.1",
  35. "eslint": "^9.20.1",
  36. "eslint-plugin-prettier": "^5.4.1",
  37. "eslint-plugin-unused-imports": "^4.1.4",
  38. "iconv-lite": "^0.6.3",
  39. "jest": "^29.4.0",
  40. "prettier": "^3.0.0",
  41. "publint": "^0.2.12",
  42. "ts-jest": "^29.1.0",
  43. "ts-node": "^10.5.0",
  44. "tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.8/tsc-multi.tgz",
  45. "tsconfig-paths": "^4.0.0",
  46. "typescript": "5.8.3",
  47. "typescript-eslint": "8.31.1"
  48. },
  49. "imports": {
  50. "@opencode-ai/sdk": ".",
  51. "@opencode-ai/sdk/*": "./src/*"
  52. },
  53. "exports": {
  54. ".": {
  55. "import": "./dist/index.mjs",
  56. "require": "./dist/index.js"
  57. },
  58. "./*.mjs": {
  59. "default": "./dist/*.mjs"
  60. },
  61. "./*.js": {
  62. "default": "./dist/*.js"
  63. },
  64. "./*": {
  65. "import": "./dist/*.mjs",
  66. "require": "./dist/*.js"
  67. }
  68. }
  69. }