🎥 Make videos programmatically with React
fix: linting and formatting issues
Ayushman7caf6388eaed
diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.tsindex 05b21e448c..ecb6ddd18c 100644--- a/packages/cli/src/index.ts+++ b/packages/cli/src/index.ts@@ -39,8 +39,8 @@ import {} from './progress-bar';import {render} from './render';import {shouldUseNonOverlayingLogger} from './should-use-non-overlaying-logger';-import {still} from './still';import {skillsCommand} from './skills';+import {still} from './still';import {studioCommand} from './studio';import {upgradeCommand} from './upgrade';import {diff --git a/packages/cli/src/print-help.ts b/packages/cli/src/print-help.tsindex 058870a232..7ae8d10acb 100644--- a/packages/cli/src/print-help.ts+++ b/packages/cli/src/print-help.ts@@ -146,13 +146,11 @@ export const printHelp = (logLevel: LogLevel) => {{indent: false, logLevel},chalk.gray('https://www.remotion.dev/docs/cli/add'),);-+Log.info({indent: false, logLevel});Log.info({indent: false, logLevel},- chalk.blue('remotion skills add') +- chalk.gray(' | ') +- chalk.blue('update'),+ chalk.blue('remotion skills add') + chalk.gray(' | ') + chalk.blue('update'),);Log.info({indent: false, logLevel},diff --git a/packages/cli/src/skills.ts b/packages/cli/src/skills.tsindex ae6cc3efdf..d4e5c4d96b 100644--- a/packages/cli/src/skills.ts+++ b/packages/cli/src/skills.ts@@ -10,12 +10,11 @@ export const skillsCommand = async (args: string[]) => {);}- const command = process.platform === 'win32' ? 'npm.cmd' : 'npm';- const fullArgs = ['exec', 'skills', subcommand, 'remotion-dev/skills', ...restArgs];+ const command = process.platform === 'win32' ? 'npx.cmd' : 'npx';+ const fullArgs = ['skills', subcommand, 'remotion-dev/skills', ...restArgs];const child = spawn(command, fullArgs, {stdio: 'inherit',- shell: true,});return new Promise<void>((resolve, reject) => {@@ -23,8 +22,7 @@ export const skillsCommand = async (args: string[]) => {if (code === 0) {resolve();} else {- // Don't log here because npx/skills should have already logged its own errors- process.exit(code ?? 1);+ reject(new Error(`The skills command failed with exit code ${code}`));}});