Add `--arm-types-path` parameter for specifying ARM types.json path
This commit is contained in:
Родитель
8551f4cea2
Коммит
8216572ff8
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче