From 8ec8f8deba1386cca44cd519b7576184b9f0df6a Mon Sep 17 00:00:00 2001 From: Slawomir Koszewski Date: Mon, 26 Jan 2026 22:35:30 +0100 Subject: [PATCH] Converted setup to ES Module --- bin/{setup-app.cjs => setup-app.js} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename bin/{setup-app.cjs => setup-app.js} (96%) diff --git a/bin/setup-app.cjs b/bin/setup-app.js similarity index 96% rename from bin/setup-app.cjs rename to bin/setup-app.js index b89b0e2..6b699c9 100755 --- a/bin/setup-app.cjs +++ b/bin/setup-app.js @@ -1,8 +1,8 @@ #!/usr/bin/env node -const { execSync, spawnSync } = require("child_process"); -const { writeFileSync } = require("fs"); -const { parseArgs } = require("util"); +import { execSync, spawnSync } from "child_process"; +import { writeFileSync } from "fs"; +import { parseArgs } from "util"; const args = parseArgs({ options: { @@ -107,7 +107,7 @@ if (spObjId) { if (args.values["generate-client-secret"]) { // Generate a new client secret for the application try { - result = spawnSync( + const result = spawnSync( "az", [ "ad",