Skip to content

Commit

Permalink
Handle empty dependency config (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Mar 28, 2024
1 parent 6051fff commit 4ed93b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/update-dh-packages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ console.log('targetVersion:', {

// Read package.json to get dependency lists
const packageJsonPath = path.join(process.cwd(), 'package.json');
const { dependencies, devDependencies } = JSON.parse(
const { dependencies = {}, devDependencies = {} } = JSON.parse(
String(await fs.readFile(packageJsonPath, 'utf8'))
);

Expand Down

0 comments on commit 4ed93b2

Please sign in to comment.