forked from storybookjs/storybook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change /dist to ESM && upgrade required dependencies to make this hap…
…pen & deal with the consequences
- Loading branch information
Showing
201 changed files
with
4,703 additions
and
7,054 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
module.exports = require('./dist/preset'); | ||
function managerEntries(entry = []) { | ||
return [...entry, require.resolve('./dist/esm/register')]; | ||
} | ||
|
||
function config(entry = []) { | ||
return [ | ||
...entry, | ||
require.resolve('./dist/esm/a11yRunner'), | ||
require.resolve('./dist/esm/a11yHighlight'), | ||
]; | ||
} | ||
|
||
module.exports = { managerEntries, config }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
require('./dist/register'); | ||
require('./dist/esm/register'); |
2 changes: 1 addition & 1 deletion
2
addons/a11y/src/preset/addDecorator.ts → addons/a11y/src/addDecorator.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { withA11y } from '../index'; | ||
import { withA11y } from '.'; | ||
|
||
export const decorators = [withA11y]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
declare module 'global'; | ||
declare module 'react-sizeme'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,16 @@ | ||
module.exports = require('./dist/preset'); | ||
function managerEntries(entry, options) { | ||
return [...entry, require.resolve('./dist/esm/register')]; | ||
} | ||
|
||
function config(entry = [], { addDecorator = true } = {}) { | ||
const actionConfig = []; | ||
if (addDecorator) { | ||
actionConfig.push(require.resolve('./dist/esm/preset/addDecorator')); | ||
} | ||
return [...entry, ...actionConfig, require.resolve('./dist/esm/preset/addArgs')]; | ||
} | ||
|
||
module.exports = { | ||
managerEntries, | ||
config, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
require('./dist/register'); | ||
require('./dist/esm/register'); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// TODO: following packages need definition files or a TS migration | ||
declare module 'global'; | ||
declare module 'react-inspector'; | ||
declare module 'uuid-browser/v4'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,16 @@ | ||
module.exports = require('./dist/preset'); | ||
function config(entry = []) { | ||
return [ | ||
...entry, | ||
require.resolve('./dist/esm/preset/addDecorator'), | ||
require.resolve('./dist/esm/preset/addParameter'), | ||
]; | ||
} | ||
|
||
function managerEntries(entry = [], options) { | ||
return [...entry, require.resolve('./dist/esm/register')]; | ||
} | ||
|
||
module.exports = { | ||
managerEntries, | ||
config, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
require('./dist/register'); | ||
require('./dist/esm/register'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
module.exports = require('./dist/preset'); | ||
const { ensureDocsBeforeControls } = require('./dist/cjs/preset/ensureDocsBeforeControls'); | ||
|
||
function managerEntries(entry = [], options) { | ||
ensureDocsBeforeControls(options.configDir); | ||
return [...entry, require.resolve('./dist/esm/register')]; | ||
} | ||
|
||
module.exports = { managerEntries }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './dist/register'; | ||
import './dist/esm/register'; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function managerEntries(entry = [], options) { | ||
return [...entry, require.resolve('./dist/esm/register')]; | ||
} | ||
|
||
module.exports = { managerEntries }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
require('./dist/register.js'); | ||
require('./dist/esm/register.js'); |
Oops, something went wrong.