Skip to content

Commit

Permalink
Merge pull request #28643 from Averethel/patch-1
Browse files Browse the repository at this point in the history
CPC: Correct path to the `@storybook/theming/create` alias
(cherry picked from commit 4ea0e0c)
  • Loading branch information
ndelangen authored and storybook-bot committed Jul 19, 2024
1 parent f803845 commit 0ba421d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/addons/docs/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ async function webpack(
*
* In the future the `@storybook/theming` and `@storybook/components` can be removed, as they should be singletons in the future due to the peerDependency on `storybook` package.
*/
const cliPath = require.resolve('storybook/package.json');
const themingPath = join(cliPath, '..', 'core', 'theming', 'index.js');
const cliPath = dirname(require.resolve('storybook/package.json'));
const themingPath = join(cliPath, 'core', 'theming', 'index.js');
const themingCreatePath = join(cliPath, 'core', 'theming', 'create.js');

const componentsPath = join(cliPath, '..', 'core', 'components', 'index.js');
const componentsPath = join(cliPath, 'core', 'components', 'index.js');
const blocksPath = dirname(require.resolve('@storybook/blocks/package.json'));
if (Array.isArray(webpackConfig.resolve?.alias)) {
alias = [...webpackConfig.resolve?.alias];
Expand Down

0 comments on commit 0ba421d

Please sign in to comment.