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

Maintenance: Fix url for all packages in package.json #22101

Merged
merged 6 commits into from
May 1, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -2807,7 +2807,7 @@ To help you upgrade your stories, we've created a codemod:
npx @storybook/cli@latest migrate csf-hoist-story-annotations --glob="**/*.stories.js"
```

For more information, [see the documentation](https://github.com/storybookjs/storybook/blob/next/lib/codemod/README.md#csf-hoist-story-annotations).
For more information, [see the documentation](https://github.com/storybookjs/storybook/blob/next/code/lib/codemod/README.md#csf-hoist-story-annotations).

### Zero config typescript

Expand Down Expand Up @@ -2861,7 +2861,7 @@ npm install core-js@^3.0.1 --save-dev

### Args passed as first argument to story

Starting in 6.0, the first argument to a story function is an [Args object](https://storybook.js.org/docs/react/api/csf#args-story-inputs). In 5.3 and earlier, the first argument was a [StoryContext](https://github.com/storybookjs/storybook/blob/next/lib/addons/src/types.ts#L49-L61), and that context is now passed as the second argument by default.
Starting in 6.0, the first argument to a story function is an [Args object](https://storybook.js.org/docs/react/api/csf#args-story-inputs). In 5.3 and earlier, the first argument was a [StoryContext](https://github.com/storybookjs/storybook/blob/release/5.3/lib/addons/src/types.ts#L24-L31), and that context is now passed as the second argument by default.

This breaking change only affects you if your stories actually use the context, which is not common. If you have any stories that use the context, you can either (1) update your stories, or (2) set a flag to opt-out of new behavior.

Expand Down Expand Up @@ -3095,7 +3095,7 @@ The story store no longer emits `renderCurrentStory`/`RENDER_CURRENT_STORY` to t

We've removed the ability to specify the hierarchy separators (how you control the grouping of story kinds in the sidebar). From Storybook 6.0 we have a single separator `/`, which cannot be configured.

If you are currently using custom separators, we encourage you to migrate to using `/` as the sole separator. If you are using `|` or `.` as a separator currently, we provide a codemod, [`upgrade-hierarchy-separators`](https://github.com/storybookjs/storybook/blob/next/lib/codemod/README.md#upgrade-hierarchy-separators), that can be used to rename your components. **Note: the codemod will not work for `.mdx` components, you will need to make the changes by hand.**
If you are currently using custom separators, we encourage you to migrate to using `/` as the sole separator. If you are using `|` or `.` as a separator currently, we provide a codemod, [`upgrade-hierarchy-separators`](https://github.com/storybookjs/storybook/blob/next/code/lib/codemod/README.md#upgrade-hierarchy-separators), that can be used to rename your components. **Note: the codemod will not work for `.mdx` components, you will need to make the changes by hand.**

```
npx sb@latest migrate upgrade-hierarchy-separators --glob="*/**/*.stories.@(tsx|jsx|ts|js)"
Expand Down Expand Up @@ -3586,7 +3586,7 @@ Addon-docs configuration gets simpler in 5.3. In 5.2, each framework had its own

We've deprecated the ability to specify the hierarchy separators (how you control the grouping of story kinds in the sidebar). From Storybook 6.0 we will have a single separator `/`, which cannot be configured.

