From 3591f5050f72ee02cd89de79965105e51ba7923b Mon Sep 17 00:00:00 2001 From: jorenbroekema Date: Tue, 28 Nov 2023 12:04:52 +0100 Subject: [PATCH] chore: fix inject-version script --- scripts/inject-version.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/inject-version.js b/scripts/inject-version.js index caa4b7842..fdf84fd6f 100644 --- a/scripts/inject-version.js +++ b/scripts/inject-version.js @@ -1,6 +1,7 @@ import fs from 'node:fs'; -const indexContent = fs.readFileSync('index.js', 'utf-8'); +const filePath = 'lib/StyleDictionary.js'; +const indexContent = fs.readFileSync(filePath, 'utf-8'); const { version } = JSON.parse(fs.readFileSync('package.json', 'utf-8')); const newIndexContent = indexContent.replace('', version); -fs.writeFileSync('index.js', newIndexContent, 'utf-8'); +fs.writeFileSync(filePath, newIndexContent, 'utf-8');