UNPKG

@sanity/tsdoc

Version:

Generate API reference docs from TypeScript projects and store in a Sanity-friendly JSON format. Render a static frontend, or as React components.

33 lines (32 loc) 1 kB
"use strict"; var cac = require("cac"); function _interopDefaultCompat(e) { return e && typeof e == "object" && "default" in e ? e : { default: e }; } var cac__default = /* @__PURE__ */ _interopDefaultCompat(cac), version = "3.0.5"; const cli = cac__default.default(), cwd = process.cwd(); cli.command("dev").action(async () => { const { devCommand } = await Promise.resolve().then(function() { return require("./_chunks-cjs/index.js"); }); await devCommand({ cwd }); }); cli.command("etl").option("--cwd [cwd]", "Output directory").option("--outDir [outDir]", "Output directory").option("--strict", "Strict mode").option("--tsconfig [tsconfig]", "Path to tsconfig.json").action(async (options) => { const { etlCommand } = await Promise.resolve().then(function() { return require("./_chunks-cjs/index2.js"); }); await etlCommand({ ...options, cwd: options.cwd || cwd }); }); cli.help(); cli.version(version); cli.parse(); //# sourceMappingURL=cli.js.map