If you are currently using custom separators, we encourage you to migrate to using `/` as the sole separator. If you are using `|` or `.` as a separator currently, we provide a codemod, [`upgrade-hierarchy-separators`](https://github.com/storybookjs/storybook/blob/next/lib/codemod/README.md#upgrade-hierarchy-separators), that can be used to rename all your components.
If you are currently using custom separators, we encourage you to migrate to using `/` as the sole separator. If you are using `|` or `.` as a separator currently, we provide a codemod, [`upgrade-hierarchy-separators`](https://github.com/storybookjs/storybook/blob/next/code/lib/codemod/README.md#upgrade-hierarchy-separators), that can be used to rename all your components.

```
yarn sb migrate upgrade-hierarchy-separators --glob="*.stories.js"
Expand Down Expand Up @@ -4454,7 +4454,7 @@ The new package names are:

If your codebase is small, it's probably doable to replace them by hand (in your codebase and in `package.json`).

But if you have a lot of occurrences in your codebase, you can use a [codemod we created](./lib/codemod) for you.
But if you have a lot of occurrences in your codebase, you can use a [codemod we created](./code/lib/codemod) for you.

> A codemod makes automatic changed to your app's code.

Expand Down
4 changes: 2 additions & 2 deletions code/addons/a11y/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"verify",
"test"
],
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/addons/a11y",
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/addons/a11y",
joeycozza marked this conversation as resolved.
Show resolved Hide resolved
"bugs": {
"url": "https://github.com/storybookjs/storybook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/a11y"
"directory": "code/addons/a11y"
},
"funding": {
"type": "opencollective",
Expand Down
4 changes: 2 additions & 2 deletions code/addons/actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"essentials",
"data-state"
],
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/addons/actions",
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/addons/actions",
"bugs": {
"url": "https://github.com/storybookjs/storybook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/actions"
"directory": "code/addons/actions"
},
"funding": {
"type": "opencollective",
Expand Down
4 changes: 2 additions & 2 deletions code/addons/backgrounds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
"essentials",
"design"
],
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/addons/backgrounds",
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/addons/backgrounds",
"bugs": {
"url": "https://github.com/storybookjs/storybook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/backgrounds"
"directory": "code/addons/backgrounds"
},
"funding": {
"type": "opencollective",
Expand Down
4 changes: 2 additions & 2 deletions code/addons/controls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"essentials",
"data-state"
],
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/addons/controls",
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/addons/controls",
"bugs": {
"url": "https://github.com/storybookjs/storybook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/controls"
"directory": "code/addons/controls"
},
"funding": {
"type": "opencollective",
Expand Down
4 changes: 2 additions & 2 deletions code/addons/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
"essentials",
"organize"
],
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/addons/docs",
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/addons/docs",
"bugs": {
"url": "https://github.com/storybookjs/storybook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/docs"
"directory": "code/addons/docs"
},
"funding": {
"type": "opencollective",
Expand Down
4 changes: 2 additions & 2 deletions code/addons/essentials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"essentials",
"storybook"
],
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/addons/essentials",
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/addons/essentials",
"bugs": {
"url": "https://github.com/storybookjs/storybook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/essentials"
"directory": "code/addons/essentials"
},
"funding": {
"type": "opencollective",
Expand Down
4 changes: 2 additions & 2 deletions code/addons/gfm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
"tables",
"links"
],
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/addons/gfm",
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/addons/gfm",
"bugs": {
"url": "https://github.com/storybookjs/storybook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/gfm"
"directory": "code/addons/gfm"
},
"funding": {
"type": "opencollective",
Expand Down
4 changes: 2 additions & 2 deletions code/addons/highlight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
"style",
"appearance"
],
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/addons/highlight",
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/addons/highlight",
"bugs": {
"url": "https://github.com/storybookjs/storybook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/highlight"
"directory": "code/addons/highlight"
},
"funding": {
"type": "opencollective",
Expand Down
4 changes: 2 additions & 2 deletions code/addons/interactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"data-state",
"test"
],
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/addons/interactions",
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/addons/interactions",
"bugs": {
"url": "https://github.com/storybookjs/storybook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/interactions"
"directory": "code/addons/interactions"
},
"funding": {
"type": "opencollective",
Expand Down
4 changes: 2 additions & 2 deletions code/addons/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"unit-testing",
"test"
],
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/addons/jest",
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/addons/jest",
"bugs": {
"url": "https://github.com/storybookjs/storybook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/jest"
"directory": "code/addons/jest"
},
"funding": {
"type": "opencollective",
Expand Down
4 changes: 2 additions & 2 deletions code/addons/links/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"storybook",
"organize"
],
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/addons/links",
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/addons/links",
"bugs": {
"url": "https://github.com/storybookjs/storybook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/links"
"directory": "code/addons/links"
},
"funding": {
"type": "opencollective",
Expand Down
4 changes: 2 additions & 2 deletions code/addons/measure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"CSS",
"design"
],
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/addons/measure",
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/addons/measure",
"bugs": {
"url": "https://github.com/storybookjs/storybook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/measure"
"directory": "code/addons/measure"
},
"funding": {
"type": "opencollective",
Expand Down
4 changes: 2 additions & 2 deletions code/addons/outline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"storybook-addon",
"style"
],
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/addons/outline",
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/addons/outline",
"bugs": {
"url": "https://github.com/storybookjs/storybook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/outline"
"directory": "code/addons/outline"
},
"funding": {
"type": "opencollective",
Expand Down
4 changes: 2 additions & 2 deletions code/addons/storyshots-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"storybook",
"test"
],
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/addons/storyshots-core",
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/addons/storyshots-core",
"bugs": {
"url": "https://github.com/storybookjs/storybook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/storyshots-core"
"directory": "code/addons/storyshots-core"
},
"funding": {
"type": "opencollective",
Expand Down
4 changes: 2 additions & 2 deletions code/addons/storyshots-puppeteer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"addon",
"storybook"
],
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/addons/storyshots-puppeteer",
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/addons/storyshots-puppeteer",
"bugs": {
"url": "https://github.com/storybookjs/storybook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/storyshots-puppeteer"
"directory": "code/addons/storyshots-puppeteer"
},
"funding": {
"type": "opencollective",
Expand Down
4 changes: 2 additions & 2 deletions code/addons/storysource/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"storybook",
"code"
],
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/addons/storysource",
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/addons/storysource",
"bugs": {
"url": "https://github.com/storybookjs/storybook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/storysource"
"directory": "code/addons/storysource"
},
"funding": {
"type": "opencollective",
Expand Down
4 changes: 2 additions & 2 deletions code/addons/toolbars/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"test",
"essentials"
],
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/addons/toolbars",
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/addons/toolbars",
"bugs": {
"url": "https://github.com/storybookjs/storybook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/toolbars"
"directory": "code/addons/toolbars"
},
"funding": {
"type": "opencollective",
Expand Down
4 changes: 2 additions & 2 deletions code/addons/viewport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
"style",
"essentials"
],
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/addons/viewport",
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/addons/viewport",
"bugs": {
"url": "https://github.com/storybookjs/storybook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/viewport"
"directory": "code/addons/viewport"
},
"funding": {
"type": "opencollective",
Expand Down
4 changes: 2 additions & 2 deletions code/frameworks/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"storybook",
"angular"
],
"homepage": "https://github.com/storybookjs/storybook/tree/main/frameworks/angular",
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/frameworks/angular",
"bugs": {
"url": "https://github.com/storybookjs/storybook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "frameworks/angular"
"directory": "code/frameworks/angular"
},
"funding": {
"type": "opencollective",
Expand Down
4 changes: 2 additions & 2 deletions code/frameworks/ember/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"name": "@storybook/ember",
"version": "7.1.0-alpha.7",
"description": "Storybook for Ember: Develop Ember Component in isolation with Hot Reloading.",
"homepage": "https://github.com/storybookjs/storybook/tree/main/frameworks/ember",
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/frameworks/ember",
"bugs": {
"url": "https://github.com/storybookjs/storybook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "frameworks/ember"
"directory": "code/frameworks/ember"
},
"funding": {
"type": "opencollective",
Expand Down