Converted setup to ES Module
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
const { execSync, spawnSync } = require("child_process");
|
import { execSync, spawnSync } from "child_process";
|
||||||
const { writeFileSync } = require("fs");
|
import { writeFileSync } from "fs";
|
||||||
const { parseArgs } = require("util");
|
import { parseArgs } from "util";
|
||||||
|
|
||||||
const args = parseArgs({
|
const args = parseArgs({
|
||||||
options: {
|
options: {
|
||||||
@@ -107,7 +107,7 @@ if (spObjId) {
|
|||||||
if (args.values["generate-client-secret"]) {
|
if (args.values["generate-client-secret"]) {
|
||||||
// Generate a new client secret for the application
|
// Generate a new client secret for the application
|
||||||
try {
|
try {
|
||||||
result = spawnSync(
|
const result = spawnSync(
|
||||||
"az",
|
"az",
|
||||||
[
|
[
|
||||||
"ad",
|
"ad",
|
||||||
Reference in New Issue
Block a user