From 87db87a21613a763f927199cc3a8f6934c4fc6a2 Mon Sep 17 00:00:00 2001 From: Geoff Seemueller Date: Thu, 14 Nov 2024 15:10:28 -0500 Subject: [PATCH] Update package.json with main and module entry points Changed the "main" attribute from "index.js" to "lib.js" and added "module" and "exports" fields for compatibility with both import and require statements. Also incremented the version from 1.0.3 to 1.0.4. --- package.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f5c9395..5dd3400 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,16 @@ { "name": "workflow-function-manifold", - "version": "1.0.3", + "version": "1.0.4", "type": "module", "description": "for building dynamic, LLM-driven workflows using a region-based execution model", - "main": "index.js", + "main": "lib.js", + "module": "lib.js", + "exports": { + ".": { + "import": "./lib.js", + "require": "./lib.js" + } + }, "bin": { "workflow-function-manifold": "./bin.js" },