diff --git a/code/lib/cli/package.json b/code/lib/cli/package.json index 58772b7e0cbc..d1fa43cfe8c8 100644 --- a/code/lib/cli/package.json +++ b/code/lib/cli/package.json @@ -72,7 +72,7 @@ "shelljs": "^0.8.5", "strip-json-comments": "^3.0.1", "ts-dedent": "^2.0.0", - "update-notifier": "^5.0.1", + "update-notifier": "^6.0.2", "util-deprecate": "^1.0.2" }, "devDependencies": { @@ -83,11 +83,11 @@ "@types/puppeteer-core": "^2.1.0", "@types/semver": "^7.3.4", "@types/shelljs": "^0.8.7", - "@types/update-notifier": "^5.0.0", + "@types/update-notifier": "^6.0.1", "@types/util-deprecate": "^1.0.0", "strip-json-comments": "^3.1.1", "typescript": "~4.6.3", - "update-notifier": "^5.0.1" + "update-notifier": "^6.0.2" }, "publishConfig": { "access": "public" diff --git a/code/lib/cli/src/initiate.ts b/code/lib/cli/src/initiate.ts index 3983713629ac..30755186ae9b 100644 --- a/code/lib/cli/src/initiate.ts +++ b/code/lib/cli/src/initiate.ts @@ -1,4 +1,4 @@ -import { UpdateNotifier, Package } from 'update-notifier'; +import type { Package } from 'update-notifier'; import chalk from 'chalk'; import prompts from 'prompts'; import { telemetry } from '@storybook/telemetry'; @@ -270,7 +270,8 @@ export async function initiate(options: CommandOptions, pkg: Package): Promise