🎥 Make videos programmatically with React
make optional again
Jonny Burgere2bda4d6b5f1
diff --git a/packages/bundler/src/bundle.ts b/packages/bundler/src/bundle.tsindex 1fa4388c36..13fc7f4ad9 100644--- a/packages/bundler/src/bundle.ts+++ b/packages/bundler/src/bundle.ts@@ -87,8 +87,7 @@ export type BundleOptions = {onProgress?: (progress: number) => void;ignoreRegisterRootWarning?: boolean;onDirectoryCreated?: (dir: string) => void;- // TODO: Make optional- gitSource: GitSource | null;+ gitSource?: GitSource | null;} & LegacyBundleOptions;type Arguments =@@ -110,8 +109,6 @@ const convertArgumentsIntoOptions = (args: Arguments): BundleOptions => {entryPoint: firstArg,onProgress: args[1],...(args[2] ?? {}),- // TODO: Remove- gitSource: null,};}@@ -275,7 +272,7 @@ export async function bundle(...args: Arguments): Promise<string> {title: 'Remotion Bundle',renderDefaults: undefined,publicFolderExists: baseDir + '/public',- gitSource: actualArgs.gitSource,+ gitSource: actualArgs.gitSource ?? null,});fs.writeFileSync(path.join(outDir, 'index.html'), html);diff --git a/packages/cloudrun/src/api/deploy-site.ts b/packages/cloudrun/src/api/deploy-site.tsindex 28b498deda..6663581655 100644--- a/packages/cloudrun/src/api/deploy-site.ts+++ b/packages/cloudrun/src/api/deploy-site.ts@@ -25,9 +25,8 @@ export type DeploySiteInput = {publicDir?: string | null;rootDir?: string;bypassBucketNameValidation?: boolean;+ gitSource?: GitSource | null;};- // TODO: Make optional and move into options- gitSource: GitSource | null;};export type DeploySiteOutput = Promise<{@@ -45,7 +44,6 @@ const deploySiteRaw = async ({bucketName,siteName,options,- gitSource,}: DeploySiteInput): DeploySiteOutput => {validateBucketName(bucketName, {mustStartWithRemotion: true});@@ -74,7 +72,7 @@ const deploySiteRaw = async ({ignoreRegisterRootWarning: options?.ignoreRegisterRootWarning,onProgress: options?.onBundleProgress ?? (() => undefined),entryPoint,- gitSource,+ gitSource: options?.gitSource,}),]);diff --git a/packages/cloudrun/src/cli/commands/sites/create.ts b/packages/cloudrun/src/cli/commands/sites/create.tsindex 31bf9dd63f..bcb5adcb19 100644--- a/packages/cloudrun/src/cli/commands/sites/create.ts+++ b/packages/cloudrun/src/cli/commands/sites/create.ts@@ -155,8 +155,8 @@ export const sitesCreateSubcommand = async (},enableCaching: ConfigInternals.getWebpackCaching(),webpackOverride: ConfigInternals.getWebpackOverrideFn() ?? ((f) => f),+ gitSource: null,},- gitSource: null,});updateProgress();diff --git a/packages/lambda/src/api/deploy-site.ts b/packages/lambda/src/api/deploy-site.tsindex 450eab3008..e816aafb3c 100644--- a/packages/lambda/src/api/deploy-site.ts+++ b/packages/lambda/src/api/deploy-site.ts@@ -33,8 +33,7 @@ export type DeploySiteInput = {bypassBucketNameValidation?: boolean;};privacy?: 'public' | 'no-acl';- // TODO: Make optional- gitSource: GitSource | null;+ gitSource?: GitSource | null;};export type DeploySiteOutput = Promise<{