@remotion/cli 3.2.24 → 3.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/compositions.js +1 -1
- package/dist/config/index.d.ts +3 -1
- package/dist/config/overwrite.d.ts +3 -1
- package/dist/config/overwrite.js +2 -3
- package/dist/get-cli-options.js +3 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -2
- package/dist/initialize-cli.d.ts +1 -0
- package/dist/initialize-cli.js +22 -0
- package/dist/lambda-command.js +0 -2
- package/dist/parse-command-line.d.ts +1 -1
- package/dist/parse-command-line.js +1 -9
- package/dist/preview.js +0 -2
- package/dist/render.js +4 -2
- package/dist/still.js +4 -2
- package/dist/versions.js +1 -1
- package/package.json +7 -7
package/dist/compositions.js
CHANGED
|
@@ -27,7 +27,7 @@ const max = (arr) => {
|
|
|
27
27
|
const listCompositionsCommand = async (remotionRoot) => {
|
|
28
28
|
const file = parse_command_line_1.parsedCli._[1];
|
|
29
29
|
if (!file) {
|
|
30
|
-
log_1.Log.error('The `compositions` command requires you to specify a
|
|
30
|
+
log_1.Log.error('The `compositions` command requires you to specify a entry point. For example');
|
|
31
31
|
log_1.Log.error(' npx remotion compositions src/index.tsx');
|
|
32
32
|
log_1.Log.error('See https://www.remotion.dev/docs/register-root for more information.');
|
|
33
33
|
process.exit(1);
|
package/dist/config/index.d.ts
CHANGED
|
@@ -13,7 +13,9 @@ export declare const ConfigInternals: {
|
|
|
13
13
|
getActualCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => number;
|
|
14
14
|
getPixelFormat: () => "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
15
15
|
getProResProfile: () => "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined;
|
|
16
|
-
getShouldOverwrite: (
|
|
16
|
+
getShouldOverwrite: ({ defaultValue, }: {
|
|
17
|
+
defaultValue: boolean;
|
|
18
|
+
}) => boolean;
|
|
17
19
|
getBrowserExecutable: () => import("@remotion/renderer").BrowserExecutable;
|
|
18
20
|
getCustomFfprobeExecutable: () => import("@remotion/renderer").FfmpegExecutable;
|
|
19
21
|
getScale: () => number;
|
package/dist/config/overwrite.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getShouldOverwrite = exports.setOverwriteOutput = void 0;
|
|
4
|
-
|
|
5
|
-
let shouldOverwrite = renderer_1.RenderInternals.DEFAULT_OVERWRITE;
|
|
4
|
+
let shouldOverwrite = null;
|
|
6
5
|
const setOverwriteOutput = (newOverwrite) => {
|
|
7
6
|
if (typeof newOverwrite !== 'boolean') {
|
|
8
7
|
throw new Error(`overwriteExisting must be a boolean but got ${typeof newOverwrite} (${JSON.stringify(newOverwrite)})`);
|
|
@@ -10,5 +9,5 @@ const setOverwriteOutput = (newOverwrite) => {
|
|
|
10
9
|
shouldOverwrite = newOverwrite;
|
|
11
10
|
};
|
|
12
11
|
exports.setOverwriteOutput = setOverwriteOutput;
|
|
13
|
-
const getShouldOverwrite = () => shouldOverwrite;
|
|
12
|
+
const getShouldOverwrite = ({ defaultValue, }) => shouldOverwrite !== null && shouldOverwrite !== void 0 ? shouldOverwrite : defaultValue;
|
|
14
13
|
exports.getShouldOverwrite = getShouldOverwrite;
|
package/dist/get-cli-options.js
CHANGED
|
@@ -130,7 +130,9 @@ const getCliOptions = async (options) => {
|
|
|
130
130
|
frameRange,
|
|
131
131
|
isLambda: options.isLambda,
|
|
132
132
|
});
|
|
133
|
-
const overwrite = config_1.ConfigInternals.getShouldOverwrite(
|
|
133
|
+
const overwrite = config_1.ConfigInternals.getShouldOverwrite({
|
|
134
|
+
defaultValue: !options.isLambda,
|
|
135
|
+
});
|
|
134
136
|
const crf = getAndValidateCrf(shouldOutputImageSequence, codec);
|
|
135
137
|
const pixelFormat = getAndValidatePixelFormat(codec);
|
|
136
138
|
const imageFormat = getAndValidateImageFormat({
|
package/dist/index.d.ts
CHANGED
|
@@ -100,9 +100,9 @@ export declare const CliInternals: {
|
|
|
100
100
|
publicDir: string | null;
|
|
101
101
|
ffmpegOverride: import("@remotion/renderer").FfmpegOverrideFn;
|
|
102
102
|
}>;
|
|
103
|
-
parseCommandLine: (
|
|
103
|
+
parseCommandLine: () => void;
|
|
104
104
|
loadConfig: (remotionRoot: string) => Promise<string | null>;
|
|
105
|
-
|
|
105
|
+
initializeCli: (remotionRoot: string) => Promise<void>;
|
|
106
106
|
BooleanFlags: string[];
|
|
107
107
|
quietFlagProvided: () => boolean;
|
|
108
108
|
parsedCli: import("./parse-command-line").CommandLineOptions & import("minimist").ParsedArgs;
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ const format_bytes_1 = require("./format-bytes");
|
|
|
26
26
|
const get_cli_options_1 = require("./get-cli-options");
|
|
27
27
|
const get_config_file_name_1 = require("./get-config-file-name");
|
|
28
28
|
const handle_common_errors_1 = require("./handle-common-errors");
|
|
29
|
-
const
|
|
29
|
+
const initialize_cli_1 = require("./initialize-cli");
|
|
30
30
|
const lambda_command_1 = require("./lambda-command");
|
|
31
31
|
const load_config_1 = require("./load-config");
|
|
32
32
|
const log_1 = require("./log");
|
|
@@ -54,6 +54,7 @@ const cli = async () => {
|
|
|
54
54
|
await (0, versions_1.validateVersionsBeforeCommand)(remotionRoot);
|
|
55
55
|
}
|
|
56
56
|
const errorSymbolicationLock = renderer_1.RenderInternals.registerErrorSymbolicationLock();
|
|
57
|
+
await (0, initialize_cli_1.initializeCli)(remotionRoot);
|
|
57
58
|
try {
|
|
58
59
|
if (command === 'compositions') {
|
|
59
60
|
await (0, compositions_1.listCompositionsCommand)(remotionRoot);
|
|
@@ -109,7 +110,7 @@ exports.CliInternals = {
|
|
|
109
110
|
getCliOptions: get_cli_options_1.getCliOptions,
|
|
110
111
|
parseCommandLine: parse_command_line_1.parseCommandLine,
|
|
111
112
|
loadConfig: get_config_file_name_1.loadConfig,
|
|
112
|
-
|
|
113
|
+
initializeCli: initialize_cli_1.initializeCli,
|
|
113
114
|
BooleanFlags: parse_command_line_1.BooleanFlags,
|
|
114
115
|
quietFlagProvided: parse_command_line_1.quietFlagProvided,
|
|
115
116
|
parsedCli: parse_command_line_1.parsedCli,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const initializeCli: (remotionRoot: string) => Promise<void>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initializeCli = void 0;
|
|
4
|
+
const get_config_file_name_1 = require("./get-config-file-name");
|
|
5
|
+
const log_1 = require("./log");
|
|
6
|
+
const parse_command_line_1 = require("./parse-command-line");
|
|
7
|
+
const initializeCli = async (remotionRoot) => {
|
|
8
|
+
const appliedName = await (0, get_config_file_name_1.loadConfig)(remotionRoot);
|
|
9
|
+
(0, parse_command_line_1.parseCommandLine)();
|
|
10
|
+
// Only now Log.verbose is available
|
|
11
|
+
log_1.Log.verbose('Remotion root directory:', remotionRoot);
|
|
12
|
+
if (remotionRoot !== process.cwd()) {
|
|
13
|
+
log_1.Log.warn(`Warning: The root directory of your project is ${remotionRoot}, but you are executing this command from ${process.cwd()}. The recommendation is to execute commands from the root directory.`);
|
|
14
|
+
}
|
|
15
|
+
if (appliedName) {
|
|
16
|
+
log_1.Log.verbose(`Applied configuration from ${appliedName}.`);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
log_1.Log.verbose('No config file loaded.');
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.initializeCli = initializeCli;
|
package/dist/lambda-command.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.lambdaCommand = void 0;
|
|
4
|
-
const initialize_render_cli_1 = require("./initialize-render-cli");
|
|
5
4
|
const log_1 = require("./log");
|
|
6
5
|
const parse_command_line_1 = require("./parse-command-line");
|
|
7
6
|
const get_package_manager_1 = require("./preview-server/get-package-manager");
|
|
@@ -12,7 +11,6 @@ const lambdaCommand = async (remotionRoot) => {
|
|
|
12
11
|
paths: [remotionRoot],
|
|
13
12
|
});
|
|
14
13
|
const { LambdaInternals } = require(path);
|
|
15
|
-
await (0, initialize_render_cli_1.initializeRenderCli)(remotionRoot, 'lambda');
|
|
16
14
|
await LambdaInternals.executeCommand(parse_command_line_1.parsedCli._.slice(1));
|
|
17
15
|
process.exit(0);
|
|
18
16
|
}
|
|
@@ -41,5 +41,5 @@ export declare type CommandLineOptions = {
|
|
|
41
41
|
};
|
|
42
42
|
export declare const BooleanFlags: string[];
|
|
43
43
|
export declare const parsedCli: CommandLineOptions & minimist.ParsedArgs;
|
|
44
|
-
export declare const parseCommandLine: (
|
|
44
|
+
export declare const parseCommandLine: () => void;
|
|
45
45
|
export declare const quietFlagProvided: () => boolean;
|
|
@@ -33,7 +33,7 @@ exports.BooleanFlags = [
|
|
|
33
33
|
exports.parsedCli = (0, minimist_1.default)(process.argv.slice(2), {
|
|
34
34
|
boolean: exports.BooleanFlags,
|
|
35
35
|
});
|
|
36
|
-
const parseCommandLine = (
|
|
36
|
+
const parseCommandLine = () => {
|
|
37
37
|
if (exports.parsedCli['pixel-format']) {
|
|
38
38
|
config_1.Config.Output.setPixelFormat(exports.parsedCli['pixel-format']);
|
|
39
39
|
}
|
|
@@ -81,17 +81,9 @@ const parseCommandLine = (type) => {
|
|
|
81
81
|
config_1.Config.Puppeteer.setTimeoutInMilliseconds(exports.parsedCli.timeout);
|
|
82
82
|
}
|
|
83
83
|
if (exports.parsedCli.frames) {
|
|
84
|
-
if (type === 'still') {
|
|
85
|
-
log_1.Log.error('--frames flag was passed to the `still` command. This flag only works with the `render` command. Did you mean `--frame`? See reference: https://www.remotion.dev/docs/cli/');
|
|
86
|
-
process.exit(1);
|
|
87
|
-
}
|
|
88
84
|
config_1.ConfigInternals.setFrameRangeFromCli(exports.parsedCli.frames);
|
|
89
85
|
}
|
|
90
86
|
if (exports.parsedCli.frame) {
|
|
91
|
-
if (type === 'sequence') {
|
|
92
|
-
log_1.Log.error('--frame flag was passed to the `render` command. This flag only works with the `still` command. Did you mean `--frames`? See reference: https://www.remotion.dev/docs/cli/');
|
|
93
|
-
process.exit(1);
|
|
94
|
-
}
|
|
95
87
|
config_1.ConfigInternals.setStillFrame(Number(exports.parsedCli.frame));
|
|
96
88
|
}
|
|
97
89
|
if (exports.parsedCli.png) {
|
package/dist/preview.js
CHANGED
|
@@ -9,7 +9,6 @@ const path_1 = __importDefault(require("path"));
|
|
|
9
9
|
const config_1 = require("./config");
|
|
10
10
|
const get_env_1 = require("./get-env");
|
|
11
11
|
const get_input_props_1 = require("./get-input-props");
|
|
12
|
-
const initialize_render_cli_1 = require("./initialize-render-cli");
|
|
13
12
|
const log_1 = require("./log");
|
|
14
13
|
const parse_command_line_1 = require("./parse-command-line");
|
|
15
14
|
const start_server_1 = require("./preview-server/start-server");
|
|
@@ -40,7 +39,6 @@ const previewCommand = async (remotionRoot) => {
|
|
|
40
39
|
}
|
|
41
40
|
const { port: desiredPort } = parse_command_line_1.parsedCli;
|
|
42
41
|
const fullPath = path_1.default.join(process.cwd(), file);
|
|
43
|
-
await (0, initialize_render_cli_1.initializeRenderCli)(remotionRoot, 'preview');
|
|
44
42
|
let inputProps = (0, get_input_props_1.getInputProps)((newProps) => {
|
|
45
43
|
waitForLiveEventsListener().then((listener) => {
|
|
46
44
|
inputProps = newProps;
|
package/dist/render.js
CHANGED
|
@@ -15,7 +15,6 @@ const config_1 = require("./config");
|
|
|
15
15
|
const get_cli_options_1 = require("./get-cli-options");
|
|
16
16
|
const get_composition_id_1 = require("./get-composition-id");
|
|
17
17
|
const get_filename_1 = require("./get-filename");
|
|
18
|
-
const initialize_render_cli_1 = require("./initialize-render-cli");
|
|
19
18
|
const log_1 = require("./log");
|
|
20
19
|
const parse_command_line_1 = require("./parse-command-line");
|
|
21
20
|
const progress_bar_1 = require("./progress-bar");
|
|
@@ -34,7 +33,10 @@ const render = async (remotionRoot) => {
|
|
|
34
33
|
? file
|
|
35
34
|
: path_1.default.join(process.cwd(), file);
|
|
36
35
|
const downloadMap = renderer_1.RenderInternals.makeDownloadMap();
|
|
37
|
-
|
|
36
|
+
if (parse_command_line_1.parsedCli.frame) {
|
|
37
|
+
log_1.Log.error('--frame flag was passed to the `render` command. This flag only works with the `still` command. Did you mean `--frames`? See reference: https://www.remotion.dev/docs/cli/');
|
|
38
|
+
process.exit(1);
|
|
39
|
+
}
|
|
38
40
|
log_1.Log.verbose('Asset dirs', downloadMap.assetDir);
|
|
39
41
|
const { codec, proResProfile, concurrency, frameRange, shouldOutputImageSequence, overwrite, inputProps, envVariables, quality, browser, crf, pixelFormat, imageFormat, browserExecutable, ffmpegExecutable, ffprobeExecutable, scale, chromiumOptions, port, numberOfGifLoops, everyNthFrame, puppeteerTimeout, muted, enforceAudioTrack, publicDir, ffmpegOverride, } = await (0, get_cli_options_1.getCliOptions)({
|
|
40
42
|
isLambda: false,
|
package/dist/still.js
CHANGED
|
@@ -11,7 +11,6 @@ const chalk_1 = require("./chalk");
|
|
|
11
11
|
const config_1 = require("./config");
|
|
12
12
|
const get_cli_options_1 = require("./get-cli-options");
|
|
13
13
|
const get_composition_id_1 = require("./get-composition-id");
|
|
14
|
-
const initialize_render_cli_1 = require("./initialize-render-cli");
|
|
15
14
|
const log_1 = require("./log");
|
|
16
15
|
const parse_command_line_1 = require("./parse-command-line");
|
|
17
16
|
const progress_bar_1 = require("./progress-bar");
|
|
@@ -24,7 +23,10 @@ const still = async (remotionRoot) => {
|
|
|
24
23
|
const fullPath = renderer_1.RenderInternals.isServeUrl(file)
|
|
25
24
|
? file
|
|
26
25
|
: path_1.default.join(process.cwd(), file);
|
|
27
|
-
|
|
26
|
+
if (parse_command_line_1.parsedCli.frames) {
|
|
27
|
+
log_1.Log.error('--frames flag was passed to the `still` command. This flag only works with the `render` command. Did you mean `--frame`? See reference: https://www.remotion.dev/docs/cli/');
|
|
28
|
+
process.exit(1);
|
|
29
|
+
}
|
|
28
30
|
const userPassedOutput = (0, user_passed_output_location_1.getUserPassedOutputLocation)();
|
|
29
31
|
if ((userPassedOutput === null || userPassedOutput === void 0 ? void 0 : userPassedOutput.endsWith('.jpeg')) ||
|
|
30
32
|
(userPassedOutput === null || userPassedOutput === void 0 ? void 0 : userPassedOutput.endsWith('.jpg'))) {
|
package/dist/versions.js
CHANGED
|
@@ -68,7 +68,7 @@ const validateVersionsBeforeCommand = async (remotionRoot) => {
|
|
|
68
68
|
};
|
|
69
69
|
exports.validateVersionsBeforeCommand = validateVersionsBeforeCommand;
|
|
70
70
|
const versionsCommand = async (remotionRoot) => {
|
|
71
|
-
(0, parse_command_line_1.parseCommandLine)(
|
|
71
|
+
(0, parse_command_line_1.parseCommandLine)();
|
|
72
72
|
const versions = await getAllVersions(remotionRoot);
|
|
73
73
|
const grouped = groupBy(versions);
|
|
74
74
|
const installedVersions = Object.keys(grouped);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cli",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.27",
|
|
4
4
|
"description": "CLI for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
24
24
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@remotion/bundler": "3.2.
|
|
27
|
-
"@remotion/media-utils": "3.2.
|
|
28
|
-
"@remotion/player": "3.2.
|
|
29
|
-
"@remotion/renderer": "3.2.
|
|
26
|
+
"@remotion/bundler": "3.2.27",
|
|
27
|
+
"@remotion/media-utils": "3.2.27",
|
|
28
|
+
"@remotion/player": "3.2.27",
|
|
29
|
+
"@remotion/renderer": "3.2.27",
|
|
30
30
|
"better-opn": "2.1.1",
|
|
31
31
|
"dotenv": "9.0.2",
|
|
32
32
|
"memfs": "3.4.3",
|
|
33
33
|
"minimist": "1.2.6",
|
|
34
|
-
"remotion": "3.2.
|
|
34
|
+
"remotion": "3.2.27",
|
|
35
35
|
"semver": "7.3.5",
|
|
36
36
|
"source-map": "0.6.1"
|
|
37
37
|
},
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "662c69bcb2fee4d51553b2f8e61635fb4d6688b1"
|
|
75
75
|
}
|