From 3a8b06b3b1afe36a81144512cf7ca8a043048420 Mon Sep 17 00:00:00 2001 From: Joakim Carlstein Date: Tue, 19 Dec 2023 14:25:58 +0100 Subject: [PATCH] fix: revert usage of `bun` key in package.json `exports` --- .changeset/ninety-files-doubt.md | 10 ++++++++++ packages/mysql/package.json | 1 - packages/plugin-generate-js/package.json | 1 - packages/plugin-tools/package.json | 1 - packages/postgres/package.json | 1 - packages/reporter-pino/package.json | 1 - packages/storage-fs/package.json | 1 - 7 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 .changeset/ninety-files-doubt.md diff --git a/.changeset/ninety-files-doubt.md b/.changeset/ninety-files-doubt.md new file mode 100644 index 0000000..fe1fbb8 --- /dev/null +++ b/.changeset/ninety-files-doubt.md @@ -0,0 +1,10 @@ +--- +'@emigrate/plugin-generate-js': patch +'@emigrate/reporter-pino': patch +'@emigrate/plugin-tools': patch +'@emigrate/storage-fs': patch +'@emigrate/postgres': patch +'@emigrate/mysql': patch +--- + +Don't use the `bun` key in `exports` as that would mean we have to include both built files and source files in each package, which is a bit wasteful. Maybe reconsider in the future if we can package only source files. diff --git a/packages/mysql/package.json b/packages/mysql/package.json index eb0cbb7..fe75410 100644 --- a/packages/mysql/package.json +++ b/packages/mysql/package.json @@ -10,7 +10,6 @@ "type": "module", "exports": { ".": { - "bun": "./src/index.ts", "import": "./dist/index.js", "types": "./dist/index.d.ts" } diff --git a/packages/plugin-generate-js/package.json b/packages/plugin-generate-js/package.json index fa5af04..e8bd2af 100644 --- a/packages/plugin-generate-js/package.json +++ b/packages/plugin-generate-js/package.json @@ -10,7 +10,6 @@ "type": "module", "exports": { ".": { - "bun": "./src/index.ts", "import": "./dist/index.js", "types": "./dist/index.d.ts" } diff --git a/packages/plugin-tools/package.json b/packages/plugin-tools/package.json index 0eee5e8..d5a7877 100644 --- a/packages/plugin-tools/package.json +++ b/packages/plugin-tools/package.json @@ -10,7 +10,6 @@ "type": "module", "exports": { ".": { - "bun": "./src/index.ts", "import": "./dist/index.js", "types": "./dist/index.d.ts" } diff --git a/packages/postgres/package.json b/packages/postgres/package.json index 1739464..ec30a92 100644 --- a/packages/postgres/package.json +++ b/packages/postgres/package.json @@ -10,7 +10,6 @@ "type": "module", "exports": { ".": { - "bun": "./src/index.ts", "import": "./dist/index.js", "types": "./dist/index.d.ts" } diff --git a/packages/reporter-pino/package.json b/packages/reporter-pino/package.json index a195e36..8b1fc95 100644 --- a/packages/reporter-pino/package.json +++ b/packages/reporter-pino/package.json @@ -10,7 +10,6 @@ "type": "module", "exports": { ".": { - "bun": "./src/index.ts", "import": "./dist/index.js", "types": "./dist/index.d.ts" } diff --git a/packages/storage-fs/package.json b/packages/storage-fs/package.json index 190202f..b735b9b 100644 --- a/packages/storage-fs/package.json +++ b/packages/storage-fs/package.json @@ -10,7 +10,6 @@ "type": "module", "exports": { ".": { - "bun": "./src/index.ts", "import": "./dist/index.js", "types": "./dist/index.d.ts" }