Преглед на файлове

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/*",