Skip to content

Commit

Permalink
rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Jan 16, 2025
1 parent cd3164a commit c0679c4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ module.exports = {
ImportDeclaration: (node) => {
const fileName = context.getPhysicalFilename();
const isInCLI = !!fileName.includes(path.join('code', 'lib', 'cli') + path.sep);
const isInCodeod = !!fileName.includes(path.join('code', 'lib', 'codemod'));
const isInCodemod = !!fileName.includes(path.join('code', 'lib', 'codemod'));
const isInCore = !!fileName.includes(path.join('code', 'core'));

if (
node.source.value.startsWith('@storybook/core/') &&
!isInCLI &&
!isInCore &&
!isInCodeod
!isInCodemod
) {
const newPath = node.source.value
.replace('@storybook/core', 'storybook/internal')
Expand Down

0 comments on commit c0679c4

Please sign in to comment.