Add `--arm-types-path` parameter for specifying ARM types.json path

This commit is contained in:
David Wilson 2021-04-05 09:58:55 -07:00
Родитель 8551f4cea2
Коммит 8216572ff8
2 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -14,7 +14,7 @@ import { CompilerHost } from "./types.js";
const args = yargs(process.argv.slice(2))
.scriptName("adl")
.help()
.strict()
// .strict() -- TODO: Turn this back on if we add library-level option registration
.command("compile <path>", "Compile a directory of ADL files.", (cmd) => {
return cmd
.positional("path", {
@ -116,6 +116,7 @@ async function getCompilerOptions(): Promise<CompilerOptions> {
return {
outputPath,
rawParameters: args,
swaggerOutputFile: resolve(args["output-path"], "openapi.json"),
nostdlib: args["nostdlib"],
};

Просмотреть файл

@ -1,4 +1,5 @@
export interface CompilerOptions {
rawParameters?: any;
mainFile?: string;
outputPath?: string;
swaggerOutputFile?: string;