Skip to content

Commit

Permalink
Merge pull request #22321 from storybookjs/fix/types-condition
Browse files Browse the repository at this point in the history
Fix: move `types` condition to the front in all `package.json.exports` maps
  • Loading branch information
ndelangen authored and shilman committed May 3, 2023
1 parent 8d637e1 commit 9befd1b
Show file tree
Hide file tree
Showing 88 changed files with 426 additions and 426 deletions.
16 changes: 8 additions & 8 deletions code/addons/a11y/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,25 @@
"license": "MIT",
"exports": {
".": {
"types": "./dist/index.d.ts",
"node": "./dist/index.js",
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
"import": "./dist/index.mjs"
},
"./manager": {
"types": "./dist/manager.d.ts",
"require": "./dist/manager.js",
"import": "./dist/manager.mjs",
"types": "./dist/manager.d.ts"
"import": "./dist/manager.mjs"
},
"./preview": {
"types": "./dist/preview.d.ts",
"require": "./dist/preview.js",
"import": "./dist/preview.mjs",
"types": "./dist/preview.d.ts"
"import": "./dist/preview.mjs"
},
"./register": {
"types": "./dist/manager.d.ts",
"require": "./dist/manager.js",
"import": "./dist/manager.mjs",
"types": "./dist/manager.d.ts"
"import": "./dist/manager.mjs"
},
"./package.json": "./package.json"
},
Expand Down
20 changes: 10 additions & 10 deletions code/addons/actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,30 @@
"license": "MIT",
"exports": {
".": {
"types": "./dist/index.d.ts",
"node": "./dist/index.js",
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
"import": "./dist/index.mjs"
},
"./decorator": {
"types": "./dist/decorator.d.ts",
"require": "./dist/decorator.js",
"import": "./dist/decorator.mjs",
"types": "./dist/decorator.d.ts"
"import": "./dist/decorator.mjs"
},
"./manager": {
"types": "./dist/manager.d.ts",
"require": "./dist/manager.js",
"import": "./dist/manager.mjs",
"types": "./dist/manager.d.ts"
"import": "./dist/manager.mjs"
},
"./preview": {
"types": "./dist/preview.d.ts",
"require": "./dist/preview.js",
"import": "./dist/preview.mjs",
"types": "./dist/preview.d.ts"
"import": "./dist/preview.mjs"
},
"./register.js": {
"types": "./dist/manager.d.ts",
"require": "./dist/manager.js",
"import": "./dist/manager.mjs",
"types": "./dist/manager.d.ts"
"import": "./dist/manager.mjs"
},
"./package.json": "./package.json"
},
Expand Down
16 changes: 8 additions & 8 deletions code/addons/backgrounds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,25 @@
"author": "jbaxleyiii",
"exports": {
".": {
"types": "./dist/index.d.ts",
"node": "./dist/index.js",
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
"import": "./dist/index.mjs"
},
"./manager": {
"types": "./dist/manager.d.ts",
"require": "./dist/manager.js",
"import": "./dist/manager.mjs",
"types": "./dist/manager.d.ts"
"import": "./dist/manager.mjs"
},
"./preview": {
"types": "./dist/preview.d.ts",
"require": "./dist/preview.js",
"import": "./dist/preview.mjs",
"types": "./dist/preview.d.ts"
"import": "./dist/preview.mjs"
},
"./register": {
"types": "./dist/manager.d.ts",
"require": "./dist/manager.js",
"import": "./dist/manager.mjs",
"types": "./dist/manager.d.ts"
"import": "./dist/manager.mjs"
},
"./package.json": "./package.json"
},
Expand Down
12 changes: 6 additions & 6 deletions code/addons/controls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@
"license": "MIT",
"exports": {
".": {
"types": "./dist/index.d.ts",
"node": "./dist/index.js",
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
"import": "./dist/index.mjs"
},
"./manager": {
"types": "./dist/manager.d.ts",
"require": "./dist/manager.js",
"import": "./dist/manager.mjs",
"types": "./dist/manager.d.ts"
"import": "./dist/manager.mjs"
},
"./register": {
"types": "./dist/manager.d.ts",
"require": "./dist/manager.js",
"import": "./dist/manager.mjs",
"types": "./dist/manager.d.ts"
"import": "./dist/manager.mjs"
},
"./package.json": "./package.json"
},
Expand Down
32 changes: 16 additions & 16 deletions code/addons/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,42 +27,42 @@
"exports": {
".": {
"node": "./dist/index.js",
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
"import": "./dist/index.mjs"
},
"./preview": {
"types": "./dist/preview.d.ts",
"require": "./dist/preview.js",
"import": "./dist/preview.mjs",
"types": "./dist/preview.d.ts"
"import": "./dist/preview.mjs"
},
"./preset": {
"require": "./dist/preset.js",
"types": "./dist/preset.d.ts"
"types": "./dist/preset.d.ts",
"require": "./dist/preset.js"
},
"./blocks": {
"types": "./dist/blocks.d.ts",
"require": "./dist/blocks.js",
"import": "./dist/blocks.mjs",
"types": "./dist/blocks.d.ts"
"import": "./dist/blocks.mjs"
},
"./dist/preview": {
"types": "./dist/preview.d.ts",
"require": "./dist/preview.js",
"import": "./dist/preview.mjs",
"types": "./dist/preview.d.ts"
"import": "./dist/preview.mjs"
},
"./dist/preset": {
"require": "./dist/preset.js",
"types": "./dist/preset.d.ts"
"types": "./dist/preset.d.ts",
"require": "./dist/preset.js"
},
"./dist/shims/mdx-react-shim": {
"types": "./dist/shims/mdx-react-shim.d.ts",
"require": "./dist/shims/mdx-react-shim.js",
"import": "./dist/shims/mdx-react-shim.mjs",
"types": "./dist/shims/mdx-react-shim.d.ts"
"import": "./dist/shims/mdx-react-shim.mjs"
},
"./mdx-react-shim": {
"types": "./dist/shims/mdx-react-shim.d.ts",
"require": "./dist/shims/mdx-react-shim.js",
"import": "./dist/shims/mdx-react-shim.mjs",
"types": "./dist/shims/mdx-react-shim.d.ts"
"import": "./dist/shims/mdx-react-shim.mjs"
},
"./svelte/HOC.svelte": "./svelte/HOC.svelte",
"./ember": "./ember/index.js",
Expand Down
64 changes: 32 additions & 32 deletions code/addons/essentials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,84 +24,84 @@
"exports": {
".": {
"node": "./dist/index.js",
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
"import": "./dist/index.mjs"
},
"./actions/preview": {
"types": "./dist/actions/preview.d.ts",
"require": "./dist/actions/preview.js",
"import": "./dist/actions/preview.mjs",
"types": "./dist/actions/preview.d.ts"
"import": "./dist/actions/preview.mjs"
},
"./actions/manager": {
"types": "./dist/actions/manager.d.ts",
"require": "./dist/actions/manager.js",
"import": "./dist/actions/manager.mjs",
"types": "./dist/actions/manager.d.ts"
"import": "./dist/actions/manager.mjs"
},
"./backgrounds/preview": {
"types": "./dist/backgrounds/preview.d.ts",
"require": "./dist/backgrounds/preview.js",
"import": "./dist/backgrounds/preview.mjs",
"types": "./dist/backgrounds/preview.d.ts"
"import": "./dist/backgrounds/preview.mjs"
},
"./backgrounds/manager": {
"types": "./dist/backgrounds/manager.d.ts",
"require": "./dist/backgrounds/manager.js",
"import": "./dist/backgrounds/manager.mjs",
"types": "./dist/backgrounds/manager.d.ts"
"import": "./dist/backgrounds/manager.mjs"
},
"./controls/manager": {
"types": "./dist/controls/manager.d.ts",
"require": "./dist/controls/manager.js",
"import": "./dist/controls/manager.mjs",
"types": "./dist/controls/manager.d.ts"
"import": "./dist/controls/manager.mjs"
},
"./docs/preview": {
"types": "./dist/docs/preview.d.ts",
"require": "./dist/docs/preview.js",
"import": "./dist/docs/preview.mjs",
"types": "./dist/docs/preview.d.ts"
"import": "./dist/docs/preview.mjs"
},
"./docs/preset": {
"types": "./dist/docs/preset.d.ts",
"require": "./dist/docs/preset.js",
"import": "./dist/docs/preset.mjs",
"types": "./dist/docs/preset.d.ts"
"import": "./dist/docs/preset.mjs"
},
"./docs/mdx-react-shim": {
"types": "./dist/docs/mdx-react-shim.d.ts",
"require": "./dist/docs/mdx-react-shim.js",
"import": "./dist/docs/mdx-react-shim.mjs",
"types": "./dist/docs/mdx-react-shim.d.ts"
"import": "./dist/docs/mdx-react-shim.mjs"
},
"./highlight/preview": {
"types": "./dist/highlight/preview.d.ts",
"require": "./dist/highlight/preview.js",
"import": "./dist/highlight/preview.mjs",
"types": "./dist/highlight/preview.d.ts"
"import": "./dist/highlight/preview.mjs"
},
"./measure/preview": {
"types": "./dist/measure/preview.d.ts",
"require": "./dist/measure/preview.js",
"import": "./dist/measure/preview.mjs",
"types": "./dist/measure/preview.d.ts"
"import": "./dist/measure/preview.mjs"
},
"./measure/manager": {
"types": "./dist/measure/manager.d.ts",
"require": "./dist/measure/manager.js",
"import": "./dist/measure/manager.mjs",
"types": "./dist/measure/manager.d.ts"
"import": "./dist/measure/manager.mjs"
},
"./outline/preview": {
"types": "./dist/outline/preview.d.ts",
"require": "./dist/outline/preview.js",
"import": "./dist/outline/preview.mjs",
"types": "./dist/outline/preview.d.ts"
"import": "./dist/outline/preview.mjs"
},
"./outline/manager": {
"types": "./dist/outline/manager.d.ts",
"require": "./dist/outline/manager.js",
"import": "./dist/outline/manager.mjs",
"types": "./dist/outline/manager.d.ts"
"import": "./dist/outline/manager.mjs"
},
"./toolbars/manager": {
"types": "./dist/toolbars/manager.d.ts",
"require": "./dist/toolbars/manager.js",
"import": "./dist/toolbars/manager.mjs",
"types": "./dist/toolbars/manager.d.ts"
"import": "./dist/toolbars/manager.mjs"
},
"./viewport/manager": {
"types": "./dist/viewport/manager.d.ts",
"require": "./dist/viewport/manager.js",
"import": "./dist/viewport/manager.mjs",
"types": "./dist/viewport/manager.d.ts"
"import": "./dist/viewport/manager.mjs"
},
"./package.json": "./package.json"
},
Expand Down
8 changes: 4 additions & 4 deletions code/addons/gfm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
"license": "MIT",
"exports": {
".": {
"types": "./dist/index.d.ts",
"node": "./dist/index.js",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
"require": "./dist/index.js"
},
"./preset": {
"types": "./dist/index.d.ts",
"node": "./dist/index.js",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
"require": "./dist/index.js"
},
"./package.json": "./package.json"
},
Expand Down
8 changes: 4 additions & 4 deletions code/addons/highlight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
"author": "winkerVSbecks",
"exports": {
".": {
"types": "./dist/index.d.ts",
"node": "./dist/index.js",
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
"import": "./dist/index.mjs"
},
"./preview": {
"types": "./dist/preview.d.ts",
"require": "./dist/preview.js",
"import": "./dist/preview.mjs",
"types": "./dist/preview.d.ts"
"import": "./dist/preview.mjs"
},
"./package.json": "./package.json"
},
Expand Down
16 changes: 8 additions & 8 deletions code/addons/interactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,25 @@
"license": "MIT",
"exports": {
".": {
"types": "./dist/index.d.ts",
"node": "./dist/index.js",
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
"import": "./dist/index.mjs"
},
"./manager": {
"types": "./dist/manager.d.ts",
"require": "./dist/manager.js",
"import": "./dist/manager.mjs",
"types": "./dist/manager.d.ts"
"import": "./dist/manager.mjs"
},
"./preview": {
"types": "./dist/preview.d.ts",
"require": "./dist/preview.js",
"import": "./dist/preview.mjs",
"types": "./dist/preview.d.ts"
"import": "./dist/preview.mjs"
},
"./register.js": {
"types": "./dist/manager.d.ts",
"require": "./dist/manager.js",
"import": "./dist/manager.mjs",
"types": "./dist/manager.d.ts"
"import": "./dist/manager.mjs"
},
"./package.json": "./package.json"
},
Expand Down
Loading

0 comments on commit 9befd1b

Please sign in to comment.