Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix importing global variables #217

Merged
merged 1 commit into from
Feb 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
"@storybook/api": "^6.5.14",
"@storybook/components": "^6.5.14",
"@storybook/core-events": "^6.5.14",
"@storybook/global": "^5.0.0",
"@storybook/theming": "^6.5.14",
"fast-deep-equal": "^3.1.3",
"global": "^4.4.0",
"memoizerific": "^1.11.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/Tool.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import global from 'global';
import { global } from '@storybook/global';
import { themes, ThemeVars } from '@storybook/theming';
import { IconButton } from '@storybook/components';
import {
Expand Down
1 change: 0 additions & 1 deletion typings/global.d.ts

This file was deleted.

5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2207,6 +2207,11 @@
lodash "^4.17.21"
regenerator-runtime "^0.13.7"

"@storybook/global@^5.0.0":
version "5.0.0"
resolved "https://registry.yarnpkg.com/@storybook/global/-/global-5.0.0.tgz#b793d34b94f572c1d7d9e0f44fac4e0dbc9572ed"
integrity sha512-FcOqPAXACP0I3oJ/ws6/rrPT9WGhu915Cg8D02a9YxLo0DE9zI+a9A5gRGvmQ09fiWPukqI8ZAEoQEdWUKMQdQ==

"@storybook/manager-webpack4@6.5.14":
version "6.5.14"
resolved "https://registry.npmjs.org/@storybook/manager-webpack4/-/manager-webpack4-6.5.14.tgz#92cd3d34b9e28d7edd215b1e79b1f0757fb66eba"
Expand Down