nezuhub/simple / node_modules /@remotion /cli /dist /parse-command-line.js
nezuhub's picture
download
raw
1.04 kB
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseCommandLine = void 0;
const client_1 = require("@remotion/renderer/client");
const config_1 = require("./config");
const parsed_cli_1 = require("./parsed-cli");
const { licenseKeyOption } = client_1.BrowserSafeApis.options;
const parseCommandLine = () => {
if (parsed_cli_1.parsedCli['experimental-rspack'] !== undefined) {
throw new Error('The --experimental-rspack flag has been removed. Use --rspack from now on.');
}
if (parsed_cli_1.parsedCli.png) {
throw new Error('The --png flag has been removed. Use --sequence --image-format=png from now on.');
}
const { value: licenseKey, source } = licenseKeyOption.getValue({
commandLine: parsed_cli_1.parsedCli,
});
if (source === 'cli' && (licenseKey === null || licenseKey === void 0 ? void 0 : licenseKey.startsWith('rm_pub_'))) {
config_1.Config.setPublicLicenseKey(licenseKey);
}
};
exports.parseCommandLine = parseCommandLine;

Xet Storage Details

Size:
1.04 kB
·
Xet hash:
e1a2aab2bbb8bd344bd9f617174e8da9826d273d8aad761f78cfb1fc90b812eb

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.