@pnp/cli-microsoft365
Version:
Manage Microsoft 365 and SharePoint Framework projects on any platform
18 lines • 807 B
JavaScript
import { cli } from './cli/cli.js';
import { app } from './utils/app.js';
await (async () => {
// required to make console.log() in combination with piped output synchronous
// on Windows/in PowerShell so that the output is not trimmed by calling
// process.exit() after executing the command, while the output is still
// being processed; https://github.com/pnp/cli-microsoft365/issues/1266
if (process.stdout._handle) {
process.stdout._handle.setBlocking(true);
}
if (!process.env.CLIMICROSOFT365_NOUPDATE) {
const updateNotifier = await import('update-notifier');
updateNotifier.default({ pkg: app.packageJson() }).notify({ defer: false });
}
await cli.execute(process.argv.slice(2));
})();
//# sourceMappingURL=index.js.map