From 5af0021c69dbfc7a78dc6978a9185ea121a47db8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aliz=C3=A9=20Debray?= Date: Tue, 5 Nov 2024 15:43:39 +0100 Subject: [PATCH] Update build-tokens.yaml --- .github/workflows/build-tokens.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-tokens.yaml b/.github/workflows/build-tokens.yaml index c0be269e89..b3fc21ef04 100644 --- a/.github/workflows/build-tokens.yaml +++ b/.github/workflows/build-tokens.yaml @@ -46,9 +46,9 @@ jobs: 'theme.scss', 'components.scss', ] - const outputFileNames = readdirSync('dist').flatMap(dirOrFile => { + const outputFileNames = fs.readdirSync('dist').flatMap(dirOrFile => { try { - return readdirSync(`dist/${dirOrFile}`).map(file => `${dirOrFile}/${file}`); + return fs.readdirSync(`dist/${dirOrFile}`).map(file => `${dirOrFile}/${file}`); } catch (_e) { return dirOrFile; }