UNPKG

mdxlayer

Version:

Transform your MDX content into typed, JSON-powered data with flexible schema validation.

15 lines (12 loc) 358 B
import { builder } from '../builder/index.js'; import { hasCliFlag } from '../utils/args.js'; import { watcher } from '../watcher/index.js'; const run = async () => { const isBuild = hasCliFlag("build"); const isDev = hasCliFlag("dev"); if (isBuild || isDev) { if (isBuild) await builder(); if (isDev) await watcher(); } }; export { run };