Sfoglia il codice sorgente

add exports to support esm

Bruce MacDonald 1 anno fa
parent
commit
cc9a1f9d76
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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/*",