mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-02 05:03:44 +08:00
- `@types/webpack-env` must be defined as `dependencies` in packages that export a type/function using typings from `@types/webpack-env` (it is often `NodeModule`). In that case `/// <reference types="webpack-env" />` is present in some files of the `dist` folder of the lib. Example: `lib/client-api`. - `@types/webpack-env` must be defined as `devDependencies` in packages that use its typings internally but does not expose anything related to it. Many addons need the type because they use `module.hot` function. Example: `addons/a11y` - `webpack-env` should be removed from "compilerOptions.types" key of `tsconfig.json` of packages that don't need it. I also bump `@types/webpack-env` to ^1.15.0 to have the same version all across the monorepo
47 lines
1.0 KiB
JSON
47 lines
1.0 KiB
JSON
{
|
|
"name": "@storybook/addon-options",
|
|
"version": "5.3.7",
|
|
"description": "Options addon for storybook",
|
|
"keywords": [
|
|
"addon",
|
|
"storybook"
|
|
],
|
|
"homepage": "https://github.com/storybookjs/storybook/tree/master/addons/options",
|
|
"bugs": {
|
|
"url": "https://github.com/storybookjs/storybook/issues"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/storybookjs/storybook.git",
|
|
"directory": "addons/options"
|
|
},
|
|
"license": "MIT",
|
|
"files": [
|
|
"dist/**/*",
|
|
"docs/**/*",
|
|
"README.md",
|
|
"*.js",
|
|
"*.d.ts"
|
|
],
|
|
"main": "dist/index.js",
|
|
"types": "dist/public_api.d.ts",
|
|
"scripts": {
|
|
"prepare": "node ../../scripts/prepare.js"
|
|
},
|
|
"dependencies": {
|
|
"@storybook/addons": "5.3.7",
|
|
"core-js": "^3.0.1",
|
|
"util-deprecate": "^1.0.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/webpack-env": "^1.15.0"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "*"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"gitHead": "4b9d901add9452525135caae98ae5f78dd8da9ff"
|
|
}
|