Skip to content

🎥 Make videos programmatically with React

truthy

Jonny Burger79e373d958ec
diff --git a/packages/lambda/src/cli/commands/render/progress.ts b/packages/lambda/src/cli/commands/render/progress.ts
index 2f29c13b49..8b454200b4 100644
--- a/packages/lambda/src/cli/commands/render/progress.ts
+++ b/packages/lambda/src/cli/commands/render/progress.ts
@@ -1,9 +1,9 @@
import {CliInternals} from '@remotion/cli';
import {RenderInternals} from '@remotion/renderer';
+import {truthy} from '@remotion/serverless/client';
import {NoReactInternals} from 'remotion/no-react';
import type {RenderProgress} from '../../../defaults';
import type {ReceivedArtifact} from '../../../functions/helpers/overall-render-progress';
-import {truthy} from '../../../shared/truthy';
type LambdaInvokeProgress = {
totalLambdas: number | null;
diff --git a/packages/lambda/src/functions/helpers/get-progress.ts b/packages/lambda/src/functions/helpers/get-progress.ts
index 8fe65faeaf..caadd2782d 100644
--- a/packages/lambda/src/functions/helpers/get-progress.ts
+++ b/packages/lambda/src/functions/helpers/get-progress.ts
@@ -2,12 +2,12 @@ import {RenderInternals} from '@remotion/renderer';
import type {ProviderSpecifics} from '@remotion/serverless';
import {
getExpectedOutName,
+ truthy,
type CustomCredentials,
} from '@remotion/serverless/client';
import {NoReactInternals} from 'remotion/no-react';
import type {CleanupInfo, GenericRenderProgress} from '../../shared/constants';
import {MAX_EPHEMERAL_STORAGE_IN_MB} from '../../shared/constants';
-import {truthy} from '../../shared/truthy';
import {calculateChunkTimes} from './calculate-chunk-times';
import {estimatePriceFromBucket} from './calculate-price-from-bucket';
import {formatCostsInfo} from './format-costs-info';
diff --git a/packages/lambda/src/functions/helpers/lifecycle.ts b/packages/lambda/src/functions/helpers/lifecycle.ts
index 3f3e6d1edc..c5845c6c56 100644
--- a/packages/lambda/src/functions/helpers/lifecycle.ts
+++ b/packages/lambda/src/functions/helpers/lifecycle.ts
@@ -1,8 +1,7 @@
import type {LifecycleRule} from '@aws-sdk/client-s3';
import type {ProviderSpecifics} from '@remotion/serverless';
import type {DeleteAfter} from '@remotion/serverless/client';
-import {expiryDays} from '@remotion/serverless/client';
-import {truthy} from '../../shared/truthy';
+import {expiryDays, truthy} from '@remotion/serverless/client';
const getEnabledLifeCycleRule = ({
key,
diff --git a/packages/lambda/src/functions/renderer.ts b/packages/lambda/src/functions/renderer.ts
index 9a1aa4bb62..3f534f20b3 100644
--- a/packages/lambda/src/functions/renderer.ts
+++ b/packages/lambda/src/functions/renderer.ts
@@ -11,13 +11,13 @@ import type {ServerlessPayload} from '@remotion/serverless/client';
import {
ServerlessRoutines,
decompressInputProps,
+ truthy,
} from '@remotion/serverless/client';
import fs from 'node:fs';
import path from 'node:path';
import {VERSION} from 'remotion/version';
import {RENDERER_PATH_TOKEN} from '../shared/constants';
import {isFlakyError} from '../shared/is-flaky-error';
-import {truthy} from '../shared/truthy';
import {enableNodeIntrospection} from '../shared/why-is-node-running';
import type {ObjectChunkTimingData} from './chunk-optimization/types';
import {
diff --git a/packages/lambda/src/shared/check-credentials.ts b/packages/lambda/src/shared/check-credentials.ts
index 5bbbf3bde1..3ab7465fee 100644
--- a/packages/lambda/src/shared/check-credentials.ts
+++ b/packages/lambda/src/shared/check-credentials.ts
@@ -1,7 +1,7 @@
+import {truthy} from '@remotion/serverless/client';
import {getIsCli} from '../cli/is-cli';
import {DOCS_URL} from './docs-url';
import {isLikelyToHaveAwsProfile} from './is-likely-to-have-aws-profile';
-import {truthy} from './truthy';
const messageForVariable = (variable: string) => {
return [
diff --git a/packages/serverless/src/client.ts b/packages/serverless/src/client.ts
index e66cb3d443..8ca70f978d 100644
--- a/packages/serverless/src/client.ts
+++ b/packages/serverless/src/client.ts
@@ -44,5 +44,6 @@ export {inputPropsKey, resolvedPropsKey} from './input-props-keys';
export {makeBucketName} from './make-bucket-name';
export {RenderMetadata} from './render-metadata';
export {streamToString} from './stream-to-string';
+export {truthy} from './truthy';
export {validateBucketName} from './validate-bucket-name';
export {validateWebhook} from './validate-webhook';
diff --git a/packages/lambda/src/shared/truthy.ts b/packages/serverless/src/truthy.ts
similarity index 100%
rename from packages/lambda/src/shared/truthy.ts
rename to packages/serverless/src/truthy.ts