@microsoft/teamsapp-cli
Version:
Teams Toolkit CLI is a text-based command line interface that can help scaffold, validate, and deploy applications for Microsoft Teams from the terminal or a CI/CD process.
21 lines (18 loc) • 564 B
JavaScript
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
const { exec } = require("child_process");
const fs = require("fs-extra");
const path = require("path");
const { promisify } = require("util");
(async () => {
const execAsync = promisify(exec);
const { stdout: globalPath } = await execAsync("npm config get prefix");
const teamsfxPath = path.join(globalPath.trim(), "teamsfx.ps1");
if (await fs.pathExists(teamsfxPath)) {
try {
await fs.unlink(teamsfxPath);
} catch (e) {
// console.error(e);
}
}
})();