Skip to content

🎥 Make videos programmatically with React

hmm

Jonny Burgered1201d23278
diff --git a/packages/lambda/src/cli/help.ts b/packages/lambda/src/cli/help.ts
index d35565033e..f4dc116766 100644
--- a/packages/lambda/src/cli/help.ts
+++ b/packages/lambda/src/cli/help.ts
@@ -1,4 +1,4 @@
-import chalk from 'chalk';
+import {CliInternals} from '@remotion/cli';
import {BINARY_NAME} from '../shared/constants';
import {CLEANUP_COMMAND} from './cleanup';
import {Log} from './log';
@@ -17,16 +17,17 @@ export const printHelp = () => {
Log.info('Available commands:');
Log.info('');
Log.info(`${BINARY_NAME} ${UPLOAD_COMMAND} <index-file.ts>`);
- // TODO: can get chalk from cliinternals
- Log.info(chalk.gray('Upload a Remotion project to S3.'));
+ Log.info(CliInternals.chalk.gray('Upload a Remotion project to S3.'));
Log.info();
Log.info(`${BINARY_NAME} ${RENDER_COMMAND} <s3-url>`);
- Log.info(chalk.gray('Render a video on the cloud.'));
+ Log.info(CliInternals.chalk.gray('Render a video on the cloud.'));
Log.info();
Log.info(`${BINARY_NAME} ${CLEANUP_COMMAND}`);
Log.info(
- chalk.gray('Delete Remotion-related infrastructure from your AWS account.')
+ CliInternals.chalk.gray(
+ 'Delete Remotion-related infrastructure from your AWS account.'
+ )
);
};
diff --git a/packages/lambda/src/functions/helpers/timer.ts b/packages/lambda/src/functions/helpers/timer.ts
index 92ab303bd8..ab3f0ad1b6 100644
--- a/packages/lambda/src/functions/helpers/timer.ts
+++ b/packages/lambda/src/functions/helpers/timer.ts
@@ -1,15 +1,5 @@
-import chalk from 'chalk';
-
const formatTime = (time: number) => {
- if (time < 200) {
- return chalk.green(time + 'ms');
- }
-
- if (time < 500) {
- return chalk.yellow(time + 'ms');
- }
-
- return chalk.red(time + 'ms');
+ return time + 'ms';
};
export const timer = (label: string) => {