From d88bd2da4981544e9c0db83d08e47d29769a3720 Mon Sep 17 00:00:00 2001 From: Aaron Larner <835542+alarner@users.noreply.github.com> Date: Thu, 11 Jan 2024 09:50:22 -0800 Subject: [PATCH] Add 'main' key to package.json for support with older build tools (eg. metro bundler). --- packages/change-case/package.json | 1 + packages/sponge-case/package.json | 1 + packages/swap-case/package.json | 1 + packages/title-case/package.json | 1 + 4 files changed, 4 insertions(+) diff --git a/packages/change-case/package.json b/packages/change-case/package.json index 4342aef7..834f9ae0 100644 --- a/packages/change-case/package.json +++ b/packages/change-case/package.json @@ -28,6 +28,7 @@ "url": "http://blakeembrey.me" }, "type": "module", + "main": "./dist/index.js", "exports": { ".": "./dist/index.js", "./keys": "./dist/keys.js" diff --git a/packages/sponge-case/package.json b/packages/sponge-case/package.json index f81c9e1e..a34a92cf 100644 --- a/packages/sponge-case/package.json +++ b/packages/sponge-case/package.json @@ -28,6 +28,7 @@ "url": "http://rabins.dev" }, "type": "module", + "main": "./dist/index.js", "exports": { ".": "./dist/index.js" }, diff --git a/packages/swap-case/package.json b/packages/swap-case/package.json index d83ef7db..17dbc2ad 100644 --- a/packages/swap-case/package.json +++ b/packages/swap-case/package.json @@ -26,6 +26,7 @@ "url": "http://blakeembrey.me" }, "type": "module", + "main": "./dist/index.js", "exports": { ".": "./dist/index.js" }, diff --git a/packages/title-case/package.json b/packages/title-case/package.json index d16b2eff..d9445043 100644 --- a/packages/title-case/package.json +++ b/packages/title-case/package.json @@ -26,6 +26,7 @@ "url": "http://blakeembrey.me" }, "type": "module", + "main": "./dist/index.js", "exports": { ".": "./dist/index.js" },