@makcbrain/storybook-framework-react-esbuild 1.0.1 → 1.0.3

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/README.md CHANGED
@@ -16,6 +16,14 @@ This framework integrates React with Storybook using esbuild as the build system
16
16
  npm install --save-dev @makcbrain/storybook-framework-react-esbuild
17
17
  ```
18
18
 
19
+ **Important:** This package requires `@storybook/react` as a peer dependency. Make sure you have `@storybook/react` installed with the same version as your `storybook` package:
20
+
21
+ ```bash
22
+ npm install --save-dev @storybook/react
23
+ ```
24
+
25
+ The versions of `storybook` and `@storybook/react` must match (e.g., both should be `9.x.x`).
26
+
19
27
  ## Configuration
20
28
 
21
29
  ### Basic Setup
@@ -143,4 +151,4 @@ MIT
143
151
  ## Links
144
152
 
145
153
  - [Builder Package](https://www.npmjs.com/package/@makcbrain/storybook-builder-esbuild)
146
- - [Storybook Documentation](https://storybook.js.org)
154
+ - [Storybook Documentation](https://storybook.js.org)
package/dist/preset.js CHANGED
@@ -1,4 +1,6 @@
1
+ import { createRequire } from 'node:module';
1
2
  import { dirname, join } from 'node:path';
3
+ const require = createRequire(import.meta.url);
2
4
  const getAbsolutePath = (value) => {
3
5
  return dirname(require.resolve(join(value, 'package.json')));
4
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makcbrain/storybook-framework-react-esbuild",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "author": "Maksim Kadochnikov <makс.brain@gmail.com>",
5
5
  "description": "Framework for Storybook with supporting React and esbuild",
6
6
  "license": "MIT",
@@ -20,7 +20,7 @@
20
20
  "bugs": {
21
21
  "url": "https://github.com/makcbrain/storybook-esbuild/issues"
22
22
  },
23
- "homepage": "https://github.com/makcbrain/storybook-esbuild#readme",
23
+ "homepage": "https://github.com/makcbrain/storybook-esbuild/tree/main/packages/framework-react-esbuild",
24
24
  "publishConfig": {
25
25
  "access": "public"
26
26
  },
@@ -33,8 +33,10 @@
33
33
  "package.json"
34
34
  ],
35
35
  "dependencies": {
36
- "@makcbrain/storybook-builder-esbuild": "1.0.1",
37
- "@storybook/react": "9.1.13"
36
+ "@makcbrain/storybook-builder-esbuild": "1.0.2"
37
+ },
38
+ "peerDependencies": {
39
+ "@storybook/react": "^9.0.0"
38
40
  },
39
41
  "exports": {
40
42
  ".": {