Skip to content

Commit

Permalink
update automatesymbolicationcommand.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Edney committed Jul 12, 2023
1 parent f02472d commit a877f9d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default async function run (projectRoot: string, urls: OnPremiseUrls): Pr
}, { onCancel })

if (writeToPackageJson) {
writeToPackageJson(path.join(projectRoot, 'package.json'))
await writeToPackageJson(path.join(projectRoot, 'package.json'))
}
}

Expand Down Expand Up @@ -141,7 +141,7 @@ async function installJavaScriptPackage (projectRoot: string): Promise<void> {
logger.success('@bugsnag/source-maps dependency is installed')
}

async function writeToPackageJson (packageJsonPath: string): Promise<void> {
async function writeToPackageJson (packageJsonPath: string): Promise<void> {
fs.readFile(packageJsonPath, 'utf8', (err, data) => {
if (err) {
console.error(`Error reading package.json: ${err}`)
Expand Down

0 comments on commit a877f9d

Please sign in to comment.