Skip to content

Commit

Permalink
Let error bubble up
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaun Lloyd committed Oct 5, 2023
1 parent 88c5983 commit d9ee662
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions code/addons/themes/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,5 @@ const spawnPackageManagerScript = async (packageManager, args) => {
};

module.exports = async function postinstall({ packageManager = 'npm' }) {
try {
await spawnPackageManagerScript(packageManager, ['@storybook/auto-config', 'themes']);
} catch (e) {
console.error(e);
process.exit(1);
}
await spawnPackageManagerScript(packageManager, ['@storybook/auto-config', 'themes']);
};

0 comments on commit d9ee662

Please sign in to comment.