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

Addons: Remove unused postinstall package #25150

Merged
merged 3 commits into from
Dec 11, 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
5 changes: 5 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- [New UI and props for Button and IconButton components](#new-ui-and-props-for-button-and-iconbutton-components)
- [Icons is deprecated](#icons-is-deprecated)
- [React-docgen component analysis by default](#react-docgen-component-analysis-by-default)
- [Removed postinstall](#removed-postinstall)
- [Framework-specific changes](#framework-specific-changes)
- [Angular: Drop support for Angular \< 15](#angular-drop-support-for-angular--15)
- [Next.js: Drop support for version \< 13.5](#nextjs-drop-support-for-version--135)
Expand Down Expand Up @@ -463,6 +464,10 @@ export default {

For more information see: https://storybook.js.org/docs/react/api/main-config-typescript#reactdocgen

#### Removed postinstall

We removed the `@storybook/postinstall` package, which provided some utilities for addons to programmatically modify user configuration files on install. This package was years out of date, so this should be a non-disruptive change. If your addon used the package, you can view the old source code [here](https://github.com/storybookjs/storybook/tree/release-7-5/code/lib/postinstall) and adapt it into your addon.

### Framework-specific changes

#### Angular: Drop support for Angular \< 15
Expand Down
2 changes: 0 additions & 2 deletions code/addons/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
"ember/**/*",
"html/**/*",
"svelte/**/*",
"postinstall/**/*",
"react/**/*",
"vue/**/*",
"web-components/**/*",
Expand All @@ -108,7 +107,6 @@
"@storybook/global": "^5.0.0",
"@storybook/mdx2-csf": "^1.0.0",
"@storybook/node-logger": "workspace:*",
"@storybook/postinstall": "workspace:*",
"@storybook/preview-api": "workspace:*",
"@storybook/react-dom-shim": "workspace:*",
"@storybook/theming": "workspace:*",
Expand Down
36 changes: 0 additions & 36 deletions code/addons/docs/postinstall/presets.js

This file was deleted.

1 change: 0 additions & 1 deletion code/lib/cli/src/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export default {
'@storybook/manager-api': '8.0.0-alpha.2',
'@storybook/nextjs': '8.0.0-alpha.2',
'@storybook/node-logger': '8.0.0-alpha.2',
'@storybook/postinstall': '8.0.0-alpha.2',
'@storybook/preact': '8.0.0-alpha.2',
'@storybook/preact-vite': '8.0.0-alpha.2',
'@storybook/preact-webpack5': '8.0.0-alpha.2',
Expand Down
20 changes: 0 additions & 20 deletions code/lib/postinstall/README.md

This file was deleted.

7 changes: 0 additions & 7 deletions code/lib/postinstall/jest.config.js

This file was deleted.

62 changes: 0 additions & 62 deletions code/lib/postinstall/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions code/lib/postinstall/project.json

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Empty file.

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions code/lib/postinstall/src/__testtransforms__/presets-add-preset.js

This file was deleted.

30 changes: 0 additions & 30 deletions code/lib/postinstall/src/codemods.test.ts

This file was deleted.

42 changes: 0 additions & 42 deletions code/lib/postinstall/src/frameworks.test.ts

This file was deleted.

25 changes: 0 additions & 25 deletions code/lib/postinstall/src/frameworks.ts

This file was deleted.

2 changes: 0 additions & 2 deletions code/lib/postinstall/src/index.ts

This file was deleted.

50 changes: 0 additions & 50 deletions code/lib/postinstall/src/presets.ts

This file was deleted.

8 changes: 0 additions & 8 deletions code/lib/postinstall/tsconfig.json

This file was deleted.

Loading