Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: Use ink in CLI #30202

Draft
wants to merge 130 commits into
base: next
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
bde2134
ink in core and esm in create-storybook
ndelangen Jan 7, 2025
7e4592d
ink in init
ndelangen Jan 7, 2025
9f88950
Merge branch 'next' into norbert/cli-with-ink
ndelangen Jan 7, 2025
59d7c63
fix
ndelangen Jan 7, 2025
6462b7b
keep other package dist bundling unchanged
ndelangen Jan 7, 2025
3a19d00
fix
ndelangen Jan 7, 2025
71df9d9
Merge branch 'next' into norbert/cli-with-ink
ndelangen Jan 7, 2025
b5f7b2e
support ink types
ndelangen Jan 7, 2025
25d7e76
use esm of CLI
ndelangen Jan 7, 2025
760ce6d
fixes for check to support for moduleresolution=bundler
ndelangen Jan 7, 2025
c44aca3
add cjs
ndelangen Jan 7, 2025
321de92
undo shim change in prepare script
ndelangen Jan 7, 2025
9683316
Merge branch 'next' into norbert/cli-with-ink
ndelangen Jan 7, 2025
20844fc
disable parallelism as it's not letting me see the issue, and i canno…
ndelangen Jan 7, 2025
57bc122
rendering with ink embedded in vite
ndelangen Jan 7, 2025
0eec9b0
add `node` condition for chalk
ndelangen Jan 7, 2025
e84572d
fix
ndelangen Jan 7, 2025
0f42062
unit test pass?
ndelangen Jan 8, 2025
b843a68
Discard changes to .circleci/config.yml
ndelangen Jan 8, 2025
199b5bf
fix linting
ndelangen Jan 8, 2025
5da8301
Merge branch 'norbert/cli-with-ink' of https://github.com/storybookjs…
ndelangen Jan 8, 2025
0fccec9
fix linting
ndelangen Jan 8, 2025
fb51e3b
add first demo story of an ink component
ndelangen Jan 8, 2025
1a5fe81
Discard changes to code/lib/cli-storybook/test/default/cli.test.cjs
ndelangen Jan 8, 2025
7440621
cleanup
ndelangen Jan 8, 2025
21c04b7
Merge branch 'next' into norbert/cli-with-ink
ndelangen Jan 9, 2025
9541d3e
cleanup
ndelangen Jan 9, 2025
1e75423
Merge branch 'norbert/cli-with-ink' of https://github.com/storybookjs…
ndelangen Jan 9, 2025
5ff6089
typings
ndelangen Jan 9, 2025
90f12d7
update the target environment so we do not need TLA plugin, which see…
ndelangen Jan 9, 2025
69d64f8
cleanup
ndelangen Jan 9, 2025
a876450
fix types
ndelangen Jan 9, 2025
94843bf
patch away the top-level-away and devtools from ink to fix https://cl…
ndelangen Jan 9, 2025
b79205f
Revert "patch away the top-level-away and devtools from ink to fix ht…
ndelangen Jan 9, 2025
49f2c44
fix dev
ndelangen Jan 9, 2025
35505ec
fix dev actually
ndelangen Jan 9, 2025
f02c1a7
centered
ndelangen Jan 9, 2025
211318f
fix firefox Intl.Segmenter in chromatic
ndelangen Jan 9, 2025
580cf60
try to fix
ndelangen Jan 9, 2025
234c8da
alt solution
ndelangen Jan 9, 2025
6555742
add debug
ndelangen Jan 9, 2025
fe1e4c7
debug
ndelangen Jan 9, 2025
098a52e
Merge changes from POC
ghengeveld Jan 10, 2025
02cffc8
conditional ink stories, do not add when running vitest
ndelangen Jan 10, 2025
c97f554
Merge branch 'norbert/cli-with-ink' of https://github.com/storybookjs…
ndelangen Jan 10, 2025
2cbdd8e
fix windows compilation problem with pathing
ndelangen Jan 10, 2025
e821aae
remove story I added fro debugging purposes
ndelangen Jan 10, 2025
660aa3c
trying to fix the include pattern
ndelangen Jan 10, 2025
18b4f8d
again
ndelangen Jan 10, 2025
82851be
Merge branch 'next' into norbert/cli-with-ink
ndelangen Jan 10, 2025
f6975ff
cleanup
ndelangen Jan 10, 2025
ec64802
Merge branch 'next' into norbert/cli-with-ink
ndelangen Jan 13, 2025
1cdcb1a
split the create-storybook CLI into a modern & legacy part, based on …
ndelangen Jan 13, 2025
8c9d6af
add comments
ndelangen Jan 13, 2025
b5d1593
render the app
ndelangen Jan 13, 2025
6423249
wip
ghengeveld Jan 14, 2025
cfd010a
Merge pull request #30256 from storybookjs/gert/cli-with-ink
ndelangen Jan 14, 2025
b6e2afe
version accurate
ndelangen Jan 14, 2025
b530642
scaffold reducer state
ndelangen Jan 14, 2025
cf905a2
adding more input
ndelangen Jan 14, 2025
4b9f6cf
cleanup
ndelangen Jan 14, 2025
bbdae44
add more steps details
ndelangen Jan 15, 2025
54b0998
add a run step && cleanup
ndelangen Jan 15, 2025
9983643
add node utils via context, so storybook doesn't run into it
ndelangen Jan 15, 2025
d5ca217
crude install
ndelangen Jan 15, 2025
dcd3d1f
add require for resolving to context, use ni for package manager oper…
ndelangen Jan 15, 2025
a59ea66
reduce bloat
ndelangen Jan 16, 2025
af7ec07
fix
ndelangen Jan 16, 2025
75019af
fixes & add place for metrics component
ndelangen Jan 16, 2025
d8fc245
handle steps as a straight line. each step can skip itself in a useEf…
ndelangen Jan 16, 2025
df22449
cleanup
ndelangen Jan 16, 2025
ab86684
I guess we can keep it
ndelangen Jan 16, 2025
9c70158
move Confirm component
ndelangen Jan 16, 2025
195c39f
simplify
ndelangen Jan 16, 2025
8ff6e74
figured out a way to cancel
ndelangen Jan 16, 2025
f58c72d
track errors from procedures
ndelangen Jan 16, 2025
4817715
more error handling in interllation procedure
ndelangen Jan 16, 2025
3fe3307
better error handling
ndelangen Jan 16, 2025
a4c188e
improve error handling (no meaningless error if a meaningful one was …
ndelangen Jan 16, 2025
212b99f
install with versions & improve UI
ndelangen Jan 17, 2025
4bf774d
improve UI
ndelangen Jan 17, 2025
924fb94
uppercase to indicate <enter> will select that
ndelangen Jan 20, 2025
133f948
refactor, to reduce long files
ndelangen Jan 20, 2025
3de4555
move check to context
ndelangen Jan 20, 2025
dde08df
more stories
ndelangen Jan 20, 2025
9dc465b
cleanup
ndelangen Jan 20, 2025
25e2024
cleanup
ndelangen Jan 20, 2025
d41f56d
context changes
ndelangen Jan 20, 2025
1276642
fixes
ndelangen Jan 20, 2025
10bf2e7
fixes
ndelangen Jan 20, 2025
d9f0590
fix
ndelangen Jan 20, 2025
076929d
add story
ndelangen Jan 20, 2025
03c8751
cleanup
ndelangen Jan 20, 2025
b28651c
Add telemetry
ghengeveld Jan 20, 2025
174473c
improve
ndelangen Jan 21, 2025
6443b00
Omit directory for privacy reasons
ghengeveld Jan 21, 2025
2a2f9b0
Rename files
ghengeveld Jan 21, 2025
dbdb3a1
Merge branch 'norbert/cli-with-ink' into gert/init-telemetry
ghengeveld Jan 21, 2025
2ad4e6f
Merge pull request #30313 from storybookjs/gert/init-telemetry
ghengeveld Jan 21, 2025
17eb077
fix
ndelangen Jan 21, 2025
68fd581
fix
ndelangen Jan 21, 2025
d281b9a
improve error handling
ndelangen Jan 21, 2025
3114096
cleanup
ndelangen Jan 21, 2025
23379b3
cleanup
ndelangen Jan 21, 2025
9e3968d
add completion & spinners to procedures && add telemetry as tracked task
ndelangen Jan 21, 2025
5b2bbab
have some fun, I got the user's name
ndelangen Jan 21, 2025
db1e037
improve header
ndelangen Jan 22, 2025
90f0a74
improve error handling of installation
ndelangen Jan 22, 2025
4958640
fixes
ndelangen Jan 22, 2025
89c404c
fix typo
ndelangen Jan 22, 2025
e003420
Merge branch 'next' into norbert/cli-with-ink
ndelangen Jan 22, 2025
8b13cb1
Disable telemetry notification when running create-storybook because …
ghengeveld Jan 22, 2025
7a167e0
Implement checks
ghengeveld Jan 22, 2025
16a7433
Merge branch 'norbert/cli-with-ink' of https://github.com/storybookjs…
ndelangen Jan 22, 2025
958e81e
fix intents
ndelangen Jan 22, 2025
7ea83ed
no default in CLI, but set defaults in the component instead. This wa…
ndelangen Jan 23, 2025
1a6be9c
no default intents in app
ndelangen Jan 23, 2025
3159795
Implement first set of actual checks
ghengeveld Jan 23, 2025
7044963
Merge branch 'norbert/cli-with-ink' of https://github.com/storybookjs…
ndelangen Jan 23, 2025
fb670b9
Merge branch 'next' into norbert/cli-with-ink
ndelangen Jan 23, 2025
e8d1fdf
add crude config generation
ndelangen Jan 24, 2025
8a58dbe
add main config generation
ndelangen Jan 24, 2025
da9991b
improve config generation
ndelangen Jan 24, 2025
1368d0d
improve messaging of configDir check
ndelangen Jan 24, 2025
e9abc33
previewConfig file generation
ndelangen Jan 24, 2025
5661454
Various prerequisite checks
ghengeveld Jan 24, 2025
2f2472c
Merge branch 'norbert/cli-with-ink' of https://github.com/storybookjs…
ndelangen Jan 24, 2025
426013c
Cleanup comments
ghengeveld Jan 24, 2025
f83bd4b
add a map for package names
ndelangen Jan 24, 2025
4302698
Merge branch 'norbert/cli-with-ink' of https://github.com/storybookjs…
ndelangen Jan 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion code/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,16 @@ module.exports = {
},
},
{
files: ['*.js', '*.jsx', '*.json', '*.html', '**/.storybook/*.ts', '**/.storybook/*.tsx'],
files: [
'*.js',
'*.jsx',
'*.json',
'*.html',
'**/.storybook/*.ts',
'**/.storybook/*.tsx',
'**/.storybook/**/*.ts',
'**/.storybook/**/*.tsx',
],
parserOptions: {
project: null,
},
Expand Down
62 changes: 61 additions & 1 deletion code/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import { join } from 'node:path';

import { nodePolyfills } from 'vite-plugin-node-polyfills';
import topLevelAwait from 'vite-plugin-top-level-await';

import type { StorybookConfig } from '../frameworks/react-vite';

const componentsPath = join(__dirname, '../core/src/components');
const managerApiPath = join(__dirname, '../core/src/manager-api');
const imageContextPath = join(__dirname, '..//frameworks/nextjs/src/image-context.ts');

const withInk = process.env.VITEST !== 'true';

const config: StorybookConfig = {
stories: [
'./*.stories.@(js|jsx|ts|tsx)',
Expand Down Expand Up @@ -93,6 +98,14 @@ const config: StorybookConfig = {
directory: '../addons/test/template/stories',
titlePrefix: 'addons/test',
},
...(withInk
? [
{
directory: '../lib/create-storybook/src/ink',
titlePrefix: 'CLI/create-storybook',
},
]
: []),
],
addons: [
'@storybook/addon-themes',
Expand Down Expand Up @@ -139,8 +152,43 @@ const config: StorybookConfig = {
const { mergeConfig } = await import('vite');

return mergeConfig(viteConfig, {
plugins: [
...(withInk
? [
nodePolyfills({
globals: {
process: false,
global: false,
Buffer: false,
},
overrides: {
process: require.resolve(join(__dirname, './mocks/node-process.ts')),
module: require.resolve(join(__dirname, './mocks/node-module.ts')),
util: require.resolve(join(__dirname, './mocks/node-util.ts')),
stream: require.resolve('stream-browserify'),
buffer: require.resolve('buffer/'),
assert: require.resolve('assert/'),
os: require.resolve('os-browserify/browser'),
tty: require.resolve('tty-browserify'),
},
}),
]
: []),
...(configType === 'DEVELOPMENT' ? [topLevelAwait()] : []),
],
resolve: {
alias: {
...(withInk
? {
'cli-cursor': require.resolve(join(__dirname, './mocks/cli-cursor.ts')),
'is-in-ci': require.resolve(join(__dirname, './mocks/is-in-ci.ts')),
'yoga-wasm-web/auto':
'https://cdn.jsdelivr.net/npm/[email protected]/dist/browser.js',
'yoga-wasm-web': 'https://cdn.jsdelivr.net/npm/[email protected]/+esm',
}
: {}),

// storybook related
...(configType === 'DEVELOPMENT'
? {
'@storybook/components': componentsPath,
Expand All @@ -154,12 +202,24 @@ const config: StorybookConfig = {
},
optimizeDeps: {
force: true,
include: ['@storybook/blocks'],
include: [
'@storybook/blocks',
...(withInk
? [
'vite-plugin-node-polyfills/shims/buffer',
'vite-plugin-node-polyfills/shims/global',
'@xterm/xterm',
'ink',
]
: []),
],
},
build: {
// disable sourcemaps in CI to not run out of memory
sourcemap: process.env.CI !== 'true',
target: ['chrome100'],
},

server: {
watch: {
// Something odd happens with tsconfig and nx which causes Storybook to keep reloading, so we ignore them
Expand Down
10 changes: 10 additions & 0 deletions code/.storybook/mocks/cli-cursor.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* This module takes the stdin, but ink doesn't pass it to the methods; that causes the methods to
* assume node:process-stdin, but that breaks, causing the code to fail. I mocked the 2 methods, so
* they do nothing. There is no cursor in storybook.
*/

export default {
show: () => {},
hide: () => {},
};
6 changes: 6 additions & 0 deletions code/.storybook/mocks/is-in-ci.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
* This module is mocked, because it uses something node-internal that's not in our node-polyfills
* In storybook, we don't need to know if we are in a CI environment, because we will never be.
*/

export default false;
7 changes: 7 additions & 0 deletions code/.storybook/mocks/node-module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* This module is mocked, because ink, and a few ink related modules use the named exports, which
* the node-polyfills to not supply
*/

export const builtinModules = [];
export const env = {};
12 changes: 12 additions & 0 deletions code/.storybook/mocks/node-process.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* This module is mocked, because ink, and a few ink related modules use the named exports, which
* the node-polyfills to not supply
*/
import process from 'vite-plugin-node-polyfills/shims/process';

export * from 'vite-plugin-node-polyfills/shims/process';

export default process;

export const cwd = () => '/';
export const env = {};
10 changes: 10 additions & 0 deletions code/.storybook/mocks/node-util.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* This module is mocked, because ink, and a few ink related modules use the named exports, which
* the node-polyfills to not supply
*/

export * from 'util';

export const isDeepStrictEqual = (a: any, b: any) => {
return a === b;
};
1 change: 1 addition & 0 deletions code/.storybook/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default mergeConfig(
'../node_modules/**',
'**/__mockdata__/**',
'../**/__mockdata__/**',
'**/ink/**', // these stories need a lot of node dependencies aliased, which breaks portable stories
'**/Zoom.stories.tsx', // expected to fail in Vitest because of fetching /iframe.html to cause ECONNREFUSED
'**/lib/blocks/src/**', // won't work because of https://github.com/storybookjs/storybook/issues/29783
],
Expand Down
3 changes: 1 addition & 2 deletions code/addons/test/src/postinstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,7 @@ export default async function postInstall(options: PostinstallOptions) {
args: ['playwright', 'install', 'chromium', '--with-deps'],
});

const fileExtension =
allDeps['typescript'] || (await findFile('tsconfig', ['.json'])) ? 'ts' : 'js';
const fileExtension = allDeps.typescript || (await findFile('tsconfig', ['.json'])) ? 'ts' : 'js';

const vitestSetupFile = resolve(options.configDir, `vitest.setup.${fileExtension}`);
if (existsSync(vitestSetupFile)) {
Expand Down
8 changes: 7 additions & 1 deletion code/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@
"recast": "^0.23.5",
"semver": "^7.6.2",
"util": "^0.12.5",
"ws": "^8.2.3"
"ws": "^8.2.3",
"yoga-wasm-web": "^0.3.3"
},
"devDependencies": {
"@aw-web-design/x-default-browser": "1.4.126",
Expand All @@ -302,6 +303,7 @@
"@emotion/styled": "^11.11.0",
"@emotion/use-insertion-effect-with-fallbacks": "^1.0.1",
"@fal-works/esbuild-plugin-global-externals": "^2.1.2",
"@inkjs/ui": "^2.0.0",
"@ndelangen/get-tarball": "^3.0.7",
"@polka/compression": "^1.0.0-next.28",
"@popperjs/core": "^2.6.0",
Expand Down Expand Up @@ -329,6 +331,7 @@
"@types/react-transition-group": "^4",
"@types/semver": "^7.5.8",
"@types/ws": "^8",
"@xterm/xterm": "^5.5.0",
"@yarnpkg/esbuild-plugin-pnp": "^3.0.0-rc.10",
"@yarnpkg/fslib": "2.10.3",
"@yarnpkg/libzip": "2.3.0",
Expand All @@ -355,16 +358,19 @@
"es-toolkit": "^1.22.0",
"esbuild": "^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0",
"esbuild-plugin-alias": "^0.2.1",
"esbuild-plugin-text-replace": "^1.3.0",
"execa": "^8.0.1",
"fd-package-json": "^1.2.0",
"fetch-retry": "^6.0.0",
"figures": "^6.1.0",
"find-cache-dir": "^5.0.0",
"find-up": "^7.0.0",
"flush-promises": "^1.0.2",
"fuse.js": "^3.6.1",
"get-npm-tarball-url": "^2.0.3",
"glob": "^10.0.0",
"globby": "^14.0.1",
"ink": "^5.1.0",
"jiti": "^1.21.6",
"js-yaml": "^4.1.0",
"lazy-universal-dotenv": "^4.0.0",
Expand Down
22 changes: 19 additions & 3 deletions code/core/scripts/prep.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/* eslint-disable local-rules/no-uncategorized-errors */
import { existsSync, mkdirSync, watch } from 'node:fs';
import { existsSync, watch } from 'node:fs';
import { mkdir, rm, writeFile } from 'node:fs/promises';
import { dirname, join } from 'node:path';
import { dirname, join, sep } from 'node:path';

import type { Metafile } from 'esbuild';
import type { Plugin as EsbuildPlugin, Metafile } from 'esbuild';
// eslint-disable-next-line import/no-extraneous-dependencies
import replacePlugin from 'esbuild-plugin-text-replace';

import {
dedent,
Expand Down Expand Up @@ -124,6 +126,20 @@ async function run() {
platform: 'neutral',
mainFields: ['main', 'module', 'node'],
conditions: ['node', 'module', 'import', 'require'],
plugins: [
replacePlugin({
include: sep === '/' ? /node_modules\/ink/ : /node_modules\\ink/,
pattern: [
//
[`process.env['DEV']`, `'false'`],
[`await import('./devtools.js')`, ''],
],
}) as any as EsbuildPlugin,
],
define: {
'process.env.NODE_ENV': '"production"',
'process.env.DEV': '"false"',
},
} satisfies EsbuildContextOptions;

const browserAliases = {
Expand Down
11 changes: 10 additions & 1 deletion code/core/src/cli/bin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ command('dev')
await dev({ ...options, packageJson: pkg }).catch(() => process.exit(1));
});

command('ink')
.option('-n, --name <name>', 'The name (this is a dummy parameter)')
.action(async (options) => {
const { run } = await import('../ink/app');
await run(options);
});

command('build')
.option('-o, --output-dir <dir-name>', 'Directory where to store built files')
.option('-c, --config-dir <dir-name>', 'Directory where to load Storybook configurations from')
Expand All @@ -108,7 +115,9 @@ command('build')
.option('--docs', 'Build a documentation-only site using addon-docs')
.option('--test', 'Build stories optimized for testing purposes.')
.action(async (options) => {
process.env.NODE_ENV = process.env.NODE_ENV || 'production';
const { env } = process;
env.NODE_ENV = env.NODE_ENV || 'production';

logger.setLevel(options.loglevel);
consoleLogger.log(picocolors.bold(`${pkg.name} v${pkg.version}\n`));

Expand Down
3 changes: 2 additions & 1 deletion code/core/src/cli/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ function printError(error: any) {
}

export const dev = async (cliOptions: CLIOptions) => {
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
const { env } = process;
env.NODE_ENV = env.NODE_ENV || 'development';

const packageJson = await findPackage(__dirname);
invariant(packageJson, 'Failed to find the closest package.json file.');
Expand Down
61 changes: 61 additions & 0 deletions code/core/src/cli/ink/app.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
import React from 'react';

import { debounce } from 'es-toolkit';
import { Box, Text, render } from 'ink';

declare global {
// eslint-disable-next-line no-var
var CLI_APP_INSTANCE: ReturnType<typeof render> | undefined;
}

if (globalThis.CLI_APP_INSTANCE) {
globalThis.CLI_APP_INSTANCE.unmount();
}

interface Options {
name?: string[];
}

export async function run(options: Options) {
const state = {
name: options.name || 'stranger',
width: process.stdout.columns || 120,
height: process.stdout.rows || 40,
};

process.stdout.write('\x1Bc');
globalThis.CLI_APP_INSTANCE = render(
<Box>
<Text>
{state.name} - {state.width} x {state.height}
</Text>
</Box>
);

const { rerender, waitUntilExit } = globalThis.CLI_APP_INSTANCE;

const update = debounce(
() => {
state.width = process.stdout.columns || 120;
state.height = process.stdout.rows || 40;

process.stdout.write('\x1Bc');
rerender(
<Box>
<Text>
{state.name} - {state.width} x {state.height}
</Text>
</Box>
);
},
8,
{ edges: ['trailing'] }
);

process.stdout.on('resize', () => {
process.stdout.write('\x1Bc');
update();
});

await waitUntilExit();
}
4 changes: 2 additions & 2 deletions code/core/src/core-server/utils/doTelemetry.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getPrecedingUpgrade, telemetry } from '@storybook/core/telemetry';
import type { CoreConfig, Options } from '@storybook/core/types';

import type Polka from 'polka';
import type { Polka } from 'polka';
import invariant from 'tiny-invariant';

import { sendTelemetryError } from '../withTelemetry';
Expand All @@ -11,7 +11,7 @@ import { summarizeIndex } from './summarizeIndex';
import { versionStatus } from './versionStatus';

export async function doTelemetry(
app: Polka.Polka,
app: Polka,
core: CoreConfig,
initializedStoryIndexGenerator: Promise<StoryIndexGenerator | undefined>,
options: Options
Expand Down
Loading
Loading