From ee395d2d7413f66c2aedb4956897324e319d7f39 Mon Sep 17 00:00:00 2001 From: John Craft Date: Wed, 24 Jan 2024 18:26:25 -0800 Subject: [PATCH] Use execSync --- .github/workflows/test-migration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-migration.yml b/.github/workflows/test-migration.yml index 9b8a05b..7628075 100644 --- a/.github/workflows/test-migration.yml +++ b/.github/workflows/test-migration.yml @@ -73,8 +73,8 @@ jobs: const { MIGRATION_OUTPUT, EXIT_CODE } = process.env if (!MIGRATION_OUTPUT) return - const exec = require('child_process').execSync; - exec('npm install ansi_up'); + const { execSync } = require('child_process'); + execSync('npm install ansi_up'); const ansiUp = (await import('ansi_up')).default; const ansi_up = new ansiUp(); const html = ansi_up.ansi_to_html(MIGRATION_OUTPUT);