Browse Source

add exports to support esm

Bruce MacDonald 1 năm trước cách đây
mục cha
commit
cc9a1f9d76
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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/*",