From e162aa6ed83d52252c97d82174c741bfabe5b9ff Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Fri, 14 Jun 2024 16:30:13 +0200 Subject: [PATCH] require fix --- src/kubeGetRepositories.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kubeGetRepositories.js b/src/kubeGetRepositories.js index ecd027d7..bc459681 100644 --- a/src/kubeGetRepositories.js +++ b/src/kubeGetRepositories.js @@ -17,9 +17,9 @@ export default async function kubeGetRepositories ({ debug = debug === 'true' || debug === true - const fs = require('fs') - const yaml = require('js-yaml') - const glob = require('glob') + const fs = await import('fs') + const yaml = await import('js-yaml') + const glob = await import('glob') const files = glob.sync(`${directory}/**/*.yaml`) const repos = []