Files
habitica/website/client/scripts/npm-postinstall.js
negue 72606ad376 Fix Storybook Installation and production build CI (#13465)
* Revert storybook updates - pin versions - add production build CI

* test.yml wasnt added to the commit

Co-authored-by: Sabe Jones <sabrecat@gmail.com>
2021-09-01 18:47:13 -05:00

14 lines
263 B
JavaScript

/* eslint-disable import/no-commonjs */
const { execSync } = require('child_process');
if (process.env.NODE_ENV === 'production') {
execSync('npm run build', {
stdio: 'inherit',
});
execSync('npm run storybook:build', {
stdio: 'inherit',
});
}