From f775902252e99cf88ef19f1fac117c8b3994aaae Mon Sep 17 00:00:00 2001 From: chakAs3 Date: Sun, 17 Mar 2024 23:29:16 +0400 Subject: [PATCH] change array to object --- packages/storybook-nuxt-cli/src/add-module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/storybook-nuxt-cli/src/add-module.ts b/packages/storybook-nuxt-cli/src/add-module.ts index 7cad3f5..3b2d310 100644 --- a/packages/storybook-nuxt-cli/src/add-module.ts +++ b/packages/storybook-nuxt-cli/src/add-module.ts @@ -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