🎥 Make videos programmatically with React
remove privateLicenseKeyOption for now
JonnyBurger52fdbe4111dd
diff --git a/packages/cli/src/config/index.ts b/packages/cli/src/config/index.tsindex 790dd9b4ca..f993a0048d 100644--- a/packages/cli/src/config/index.ts+++ b/packages/cli/src/config/index.ts@@ -133,7 +133,6 @@ const {imageSequencePatternOption,darkModeOption,publicLicenseKeyOption,- privateLicenseKeyOption,} = BrowserSafeApis.options;declare global {@@ -730,7 +729,6 @@ export const Config: FlatConfig = {setHardwareAcceleration: hardwareAccelerationOption.setConfig,setEnableCrossSiteIsolation: enableCrossSiteIsolationOption.setConfig,setPublicLicenseKey: publicLicenseKeyOption.setConfig,- setPrivateLicenseKey: privateLicenseKeyOption.setConfig,};export const ConfigInternals = {diff --git a/packages/cli/src/parse-command-line.ts b/packages/cli/src/parse-command-line.tsindex 3a884ea688..25ac4b7105 100644--- a/packages/cli/src/parse-command-line.ts+++ b/packages/cli/src/parse-command-line.ts@@ -35,7 +35,6 @@ const {audioLatencyHintOption,darkModeOption,publicLicenseKeyOption,- privateLicenseKeyOption,} = BrowserSafeApis.options;export type CommandLineOptions = {@@ -119,7 +118,6 @@ export type CommandLineOptions = {'image-sequence-pattern': string;'license-key': string;[publicLicenseKeyOption.cliFlag]: string;- [privateLicenseKeyOption.cliFlag]: string;};export const parseCommandLine = () => {@@ -198,10 +196,6 @@ export const parseCommandLine = () => {Config.setPublicLicenseKey(parsedCli['license-key']);}- if (parsedCli['private-license-key']) {- Config.setPrivateLicenseKey(parsedCli['private-license-key']);- }-if (parsedCli['public-license-key']) {Config.setPublicLicenseKey(parsedCli['public-license-key']);}diff --git a/packages/renderer/src/options/index.tsx b/packages/renderer/src/options/index.tsxindex 8ab8c8e9f4..f2fcf64807 100644--- a/packages/renderer/src/options/index.tsx+++ b/packages/renderer/src/options/index.tsx@@ -34,7 +34,6 @@ import {onBrowserDownloadOption} from './on-browser-download';import type {AnyRemotionOption} from './option';import {overwriteOption} from './overwrite';import {preferLosslessAudioOption} from './prefer-lossless';-import {privateLicenseKeyOption} from './private-license-key';import {publicDirOption} from './public-dir';import {publicLicenseKeyOption} from './public-license-key';import {publicPathOption} from './public-path';@@ -98,7 +97,6 @@ export const allOptions = {mediaCacheSizeInBytesOption,darkModeOption,publicLicenseKeyOption,- privateLicenseKeyOption,};export type AvailableOptions = keyof typeof allOptions;diff --git a/packages/renderer/src/options/private-license-key.tsx b/packages/renderer/src/options/private-license-key.tsxdeleted file mode 100644index 1c51f08973..0000000000--- a/packages/renderer/src/options/private-license-key.tsx+++ /dev/null@@ -1,43 +0,0 @@-import type {AnyRemotionOption} from './option';--const cliFlag = 'private-license-key' as const;--let currentPrivateLicenseKey: string | null = null;--export const privateLicenseKeyOption = {- name: 'Private License Key',- cliFlag,- description: () => (- <>- The private license key for your company license, obtained from the- "Usage" tab on <a href="https://remotion.pro/dashboard">remotion.pro</a>.- If you are eligible for the free license, pass "free-license".- </>- ),- ssrName: 'privateLicenseKey' as const,- docLink: 'https://www.remotion.dev/docs/licensing',- getValue: ({commandLine}) => {- if (commandLine[cliFlag] !== undefined) {- return {- source: 'cli',- value: commandLine[cliFlag] as string | null,- };- }-- if (currentPrivateLicenseKey !== null) {- return {- source: 'config',- value: currentPrivateLicenseKey,- };- }-- return {- source: 'default',- value: null,- };- },- setConfig: (value: string | null) => {- currentPrivateLicenseKey = value;- },- type: null as string | null,-} satisfies AnyRemotionOption<string | null>;