UNPKG

create-nitro-lib

Version:
10 lines (9 loc) 699 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { Box, Text } from 'ink'; import ProjectSetup from './ProjectSetup.js'; export default function App({ projectName, flags }) { if (!projectName) { return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { color: "red", children: "Error: Project name is required" }), _jsx(Text, { children: "Usage: create-nitro-lib <project-name>" })] })); } return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { color: "blue", bold: true, children: ["\uD83D\uDE80 Creating Nitro Module: ", projectName] }), _jsx(ProjectSetup, { projectName: projectName, skipInstall: flags.skipInstall })] })); }