Skip to content

Commit

Permalink
Merge pull request #1530 from Stormbound-Games/dependabot/npm_and_yar…
Browse files Browse the repository at this point in the history
…n/replace-in-file-8.1.0

Bump replace-in-file from 7.0.2 to 8.1.0
  • Loading branch information
KittySparkles authored Aug 4, 2024
2 parents e24536e + e90c814 commit 6efb6e1
Show file tree
Hide file tree
Showing 3 changed files with 483 additions and 40 deletions.
4 changes: 2 additions & 2 deletions bin/modulify.mjs
Original file line number Diff line number Diff line change
@@ -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 = {
Expand All @@ -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)
Expand Down
Loading

0 comments on commit 6efb6e1

Please sign in to comment.