storybook 8.6.0-alpha.5 → 8.6.0-beta.0

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.
@@ -1,3 +1,8 @@
1
+ import ESM_COMPAT_Module1 from 'node:module';
2
+ import 'node:url';
3
+ import 'node:path';
4
+
5
+ const require = ESM_COMPAT_Module1.createRequire(import.meta.url);
1
6
  var __require=(x=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(x,{get:(a,b)=>(typeof require<"u"?require:a)[b]}):x)(function(x){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+x+'" is not supported')});
2
7
 
3
8
  export { __require };
package/dist/core-path.js CHANGED
@@ -1,6 +1,9 @@
1
- import { __require } from './chunk-CQ7KV35C.js';
1
+ import ESM_COMPAT_Module1 from 'node:module';
2
+ import 'node:url';
2
3
  import { dirname } from 'node:path';
4
+ import { __require } from './chunk-OWLSIX54.js';
3
5
 
6
+ ESM_COMPAT_Module1.createRequire(import.meta.url);
4
7
  var corePath=dirname(__require.resolve("@storybook/core/package.json"));
5
8
 
6
9
  export { corePath };
package/dist/index.js CHANGED
@@ -1,3 +1,7 @@
1
+ import ESM_COMPAT_Module1 from 'node:module';
2
+ import 'node:url';
3
+ import 'node:path';
1
4
  import { deprecate } from '@storybook/core/node-logger';
2
5
 
6
+ ESM_COMPAT_Module1.createRequire(import.meta.url);
3
7
  deprecate("Exports from @storybook/cli are removed. Please import from @storybook/core-common instead.");
package/dist/proxy.js CHANGED
@@ -1,5 +1,9 @@
1
- import { __require } from './chunk-CQ7KV35C.js';
1
+ import ESM_COMPAT_Module1 from 'node:module';
2
+ import 'node:url';
3
+ import 'node:path';
4
+ import { __require } from './chunk-OWLSIX54.js';
2
5
  import { versions } from '@storybook/core/common';
3
6
  import { spawn } from 'child_process';
4
7
 
8
+ ESM_COMPAT_Module1.createRequire(import.meta.url);
5
9
  var args=process.argv.slice(2);if(["dev","build"].includes(args[0]))__require("@storybook/core/cli/bin");else {let command=["npx","--yes",...args[0]==="init"?[`create-storybook@${versions.storybook}`,...args.slice(1)]:[`@storybook/cli@${versions.storybook}`,...args]];spawn(command[0],command.slice(1),{stdio:"inherit",shell:!0}).on("exit",code=>{code!=null&&process.exit(code),process.exit(1);});}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storybook",
3
- "version": "8.6.0-alpha.5",
3
+ "version": "8.6.0-beta.0",
4
4
  "description": "Storybook's CLI - install, dev, build, upgrade, and more",
5
5
  "keywords": [
6
6
  "cli",
@@ -32,13 +32,9 @@
32
32
  "import": "./dist/index.js",
33
33
  "require": "./dist/index.cjs"
34
34
  },
35
- "./bin/index.cjs": {
36
- "node": "./bin/index.cjs",
37
- "require": "./bin/index.cjs"
38
- },
35
+ "./bin/index.cjs": "./bin/index.cjs",
39
36
  "./core-path": {
40
37
  "types": "./dist/core-path.d.ts",
41
- "node": "./dist/core-path.cjs",
42
38
  "import": "./dist/core-path.js",
43
39
  "require": "./dist/core-path.cjs"
44
40
  },
@@ -103,6 +99,11 @@
103
99
  "import": "./core/types/index.js",
104
100
  "require": "./core/types/index.cjs"
105
101
  },
102
+ "./internal/csf": {
103
+ "types": "./core/csf/index.d.ts",
104
+ "import": "./core/csf/index.js",
105
+ "require": "./core/csf/index.cjs"
106
+ },
106
107
  "./internal/csf-tools": {
107
108
  "types": "./core/csf-tools/index.d.ts",
108
109
  "import": "./core/csf-tools/index.js",
@@ -193,11 +194,6 @@
193
194
  },
194
195
  "./internal/preview/runtime": {
195
196
  "import": "./core/preview/runtime.js"
196
- },
197
- "./internal/csf": {
198
- "types": "./core/csf/index.d.ts",
199
- "import": "./core/csf/index.js",
200
- "require": "./core/csf/index.cjs"
201
197
  }
202
198
  },
203
199
  "main": "dist/index.cjs",
@@ -323,7 +319,7 @@
323
319
  "sb": "node ./bin/index.js"
324
320
  },
325
321
  "dependencies": {
326
- "@storybook/core": "8.6.0-alpha.5"
322
+ "@storybook/core": "8.6.0-beta.0"
327
323
  },
328
324
  "devDependencies": {
329
325
  "typescript": "^5.7.3"
@@ -346,7 +342,10 @@
346
342
  "./src/core-path.ts",
347
343
  "./src/index.ts"
348
344
  ],
349
- "platform": "node"
345
+ "formats": [
346
+ "cjs",
347
+ "node-esm"
348
+ ]
350
349
  },
351
350
  "gitHead": "e6a7fd8a655c69780bc20b9749c2699e44beae16"
352
351
  }