Skip to content

Commit

Permalink
change array to object
Browse files Browse the repository at this point in the history
  • Loading branch information
chakAs3 committed Mar 17, 2024
1 parent 6342e7d commit f775902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/storybook-nuxt-cli/src/add-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export async function updatePackageJsonFile(devDependencies) {

const packageJson = source ? JSON.parse(source) : {}

packageJson.devDependencies ||= []
packageJson.devDependencies ||= {}
if (typeof packageJson.devDependencies === 'object') {
for (const [name, version] of Object.entries(devDependencies))
packageJson.devDependencies[name] = version
Expand Down

0 comments on commit f775902

Please sign in to comment.