Outlook_Addin_LLM/node_modules/@microsoft/teamsapp-cli/cli.js

23 lines
539 B
JavaScript
Raw Normal View History

#!/usr/bin/env node
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
const chalk = require("chalk");
process.on("uncaughtException", (err) => {
if (err.message.includes("async_hooks")) {
console.error(
chalk.redBright(
"TeamsFx CLI requires to use node version higher than 14.x, please update your node version."
)
);
} else {
console.error(err);
}
process.exit(1);
});
process.env.TEAMSFX_CLI_BIN_NAME = "teamsapp";
const cli = require("./lib");
cli.start("teamsapp");