From 8bb043d826117314afda30fd0b3981f92dfe20c6 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Thu, 11 Jul 2024 00:26:16 +0200 Subject: [PATCH] Merge pull request #28539 from storybookjs/norbert/cpc-add-mjs-to-csf-tools-shim CPC: Add `ESM` export to `docs-tools` & `node-logger` packages (cherry picked from commit 4997e098882a12e019a3aa58ba3fb80d1e9056dd) --- code/deprecated/docs-tools/package.json | 2 ++ code/deprecated/docs-tools/shim.mjs | 1 + code/deprecated/node-logger/package.json | 2 ++ code/deprecated/node-logger/shim.mjs | 1 + 4 files changed, 6 insertions(+) create mode 100644 code/deprecated/docs-tools/shim.mjs create mode 100644 code/deprecated/node-logger/shim.mjs diff --git a/code/deprecated/docs-tools/package.json b/code/deprecated/docs-tools/package.json index 3caac5c95d0e..99cbcfd042b2 100644 --- a/code/deprecated/docs-tools/package.json +++ b/code/deprecated/docs-tools/package.json @@ -23,11 +23,13 @@ "exports": { ".": { "types": "./shim.d.ts", + "import": "./shim.mjs", "require": "./shim.js" }, "./package.json": "./package.json" }, "main": "./shim.js", + "module": "./shim.mjs", "types": "./shim.d.ts", "files": [ "README.md", diff --git a/code/deprecated/docs-tools/shim.mjs b/code/deprecated/docs-tools/shim.mjs new file mode 100644 index 000000000000..a6a642d3273f --- /dev/null +++ b/code/deprecated/docs-tools/shim.mjs @@ -0,0 +1 @@ +export * from 'storybook/internal/docs-tools'; diff --git a/code/deprecated/node-logger/package.json b/code/deprecated/node-logger/package.json index b69fbc511820..86eddc097c20 100644 --- a/code/deprecated/node-logger/package.json +++ b/code/deprecated/node-logger/package.json @@ -23,11 +23,13 @@ "exports": { ".": { "types": "./shim.d.ts", + "module": "./shim.mjs", "require": "./shim.js" }, "./package.json": "./package.json" }, "main": "./shim.js", + "module": "./shim.mjs", "types": "./shim.d.ts", "files": [ "README.md", diff --git a/code/deprecated/node-logger/shim.mjs b/code/deprecated/node-logger/shim.mjs new file mode 100644 index 000000000000..1c35c8624ddf --- /dev/null +++ b/code/deprecated/node-logger/shim.mjs @@ -0,0 +1 @@ +export * from 'storybook/internal/node-logger';