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.
This commit is contained in:
2024-11-14 15:10:28 -05:00
parent 94c52db896
commit 87db87a216

View File

@@ -1,9 +1,16 @@
{ {
"name": "workflow-function-manifold", "name": "workflow-function-manifold",
"version": "1.0.3", "version": "1.0.4",
"type": "module", "type": "module",
"description": "for building dynamic, LLM-driven workflows using a region-based execution model", "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": { "bin": {
"workflow-function-manifold": "./bin.js" "workflow-function-manifold": "./bin.js"
}, },