@storybook/types 8.2.0-alpha.9 → 8.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/types",
3
- "version": "8.2.0-alpha.9",
3
+ "version": "8.2.0-beta.0",
4
4
  "description": "Core Storybook TS Types",
5
5
  "keywords": [
6
6
  "storybook"
@@ -22,46 +22,26 @@
22
22
  "sideEffects": false,
23
23
  "exports": {
24
24
  ".": {
25
- "types": "./dist/index.d.ts",
26
- "node": "./dist/index.js",
27
- "import": "./dist/index.mjs",
28
- "require": "./dist/index.js"
25
+ "types": "./shim.d.ts",
26
+ "import": "./shim.mjs",
27
+ "require": "./shim.js"
29
28
  },
30
29
  "./package.json": "./package.json"
31
30
  },
32
- "main": "dist/index.js",
33
- "module": "dist/index.mjs",
34
- "types": "dist/index.d.ts",
31
+ "main": "./shim.js",
32
+ "module": "./shim.mjs",
33
+ "types": "./shim.d.ts",
35
34
  "files": [
36
- "dist/**/*",
37
35
  "README.md",
38
36
  "*.js",
39
- "*.d.ts",
40
- "!src/**/*"
37
+ "*.mjs",
38
+ "*.cjs",
39
+ "*.d.ts"
41
40
  ],
42
- "scripts": {
43
- "check": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/check.ts",
44
- "prep": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/bundle.ts"
45
- },
46
- "dependencies": {
47
- "@storybook/channels": "8.2.0-alpha.9",
48
- "@types/express": "^4.17.21",
49
- "file-system-cache": "2.3.0"
50
- },
51
- "devDependencies": {
52
- "@storybook/csf": "^0.1.8",
53
- "@types/fs-extra": "^11.0.1",
54
- "@types/node": "^18.0.0",
55
- "typescript": "^5.3.2"
41
+ "peerDependencies": {
42
+ "storybook": "^8.2.0-beta.0"
56
43
  },
57
44
  "publishConfig": {
58
45
  "access": "public"
59
- },
60
- "bundler": {
61
- "pre": "./scripts/generate-available-frameworks.js",
62
- "entries": [
63
- "./src/index.ts"
64
- ]
65
- },
66
- "gitHead": "e6a7fd8a655c69780bc20b9749c2699e44beae16"
46
+ }
67
47
  }
package/shim.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from 'storybook/internal/types';
2
+ export type * from 'storybook/internal/types';
package/shim.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('storybook/internal/types');
package/shim.mjs ADDED
@@ -0,0 +1 @@
1
+ export * from 'storybook/internal/types';
package/README.md DELETED
@@ -1,8 +0,0 @@
1
- # Storybook Types
2
-
3
- Storybook types exports only typescript types for storybook usage.
4
-
5
- It exports typescript enums, which do have a runtime implementation.
6
- But it should not export any implementation such as classes, methods, functions or constants.
7
-
8
- It also has no dependencies, all the types it exports are bundled in.