storybook/lib/cli/bin/index.js

10 lines
305 B
JavaScript
Executable File

#!/usr/bin/env node
const path = require('path');
require('@babel/register')({
// see https://github.com/babel/babel/issues/7701#issuecomment-389720069
cwd: path.resolve(__dirname, '..'),
only: [new RegExp(`(@storybook|lib)${path.sep === '\\' ? '\\\\' : path.sep}cli`)],
});
require('./generate');