Skip to content

Commit

Permalink
Update to our version of babel rc hook
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Nov 11, 2021
1 parent 1eb8aa1 commit 8ea0e35
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .babelrc.js
Expand Up @@ -6,7 +6,7 @@ const withTests = {
],
],
plugins: [
'babel-plugin-require-context-hook',
'@storybook/babel-plugin-require-context-hook',
'babel-plugin-dynamic-import-node',
'@babel/plugin-transform-runtime',
],
Expand Down
2 changes: 1 addition & 1 deletion addons/storyshots/storyshots-core/package.json
Expand Up @@ -46,6 +46,7 @@
"dependencies": {
"@jest/transform": "^26.6.2",
"@storybook/addons": "6.4.0-beta.31",
"@storybook/babel-plugin-require-context-hook": "1.0.1--canary.4.86c1352.0",
"@storybook/client-api": "6.4.0-beta.31",
"@storybook/core": "6.4.0-beta.31",
"@storybook/core-client": "6.4.0-beta.31",
Expand All @@ -54,7 +55,6 @@
"@types/glob": "^7.1.3",
"@types/jest": "^26.0.16",
"@types/jest-specific-snapshot": "^0.5.3",
"babel-plugin-require-context-hook": "^1.0.0",
"core-js": "^3.8.2",
"glob": "^7.1.6",
"global": "^4.4.0",
Expand Down
Expand Up @@ -6,7 +6,7 @@ import {
normalizeStoriesEntry,
NormalizedStoriesSpecifier,
} from '@storybook/core-common';
import registerRequireContextHook from 'babel-plugin-require-context-hook/register';
import registerRequireContextHook from '@storybook/babel-plugin-require-context-hook/register';
import global from 'global';
import { AnyFramework, ArgsEnhancer, ArgTypesEnhancer, DecoratorFunction } from '@storybook/csf';

Expand Down
2 changes: 1 addition & 1 deletion addons/storyshots/storyshots-core/src/typings.d.ts
Expand Up @@ -3,4 +3,4 @@ declare module 'jest-preset-angular/*';
declare module 'preact-render-to-string/jsx';
declare module 'react-test-renderer*';
declare module 'rax-test-renderer*';
declare module 'babel-plugin-require-context-hook/register';
declare module '@storybook/babel-plugin-require-context-hook/register';
2 changes: 1 addition & 1 deletion examples/angular-cli/jest-config/setup.ts
@@ -1,4 +1,4 @@
import 'jest-preset-angular';
import './globalMocks';

require('babel-plugin-require-context-hook/register')();
require('@storybook/babel-plugin-require-context-hook/register')();
2 changes: 1 addition & 1 deletion examples/angular-cli/package.json
Expand Up @@ -51,6 +51,7 @@
"@storybook/addon-storysource": "6.4.0-beta.31",
"@storybook/addons": "6.4.0-beta.31",
"@storybook/angular": "6.4.0-beta.31",
"@storybook/babel-plugin-require-context-hook": "1.0.1--canary.4.86c1352.0",
"@storybook/jest": "^0.0.2",
"@storybook/source-loader": "6.4.0-beta.31",
"@storybook/testing-library": "^0.0.3",
Expand All @@ -59,7 +60,6 @@
"@types/node": "^14.14.20",
"@types/webpack-env": "^1.16.0",
"@webcomponents/custom-elements": "^1.4.3",
"babel-plugin-require-context-hook": "^1.0.0",
"global": "^4.4.0",
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.2",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -146,6 +146,7 @@
"@storybook/addons": "workspace:*",
"@storybook/angular": "workspace:*",
"@storybook/api": "workspace:*",
"@storybook/babel-plugin-require-context-hook": "1.0.1--canary.4.86c1352.0",
"@storybook/channel-postmessage": "workspace:*",
"@storybook/channel-websocket": "workspace:*",
"@storybook/channels": "workspace:*",
Expand Down Expand Up @@ -209,7 +210,6 @@
"babel-plugin-dynamic-import-node": "^2.3.3",
"babel-plugin-emotion": "^10.0.33",
"babel-plugin-macros": "^3.0.1",
"babel-plugin-require-context-hook": "^1.0.0",
"chalk": "^4.1.0",
"chromatic": "^6.0.2",
"codecov": "^3.8.1",
Expand Down
2 changes: 1 addition & 1 deletion scripts/jest.init.ts
Expand Up @@ -8,7 +8,7 @@ import Adapter from 'enzyme-adapter-react-16';
// @ts-ignore
import regeneratorRuntime from 'regenerator-runtime';
// @ts-ignore
import registerRequireContextHook from 'babel-plugin-require-context-hook/register';
import registerRequireContextHook from '@storybook/babel-plugin-require-context-hook/register';
import EventEmitter from 'events';

registerRequireContextHook();
Expand Down
20 changes: 10 additions & 10 deletions yarn.lock
Expand Up @@ -7288,6 +7288,7 @@ __metadata:
"@storybook/addon-docs": 6.4.0-beta.31
"@storybook/addons": 6.4.0-beta.31
"@storybook/angular": 6.4.0-beta.31
"@storybook/babel-plugin-require-context-hook": 1.0.1--canary.4.86c1352.0
"@storybook/client-api": 6.4.0-beta.31
"@storybook/core": 6.4.0-beta.31
"@storybook/core-client": 6.4.0-beta.31
Expand All @@ -7300,7 +7301,6 @@ __metadata:
"@types/jest": ^26.0.16
"@types/jest-specific-snapshot": ^0.5.3
babel-loader: ^8.0.0
babel-plugin-require-context-hook: ^1.0.0
core-js: ^3.8.2
enzyme: ^3.11.0
enzyme-to-json: ^3.6.1
Expand Down Expand Up @@ -7636,6 +7636,13 @@ __metadata:
languageName: node
linkType: hard

"@storybook/babel-plugin-require-context-hook@npm:1.0.1--canary.4.86c1352.0":
version: 1.0.1--canary.4.86c1352.0
resolution: "@storybook/babel-plugin-require-context-hook@npm:1.0.1--canary.4.86c1352.0"
checksum: 2d6e506c3648021ab97da7d5e8f38225c5bb363b5acf3e78c955502fe647b6cb7301d55b68812dc22a9df2d2ed37bf860938d12f9fc504c4d985d2bf2f4a4a94
languageName: node
linkType: hard

"@storybook/builder-webpack4@6.4.0-beta.31, @storybook/builder-webpack4@workspace:lib/builder-webpack4":
version: 0.0.0-use.local
resolution: "@storybook/builder-webpack4@workspace:lib/builder-webpack4"
Expand Down Expand Up @@ -8811,6 +8818,7 @@ __metadata:
"@storybook/addons": "workspace:*"
"@storybook/angular": "workspace:*"
"@storybook/api": "workspace:*"
"@storybook/babel-plugin-require-context-hook": 1.0.1--canary.4.86c1352.0
"@storybook/channel-postmessage": "workspace:*"
"@storybook/channel-websocket": "workspace:*"
"@storybook/channels": "workspace:*"
Expand Down Expand Up @@ -8874,7 +8882,6 @@ __metadata:
babel-plugin-dynamic-import-node: ^2.3.3
babel-plugin-emotion: ^10.0.33
babel-plugin-macros: ^3.0.1
babel-plugin-require-context-hook: ^1.0.0
chalk: ^4.1.0
chromatic: ^6.0.2
codecov: ^3.8.1
Expand Down Expand Up @@ -13046,6 +13053,7 @@ __metadata:
"@storybook/addon-storysource": 6.4.0-beta.31
"@storybook/addons": 6.4.0-beta.31
"@storybook/angular": 6.4.0-beta.31
"@storybook/babel-plugin-require-context-hook": 1.0.1--canary.4.86c1352.0
"@storybook/jest": ^0.0.2
"@storybook/source-loader": 6.4.0-beta.31
"@storybook/testing-library": ^0.0.3
Expand All @@ -13054,7 +13062,6 @@ __metadata:
"@types/node": ^14.14.20
"@types/webpack-env": ^1.16.0
"@webcomponents/custom-elements": ^1.4.3
babel-plugin-require-context-hook: ^1.0.0
core-js: ^3.8.2
global: ^4.4.0
jasmine-core: ~3.6.0
Expand Down Expand Up @@ -14444,13 +14451,6 @@ __metadata:
languageName: node
linkType: hard

"babel-plugin-require-context-hook@npm:^1.0.0":
version: 1.0.0
resolution: "babel-plugin-require-context-hook@npm:1.0.0"
checksum: 1abd58b832a0819daa39c39b6cafbd18ca7b1e13786ae5238f393c4e558d9c8642b04147334dc2b9990950098c300ba1362da4401124da6e6ac532234a72dd30
languageName: node
linkType: hard

"babel-plugin-styled-components@npm:>= 1":
version: 1.12.0
resolution: "babel-plugin-styled-components@npm:1.12.0"
Expand Down

0 comments on commit 8ea0e35

Please sign in to comment.