package.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. "name": "ollama",
  3. "version": "0.0.0",
  4. "description": "Ollama Javascript library",
  5. "main": "dist/index.cjs",
  6. "module": "dist/index.mjs",
  7. "types": "dist/index.d.ts",
  8. "exports": {
  9. ".": {
  10. "require": "./dist/index.cjs",
  11. "import": "./dist/index.mjs",
  12. "types": "./dist/index.d.ts"
  13. },
  14. "./browser": {
  15. "require": "./dist/browser.cjs",
  16. "import": "./dist/browser.mjs",
  17. "types": "./dist/browser.d.ts"
  18. },
  19. "./*": "./*"
  20. },
  21. "scripts": {
  22. "format": "prettier --write .",
  23. "test": "vitest --run",
  24. "build": "unbuild",
  25. "lint": "eslint ./src/*",
  26. "prepublishOnly": "npm run build"
  27. },
  28. "homepage": "https://github.com/ollama/ollama-js",
  29. "repository": {
  30. "type": "git",
  31. "url": "https://github.com/ollama/ollama-js.git"
  32. },
  33. "author": "Saul Boyd",
  34. "license": "MIT",
  35. "devDependencies": {
  36. "@swc/core": "^1.3.14",
  37. "@types/whatwg-fetch": "^0.0.33",
  38. "@typescript-eslint/eslint-plugin": "^5.42.1",
  39. "@typescript-eslint/parser": "^5.42.1",
  40. "eslint": "^8.29.0",
  41. "vitest": "^2.1.6",
  42. "prettier": "^3.2.4",
  43. "typescript": "^5.3.2",
  44. "unbuild": "^2.0.0"
  45. },
  46. "dependencies": {
  47. "whatwg-fetch": "^3.6.20"
  48. }
  49. }