@storybook/preact-vite 7.0.0-beta.16 → 7.0.0-beta.18
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 +2 -3
 - package/package.json +7 -14
 
    
        package/README.md
    CHANGED
    
    | 
         @@ -9,7 +9,7 @@ 
     | 
|
| 
       9 
9 
     | 
    
         | 
| 
       10 
10 
     | 
    
         
             
            ### In a project without Storybook
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
     | 
    
         
            -
            Follow the prompts after running this command in your  
     | 
| 
      
 12 
     | 
    
         
            +
            Follow the prompts after running this command in your Preact project's root directory:
         
     | 
| 
       13 
13 
     | 
    
         | 
| 
       14 
14 
     | 
    
         
             
            ```bash
         
     | 
| 
       15 
15 
     | 
    
         
             
            npx storybook@next init
         
     | 
| 
         @@ -40,8 +40,7 @@ Update your `main.js` to change the framework property: 
     | 
|
| 
       40 
40 
     | 
    
         
             
            module.exports = {
         
     | 
| 
       41 
41 
     | 
    
         
             
              // ...
         
     | 
| 
       42 
42 
     | 
    
         
             
              framework: {
         
     | 
| 
       43 
     | 
    
         
            -
                 
     | 
| 
       44 
     | 
    
         
            -
                name: '@storybook/preact-vite', // Add this
         
     | 
| 
      
 43 
     | 
    
         
            +
                name: '@storybook/preact-vite', // <- Change this
         
     | 
| 
       45 
44 
     | 
    
         
             
                options: {},
         
     | 
| 
       46 
45 
     | 
    
         
             
              },
         
     | 
| 
       47 
46 
     | 
    
         
             
            };
         
     | 
    
        package/package.json
    CHANGED
    
    | 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            {
         
     | 
| 
       2 
2 
     | 
    
         
             
              "name": "@storybook/preact-vite",
         
     | 
| 
       3 
     | 
    
         
            -
              "version": "7.0.0-beta. 
     | 
| 
      
 3 
     | 
    
         
            +
              "version": "7.0.0-beta.18",
         
     | 
| 
       4 
4 
     | 
    
         
             
              "description": "Storybook for Preact and Vite: Develop Preact components in isolation with Hot Reloading.",
         
     | 
| 
       5 
5 
     | 
    
         
             
              "keywords": [
         
     | 
| 
       6 
6 
     | 
    
         
             
                "storybook"
         
     | 
| 
         @@ -30,11 +30,7 @@ 
     | 
|
| 
       30 
30 
     | 
    
         
             
                  "import": "./dist/preset.mjs",
         
     | 
| 
       31 
31 
     | 
    
         
             
                  "types": "./dist/preset.d.ts"
         
     | 
| 
       32 
32 
     | 
    
         
             
                },
         
     | 
| 
       33 
     | 
    
         
            -
                "./package.json":  
     | 
| 
       34 
     | 
    
         
            -
                  "require": "./package.json",
         
     | 
| 
       35 
     | 
    
         
            -
                  "import": "./package.json",
         
     | 
| 
       36 
     | 
    
         
            -
                  "types": "./package.json"
         
     | 
| 
       37 
     | 
    
         
            -
                }
         
     | 
| 
      
 33 
     | 
    
         
            +
                "./package.json": "./package.json"
         
     | 
| 
       38 
34 
     | 
    
         
             
              },
         
     | 
| 
       39 
35 
     | 
    
         
             
              "main": "dist/index.js",
         
     | 
| 
       40 
36 
     | 
    
         
             
              "module": "dist/index.mjs",
         
     | 
| 
         @@ -51,12 +47,9 @@ 
     | 
|
| 
       51 
47 
     | 
    
         
             
                "prep": "../../../scripts/prepare/bundle.ts"
         
     | 
| 
       52 
48 
     | 
    
         
             
              },
         
     | 
| 
       53 
49 
     | 
    
         
             
              "dependencies": {
         
     | 
| 
       54 
     | 
    
         
            -
                "@preact/preset-vite": "^2. 
     | 
| 
       55 
     | 
    
         
            -
                "@ 
     | 
| 
       56 
     | 
    
         
            -
                "@storybook/ 
     | 
| 
       57 
     | 
    
         
            -
                "@storybook/preact": "7.0.0-beta.16",
         
     | 
| 
       58 
     | 
    
         
            -
                "ast-types": "^0.14.2",
         
     | 
| 
       59 
     | 
    
         
            -
                "magic-string": "^0.26.1"
         
     | 
| 
      
 50 
     | 
    
         
            +
                "@preact/preset-vite": "^2.0.0",
         
     | 
| 
      
 51 
     | 
    
         
            +
                "@storybook/builder-vite": "7.0.0-beta.18",
         
     | 
| 
      
 52 
     | 
    
         
            +
                "@storybook/preact": "7.0.0-beta.18"
         
     | 
| 
       60 
53 
     | 
    
         
             
              },
         
     | 
| 
       61 
54 
     | 
    
         
             
              "devDependencies": {
         
     | 
| 
       62 
55 
     | 
    
         
             
                "@types/node": "^16.0.0",
         
     | 
| 
         @@ -68,7 +61,7 @@ 
     | 
|
| 
       68 
61 
     | 
    
         
             
                "vite": "^3.0.0 || ^4.0.0"
         
     | 
| 
       69 
62 
     | 
    
         
             
              },
         
     | 
| 
       70 
63 
     | 
    
         
             
              "engines": {
         
     | 
| 
       71 
     | 
    
         
            -
                "node": " 
     | 
| 
      
 64 
     | 
    
         
            +
                "node": ">=16"
         
     | 
| 
       72 
65 
     | 
    
         
             
              },
         
     | 
| 
       73 
66 
     | 
    
         
             
              "publishConfig": {
         
     | 
| 
       74 
67 
     | 
    
         
             
                "access": "public"
         
     | 
| 
         @@ -80,5 +73,5 @@ 
     | 
|
| 
       80 
73 
     | 
    
         
             
                ],
         
     | 
| 
       81 
74 
     | 
    
         
             
                "platform": "node"
         
     | 
| 
       82 
75 
     | 
    
         
             
              },
         
     | 
| 
       83 
     | 
    
         
            -
              "gitHead": " 
     | 
| 
      
 76 
     | 
    
         
            +
              "gitHead": "fd0c69d276a6b6d1211d33f00d330b14d17d6aea"
         
     | 
| 
       84 
77 
     | 
    
         
             
            }
         
     |