
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@storybook/postinstall
Advanced tools
A minimal utility library for addons to update project configurations after the addon is installed via the Storybook CLI, e.g. sb add docs
.
Each postinstall is written as a jscodeshift codemod, with the naming convention addon-name/postinstall/<file>.js
where file
is one of { config
, addons
, presets
}.
If these files are present in the addon, the CLI will run them on the existing file in the user's project (or create a new empty file if one doesn't exist). This library exists to make it really easy to make common modifications without having to muck with jscodeshift internals.
To add a preset to presets.js
, simply create a file postinstall/presets.js
in your addon:
import { presetsAddPreset } = require('@storybook/postinstall');
export default function transformer(file, api) {
const root = api.jscodeshift(file.source);
presetsAddPreset(`@storybook/addon-docs/preset`, { some: 'options' }, { root, api });
return root.toSource();
};
7.6.0
Storybook 7.6 is here with increased performance and much more!
@storybook/core-events/preview-errors
dependency missing for Yarn PnP - #24973, thanks @JReinhold!react
and Storybook packages devDependencies
where possible - #24676, thanks @JReinhold!react
and Storybook packages devDependencies
where possible - ATTEMPT 2 - #24834, thanks @JReinhold!addon-onboarding
when checking versions - #24634, thanks @JReinhold!useStoryPrepared
hook failing with undefined
data - #22631, thanks @SpookyJelly!of
prop to Primary
block - #23849, thanks @Wilson2k!defaultProps
in Stories
block - #24506, thanks @WouterK12!store.settings.lastTrackedStoryId
- #24115, thanks @rashidshamloo!"type": "commonjs"
compatibility - #24534, thanks @ndelangen!react-docgen
to v7 - #24530, thanks @shilman!SlotDecorator
component - #24800, thanks @JReinhold!goto
, invalidate
and invalidateAll
- #24955, thanks @paoloricciuti!--test
CLI-flag - #24862, thanks @ndelangen!--test
is true
- #24799, thanks @ndelangen!@storybook/blocks
if build.test.emptyBlocks
is true
- #24650, thanks @ndelangen!FAQs
Storybook addons postinstall utilities
The npm package @storybook/postinstall receives a total of 1,936,120 weekly downloads. As such, @storybook/postinstall popularity was classified as popular.
We found that @storybook/postinstall demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.