Fix sb add postinstall skip message

This commit is contained in:
Michael Shilman 2019-11-04 22:16:42 +08:00
parent a39724c814
commit 09656875af

View File

@ -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`
);