Skip to content

Commit 5ba6003

Browse files
committed
Remove @storybook/csf dependency and update import path in identifier-utils.ts
1 parent c7924fe commit 5ba6003

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
"test": "vitest"
5353
},
5454
"dependencies": {
55-
"@storybook/csf": "^0.1.13",
5655
"dedent": "^1.5.3",
5756
"es-toolkit": "^1.26.1",
5857
"esrap": "^1.2.2",

pnpm-lock.yaml

Lines changed: 1 addition & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/identifier-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { sanitize } from '@storybook/csf';
1+
import { sanitize } from 'storybook/internal/csf';
22

33
/**
44
* @example storyIdToExportName('some-story') => 'SomeStory'
@@ -19,7 +19,7 @@ export const exportNameToStoryId = (exportName: string) =>
1919
* @example storyNameToId('Some Long Story Name!') => 'some-long-story-name'
2020
*/
2121
export const storyNameToId = (name: string) =>
22-
// add a space before all caps and use utility from @storybook/csf to sanitize the resulting string
22+
// add a space before all caps and use utility from storybook/internal/csf to sanitize the resulting string
2323
sanitize(name.replace(/([A-Z])/g, ' $1').trim());
2424

2525
/**

0 commit comments

Comments
 (0)