diff --git a/package-lock.json b/package-lock.json index f3856d970..2b621a504 100644 --- a/package-lock.json +++ b/package-lock.json @@ -42,6 +42,7 @@ } }, "bundlers/rollup-config": { + "name": "@flatfile/rollup-config", "version": "0.0.0", "license": "ISC", "dependencies": { diff --git a/plugins/autocast/package.json b/plugins/autocast/package.json index 764108489..89429d30f 100644 --- a/plugins/autocast/package.json +++ b/plugins/autocast/package.json @@ -15,8 +15,14 @@ }, "exports": { "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.cjs", + "node": { + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + }, + "browser": { + "require": "./dist/index.browser.cjs", + "import": "./dist/index.browser.mjs" + }, "default": "./dist/index.mjs" }, "main": "./dist/index.cjs", diff --git a/plugins/constraints/package.json b/plugins/constraints/package.json index 9a2c9453b..284852a2e 100644 --- a/plugins/constraints/package.json +++ b/plugins/constraints/package.json @@ -14,8 +14,14 @@ }, "exports": { "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.cjs", + "node": { + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + }, + "browser": { + "require": "./dist/index.browser.cjs", + "import": "./dist/index.browser.mjs" + }, "default": "./dist/index.mjs" }, "main": "./dist/index.cjs", diff --git a/plugins/dedupe/package.json b/plugins/dedupe/package.json index bf49464e8..ce4eaa286 100644 --- a/plugins/dedupe/package.json +++ b/plugins/dedupe/package.json @@ -14,8 +14,14 @@ }, "exports": { "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.cjs", + "node": { + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + }, + "browser": { + "require": "./dist/index.browser.cjs", + "import": "./dist/index.browser.mjs" + }, "default": "./dist/index.mjs" }, "main": "./dist/index.cjs", diff --git a/plugins/dxp-configure/package.json b/plugins/dxp-configure/package.json index d08d6f9db..a45d15755 100644 --- a/plugins/dxp-configure/package.json +++ b/plugins/dxp-configure/package.json @@ -19,8 +19,14 @@ }, "exports": { "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.cjs", + "node": { + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + }, + "browser": { + "require": "./dist/index.browser.cjs", + "import": "./dist/index.browser.mjs" + }, "default": "./dist/index.mjs" }, "main": "./dist/index.cjs", diff --git a/plugins/foreign-db-extractor/package.json b/plugins/foreign-db-extractor/package.json index 09af4ba16..4c0ff0fc9 100644 --- a/plugins/foreign-db-extractor/package.json +++ b/plugins/foreign-db-extractor/package.json @@ -14,8 +14,14 @@ }, "exports": { "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.cjs", + "node": { + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + }, + "browser": { + "require": "./dist/index.browser.cjs", + "import": "./dist/index.browser.mjs" + }, "default": "./dist/index.mjs" }, "main": "./dist/index.cjs", diff --git a/plugins/job-handler/package.json b/plugins/job-handler/package.json index d533e3dd5..1d1c52a19 100644 --- a/plugins/job-handler/package.json +++ b/plugins/job-handler/package.json @@ -14,8 +14,14 @@ }, "exports": { "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.cjs", + "node": { + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + }, + "browser": { + "require": "./dist/index.browser.cjs", + "import": "./dist/index.browser.mjs" + }, "default": "./dist/index.mjs" }, "main": "./dist/index.cjs", diff --git a/plugins/json-extractor/package.json b/plugins/json-extractor/package.json index 21ede231f..30ad0e83d 100644 --- a/plugins/json-extractor/package.json +++ b/plugins/json-extractor/package.json @@ -15,8 +15,14 @@ }, "exports": { "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.cjs", + "node": { + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + }, + "browser": { + "require": "./dist/index.browser.cjs", + "import": "./dist/index.browser.mjs" + }, "default": "./dist/index.mjs" }, "main": "./dist/index.cjs", diff --git a/plugins/openapi-schema/package.json b/plugins/openapi-schema/package.json index eb2ef6ba0..58b0b73c9 100644 --- a/plugins/openapi-schema/package.json +++ b/plugins/openapi-schema/package.json @@ -14,8 +14,14 @@ }, "exports": { "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.cjs", + "node": { + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + }, + "browser": { + "require": "./dist/index.browser.cjs", + "import": "./dist/index.browser.mjs" + }, "default": "./dist/index.mjs" }, "main": "./dist/index.cjs", diff --git a/plugins/record-hook/package.json b/plugins/record-hook/package.json index 3ce979c08..8add951f3 100644 --- a/plugins/record-hook/package.json +++ b/plugins/record-hook/package.json @@ -19,8 +19,14 @@ }, "exports": { "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.cjs", + "node": { + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + }, + "browser": { + "require": "./dist/index.browser.cjs", + "import": "./dist/index.browser.mjs" + }, "default": "./dist/index.mjs" }, "main": "./dist/index.cjs", diff --git a/plugins/space-configure/package.json b/plugins/space-configure/package.json index 61986dcfa..9dee4f310 100644 --- a/plugins/space-configure/package.json +++ b/plugins/space-configure/package.json @@ -14,8 +14,14 @@ }, "exports": { "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.cjs", + "node": { + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + }, + "browser": { + "require": "./dist/index.browser.cjs", + "import": "./dist/index.browser.mjs" + }, "default": "./dist/index.mjs" }, "main": "./dist/index.cjs", diff --git a/plugins/webhook-egress/package.json b/plugins/webhook-egress/package.json index 3fd663d7f..8044a14da 100644 --- a/plugins/webhook-egress/package.json +++ b/plugins/webhook-egress/package.json @@ -14,8 +14,14 @@ }, "exports": { "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.cjs", + "node": { + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + }, + "browser": { + "require": "./dist/index.browser.cjs", + "import": "./dist/index.browser.mjs" + }, "default": "./dist/index.mjs" }, "main": "./dist/index.cjs", diff --git a/plugins/webhook-event-forwarder/package.json b/plugins/webhook-event-forwarder/package.json index f092d7550..99a2642d1 100644 --- a/plugins/webhook-event-forwarder/package.json +++ b/plugins/webhook-event-forwarder/package.json @@ -14,8 +14,14 @@ }, "exports": { "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.cjs", + "node": { + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + }, + "browser": { + "require": "./dist/index.browser.cjs", + "import": "./dist/index.browser.mjs" + }, "default": "./dist/index.mjs" }, "main": "./dist/index.cjs", diff --git a/utils/common/package.json b/utils/common/package.json index cd253759a..ec5d0099a 100644 --- a/utils/common/package.json +++ b/utils/common/package.json @@ -13,8 +13,14 @@ }, "exports": { "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.cjs", + "node": { + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + }, + "browser": { + "require": "./dist/index.browser.cjs", + "import": "./dist/index.browser.mjs" + }, "default": "./dist/index.mjs" }, "main": "./dist/index.cjs", diff --git a/utils/response-rejection/package.json b/utils/response-rejection/package.json index 16941b2c9..d8c1ea697 100644 --- a/utils/response-rejection/package.json +++ b/utils/response-rejection/package.json @@ -14,8 +14,14 @@ }, "exports": { "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.cjs", + "node": { + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + }, + "browser": { + "require": "./dist/index.browser.cjs", + "import": "./dist/index.browser.mjs" + }, "default": "./dist/index.mjs" }, "main": "./dist/index.cjs",