@toptal/davinci-storybook 5.1.0 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @toptal/davinci-storybook
2
2
 
3
+ ## 5.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2588](https://github.com/toptal/davinci/pull/2588) [`0085a62`](https://github.com/toptal/davinci/commit/0085a62c3d8ea2b98723bbb99bd1a783b64faf9a) Thanks [@sashuk](https://github.com/sashuk)!
8
+ - update dependencies
9
+
10
+ ## 5.2.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [#2600](https://github.com/toptal/davinci/pull/2600) [`3deb117`](https://github.com/toptal/davinci/commit/3deb1178b6eac94181b68b15e216e9de002ce7f0) Thanks [@denieler](https://github.com/denieler)!
15
+
16
+ ---
17
+
18
+ - fix variable names that are overriden by ESM in storybook stories
19
+
3
20
  ## 5.1.0
4
21
 
5
22
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-storybook",
3
- "version": "5.1.0",
3
+ "version": "5.2.1",
4
4
  "keywords": [
5
5
  "essentials",
6
6
  "storybook",
@@ -39,7 +39,7 @@
39
39
  "find-yarn-workspace-root": "^2.0.0",
40
40
  "fs-extra": "^11.1.1",
41
41
  "globby": "^13.2.0",
42
- "happo-plugin-storybook": "^4.3.1",
42
+ "happo-plugin-storybook": "^4.4.3",
43
43
  "js-yaml": "^4.1.0",
44
44
  "ora": "^5.4.1",
45
45
  "ws": "^6.2.3",
@@ -85,7 +85,7 @@
85
85
  "@storybook/react-webpack5": "8",
86
86
  "@swc/plugin-styled-components": "^9.1.0",
87
87
  "babel-plugin-styled-components": "^2.1.4",
88
- "happo-plugin-storybook": "^4.3.1",
88
+ "happo-plugin-storybook": "^4.4.3",
89
89
  "react-refresh": "^0.14.0",
90
90
  "storybook": "8",
91
91
  "tailwindcss": "^3.3.5",
package/src/stories.js CHANGED
@@ -6,11 +6,11 @@ import { globby } from 'globby'
6
6
 
7
7
  const STORY_EXTENSIONS = ['mdx', 'tsx', 'md', 'jsx']
8
8
 
9
- const __filename = fileURLToPath(import.meta.url)
10
- const __dirname = path.dirname(__filename)
9
+ const CURRENT_FILENAME = fileURLToPath(import.meta.url)
10
+ const CURRENT_DIRNAME = path.dirname(CURRENT_FILENAME)
11
11
 
12
12
  let currentWorkspace = process.cwd()
13
- let isRootWorkspace = __dirname === `${currentWorkspace}/.storybook`
13
+ let isRootWorkspace = CURRENT_DIRNAME === `${currentWorkspace}/.storybook`
14
14
 
15
15
  const args = yargs(process.argv.slice(2))
16
16
  .command('src', 'Source path to stories')