mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
Fix sb add
postinstall skip message
This commit is contained in:
parent
a39724c814
commit
09656875af
@ -91,8 +91,10 @@ export const addStorybookAddonToFile = (addonName, addonsFile, isOfficialAddon)
|
||||
};
|
||||
|
||||
const postinstallAddon = async (addonName, isOfficialAddon) => {
|
||||
let skipMsg = 'unofficial addon';
|
||||
if (isOfficialAddon) {
|
||||
let skipMsg = null;
|
||||
if (!isOfficialAddon) {
|
||||
skipMsg = 'unofficial addon';
|
||||
} else {
|
||||
const presetsCodemod = require.resolve(
|
||||
`${getPackageName(addonName, isOfficialAddon)}/postinstall/presets.js`
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user