From 79a406aa36582c2f1a8246df33291e158b0e30e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Musil?= Date: Thu, 17 Aug 2023 10:44:18 +0200 Subject: [PATCH] fix(host-javascript): properly export esm modules --- host/javascript/package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/host/javascript/package.json b/host/javascript/package.json index 5b663a5c..1050baf9 100644 --- a/host/javascript/package.json +++ b/host/javascript/package.json @@ -1,7 +1,10 @@ { "name": "@superfaceai/one-sdk", "version": "3.0.0-beta.3", - "main": "node/index.js", + "exports": { + "./node": "./node/index.js", + "./cloudflare": "./cloudflare/index.js" + }, "type": "module", "license": "MIT", "engines": {