UNPKG

@storybook/cli

Version:

Storybook CLI: Develop, document, and test UI components in isolation

24 lines (20 loc) • 1.24 kB
#!/usr/bin/env node import CJS_COMPAT_NODE_URL_cws9dzfqh3p from 'node:url'; import CJS_COMPAT_NODE_PATH_cws9dzfqh3p from 'node:path'; import CJS_COMPAT_NODE_MODULE_cws9dzfqh3p from "node:module"; var __filename = CJS_COMPAT_NODE_URL_cws9dzfqh3p.fileURLToPath(import.meta.url); var __dirname = CJS_COMPAT_NODE_PATH_cws9dzfqh3p.dirname(__filename); var require = CJS_COMPAT_NODE_MODULE_cws9dzfqh3p.createRequire(import.meta.url); // ------------------------------------------------------------ // end of CJS compatibility banner, injected by Storybook's esbuild configuration // ------------------------------------------------------------ // src/bin/index.ts import { MIN_SUPPORTED_NODE_DESCRIPTION, isNodeVersionSupported } from "storybook/internal/common"; import { logger } from "storybook/internal/node-logger"; import { dedent } from "ts-dedent"; var [major, minor, patch] = process.versions.node.split(".").map(Number); isNodeVersionSupported(major, minor, patch) || (logger.error( dedent`To run Storybook, you need Node.js version ${MIN_SUPPORTED_NODE_DESCRIPTION}. You are currently running Node.js ${process.version}. Please upgrade your Node.js installation.` ), process.exit(1)); import("../_node-chunks/run-VYCN2XJY.js");