Skip to content

Commit

Permalink
Enhanced package dependencies and adjusted TypeScript version
Browse files Browse the repository at this point in the history
Applied a patch to the @storybook/manager-api package for issue resolution, and upgraded TypeScript from 4.9.5 to 5.0.4 across various sections of the code. This update ensures compatibility and leverages the latest TypeScript enhancements.
  • Loading branch information
riccardoperra committed Nov 26, 2023
1 parent 1132228 commit 90ec7aa
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 37 deletions.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,10 @@
"packageManager": "[email protected]",
"dependencies": {
"@changesets/changelog-git": "^0.1.14"
},
"pnpm": {
"patchedDependencies": {
"@storybook/[email protected]": "patches/@[email protected]"
}
}
}
4 changes: 2 additions & 2 deletions packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@
"@storybook/api": "^7.5.3",
"@storybook/blocks": "^7.5.3",
"@storybook/components": "^7.5.3",
"@storybook/manager-api": "^7.5.3",
"@storybook/testing-library": "^0.2.2",
"@storybook/theming": "^7.5.3",
"@storybook/types": "^7.5.3",
"@vanilla-extract/vite-plugin": "^3.9.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"storybook": "^7.5.3",
"storybook-dark-mode": "^3.0.1",
"storybook-solidjs": "^1.0.0-beta.2",
"storybook-solidjs-vite": "^1.0.0-beta.2",
"typescript": "^4.9.5",
"typescript": "5.0.4",
"vite": "^4.4.5",
"vite-plugin-solid": "^2.7.2",
"vite-tsconfig-paths": "^4.2.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "Node",
"moduleResolution": "NodeNext",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
Expand Down
28 changes: 28 additions & 0 deletions patches/@[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
diff --git a/dist/index.mjs b/dist/index.mjs
index 27e13b13cd76ea3cbd4bcee15aaeb1e3a36590ed..72eecca9e2fb470f7009bac8f69facde1c314ea9 100644
--- a/dist/index.mjs
+++ b/dist/index.mjs
@@ -6,7 +6,6 @@ import store from 'store2';
import { stringify, parse } from 'telejson';
import isEqual from 'lodash/isEqual.js';
import { Addon_TypesEnum } from '@storybook/types';
-export { Addon_TypesEnum as types } from '@storybook/types';
import { global } from '@storybook/global';
import { toId, sanitize } from '@storybook/csf';
import { dedent } from 'ts-dedent';
diff --git a/package.json b/package.json
index 4ac7876a4d40884cd18682d55cb223d77b22a586..15f81469815ce6cbeb983b201d275415af08341b 100644
--- a/package.json
+++ b/package.json
@@ -79,5 +79,10 @@
"./src/index.tsx"
]
},
- "gitHead": "e6a7fd8a655c69780bc20b9749c2699e44beae17"
+ "gitHead": "e6a7fd8a655c69780bc20b9749c2699e44beae17",
+ "pnpm": {
+ "patchedDependencies": {
+ "@storybook/[email protected]": "patches/@[email protected]"
+ }
+ }
}
74 changes: 40 additions & 34 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 90ec7aa

Please sign in to comment.