storybook/lib/api/package.json
Gaëtan Maisse a4de908691
fix: bump required version of @types/reach__router
When building `@storybook/api` we are generating types that are based on `@types/reach__router` (see in dist/index.d.ts: `location: import("@reach/router").WindowLocation<{}>`).
And as in the monorepo we have the latest version of `@types/reach__router` we are using generic version of `WindowLocation` added by 410945551d

So we need to update the required version of `@types/reach__router` in the dependency otherwise users can try to run SB with an old version of `@types/reach__router` and face the following error:
```
ERROR in /.../my-project/node_modules/@storybook/api/dist/index.d.ts(75,19):
TS2315: Type 'WindowLocation' is not generic.
```

I also updated the version in `@storybook/router` to be consistent across the different packages.
2020-05-18 21:41:13 +02:00

72 lines
1.7 KiB
JSON

{
"name": "@storybook/api",
"version": "6.0.0-beta.8",
"description": "Core Storybook API & Context",
"keywords": [
"storybook"
],
"homepage": "https://github.com/storybookjs/storybook/tree/master/lib/api",
"bugs": {
"url": "https://github.com/storybookjs/storybook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git"
},
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist/**/*",
"README.md",
"*.js",
"*.d.ts",
"ts3.5/**/*"
],
"scripts": {
"prepare": "node ./scripts/generateVersion.js && node ../../scripts/prepare.js"
},
"dependencies": {
"@reach/router": "^1.3.3",
"@storybook/channels": "6.0.0-beta.8",
"@storybook/client-logger": "6.0.0-beta.8",
"@storybook/core-events": "6.0.0-beta.8",
"@storybook/csf": "0.0.1",
"@storybook/router": "6.0.0-beta.8",
"@storybook/theming": "6.0.0-beta.8",
"@types/reach__router": "^1.3.5",
"core-js": "^3.0.1",
"fast-deep-equal": "^3.1.1",
"global": "^4.3.2",
"lodash": "^4.17.15",
"memoizerific": "^1.11.3",
"react": "^16.8.3",
"regenerator-runtime": "^0.13.3",
"semver": "^7.3.2",
"store2": "^2.7.1",
"telejson": "^4.0.0",
"ts-dedent": "^1.1.1",
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"@types/lodash": "^4.14.150",
"@types/semver": "^7.1.0",
"flush-promises": "^1.0.2",
"qs": "^6.6.0"
},
"peerDependencies": {
"react-dom": "*"
},
"publishConfig": {
"access": "public"
},
"gitHead": "4b9d901add9452525135caae98ae5f78dd8da9ff",
"typesVersions": {
"<=3.5": {
"*": [
"ts3.5/*"
]
}
}
}