From e90c814aa9b221b2f5335c9c3ddff79649f887be Mon Sep 17 00:00:00 2001 From: Kitty Sparkles <53430374+KittySparkles@users.noreply.github.com> Date: Sun, 4 Aug 2024 10:20:05 +0200 Subject: [PATCH] Adjust usage of replace-in-file --- bin/modulify.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/modulify.mjs b/bin/modulify.mjs index e74274e4d..c98d5e2ec 100644 --- a/bin/modulify.mjs +++ b/bin/modulify.mjs @@ -1,6 +1,6 @@ import fs from 'fs' import path from 'path' -import replace from 'replace-in-file' +import { replaceInFileSync } from 'replace-in-file' const pkg = JSON.parse(fs.readFileSync(path.resolve('./package.json'), 'utf8')) const options = { @@ -11,7 +11,7 @@ const options = { if (pkg.type !== 'module') { try { - const results = replace.sync(options) + const results = replaceInFileSync(options) console.log('Replacement results:', results) } catch (error) { console.error('Error occurred:', error)