microsoft/typespec

Public

mirrored from https://github.com/microsoft/typespecAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
a6b7827fcd2db3bf604d42e235216c8d5b244f13

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

packages/bundler/src/cli.ts

13lines · modecode

1// Use bundler via cli.
2// Todo.
3
4import { resolve } from "path";
5import { bundleTypeSpecLibrary } from "./bundler.js";
6
7const name = process.argv[2];
8const libraryPath = resolve(`../${name}`);
9bundleTypeSpecLibrary(libraryPath, resolve(process.cwd(), "output")).catch((e) => {
10 // eslint-disable-next-line no-console
11 console.error(e);
12 process.exit(1);
13});
14