浏览代码

add exports to support esm

Bruce MacDonald 1 年之前
父节点
当前提交
cc9a1f9d76
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      package.json

+ 3 - 0
package.json

@@ -5,6 +5,9 @@
   "description": "Ollama Javascript library",
   "main": "dist/index.js",
   "types": "dist/index.d.ts",
+  "exports": {
+    ".": "./dist/index.js"
+  },
   "scripts": {
     "format": "prettier --write .",
     "test": "jest --config=jest.config.cjs ./test/*",