Skip to content

Commit

Permalink
Merge pull request #28691 from storybookjs/norbert/fix-28673
Browse files Browse the repository at this point in the history
CPC: Fix missing exports for addon-kit
  • Loading branch information
ndelangen authored Jul 23, 2024
2 parents 68abfec + 1f30459 commit 2f7072b
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 2 deletions.
1 change: 1 addition & 0 deletions code/deprecated/manager/globals.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('storybook/internal/manager/globals');
2 changes: 2 additions & 0 deletions code/deprecated/manager/globals.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from 'storybook/internal/manager/globals';
export type * from 'storybook/internal/manager/globals';
2 changes: 1 addition & 1 deletion code/deprecated/manager/globals.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('storybook/internal/manager/globals');
export * from 'storybook/internal/manager/globals';
8 changes: 8 additions & 0 deletions code/deprecated/manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
},
"license": "MIT",
"sideEffects": false,
"type": "module",
"exports": {
"./globals": {
"type": "./globals.d.ts",
"import": "./globals.js",
"require": "./globals.cjs"
}
},
"files": [
"README.md",
"*.js",
Expand Down
1 change: 1 addition & 0 deletions code/deprecated/preview/globals.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('storybook/internal/preview/globals');
2 changes: 2 additions & 0 deletions code/deprecated/preview/globals.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from 'storybook/internal/preview/globals';
export type * from 'storybook/internal/preview/globals';
2 changes: 1 addition & 1 deletion code/deprecated/preview/globals.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('storybook/internal/preview/globals');
export * from 'storybook/internal/preview/globals';
8 changes: 8 additions & 0 deletions code/deprecated/preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
},
"license": "MIT",
"sideEffects": false,
"type": "module",
"exports": {
"./globals": {
"type": "./globals.d.ts",
"import": "./globals.js",
"require": "./globals.cjs"
}
},
"files": [
"README.md",
"*.js",
Expand Down

0 comments on commit 2f7072b

Please sign in to comment.