Skip to content

Commit

Permalink
fix: correct path to the @storybook/theming/create alias
Browse files Browse the repository at this point in the history
The path to the `@storybook/theming/create` included `package.json` which made it impossible to resolve the alias.

### Before
```
 '@storybook/theming/create': '<localPath>/node_modules/storybook/package.json/core/theming/create.js',
```

### After
 '@storybook/theming/create': '<localPath>/node_modules/storybook/core/theming/create.js',
  • Loading branch information
Averethel authored Jul 18, 2024
1 parent 3590a1c commit ee7a0fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/addons/docs/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async function webpack(
*/
const cliPath = require.resolve('storybook/package.json');
const themingPath = join(cliPath, '..', 'core', 'theming', 'index.js');
const themingCreatePath = join(cliPath, 'core', 'theming', 'create.js');
const themingCreatePath = join(cliPath,, '..', 'core', 'theming', 'create.js');

const componentsPath = join(cliPath, '..', 'core', 'components', 'index.js');
const blocksPath = dirname(require.resolve('@storybook/blocks/package.json'));
Expand Down

0 comments on commit ee7a0fa

Please sign in to comment.