storybook 8.6.0-alpha.4 → 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.
@@ -0,0 +1 @@
1
+ module.exports = require('@storybook/core/csf');
@@ -0,0 +1,2 @@
1
+ export * from '@storybook/core/csf';
2
+ export type * from '@storybook/core/csf';
@@ -0,0 +1 @@
1
+ export * from '@storybook/core/csf';
@@ -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.4",
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",
@@ -233,6 +234,9 @@
233
234
  "internal/core-server": [
234
235
  "./core/core-server/index.d.ts"
235
236
  ],
237
+ "internal/csf": [
238
+ "./core/csf/index.d.ts"
239
+ ],
236
240
  "internal/csf-tools": [
237
241
  "./core/csf-tools/index.d.ts"
238
242
  ],
@@ -315,7 +319,7 @@
315
319
  "sb": "node ./bin/index.js"
316
320
  },
317
321
  "dependencies": {
318
- "@storybook/core": "8.6.0-alpha.4"
322
+ "@storybook/core": "8.6.0-beta.0"
319
323
  },
320
324
  "devDependencies": {
321
325
  "typescript": "^5.7.3"
@@ -338,7 +342,10 @@
338
342
  "./src/core-path.ts",
339
343
  "./src/index.ts"
340
344
  ],
341
- "platform": "node"
345
+ "formats": [
346
+ "cjs",
347
+ "node-esm"
348
+ ]
342
349
  },
343
350
  "gitHead": "e6a7fd8a655c69780bc20b9749c2699e44beae16"
344
351
  }