@remotion/cli 4.0.109 → 4.0.110
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/get-cli-options.js +1 -1
- package/dist/get-env.d.ts +1 -1
- package/dist/get-env.js +24 -7
- package/dist/index.d.ts +2 -2
- package/dist/studio.js +1 -1
- package/package.json +10 -10
package/dist/get-cli-options.js
CHANGED
|
@@ -91,7 +91,7 @@ const getCliOptions = (options) => {
|
|
|
91
91
|
frameRange,
|
|
92
92
|
shouldOutputImageSequence,
|
|
93
93
|
inputProps: (0, get_input_props_1.getInputProps)(null, options.logLevel),
|
|
94
|
-
envVariables: (0, get_env_1.getEnvironmentVariables)(null, options.logLevel),
|
|
94
|
+
envVariables: (0, get_env_1.getEnvironmentVariables)(null, options.logLevel, false),
|
|
95
95
|
jpegQuality: config_1.ConfigInternals.getJpegQuality(),
|
|
96
96
|
crf,
|
|
97
97
|
pixelFormat,
|
package/dist/get-env.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { LogLevel } from '@remotion/renderer';
|
|
2
|
-
export declare const getEnvironmentVariables: (onUpdate: ((newProps: Record<string, string>) => void) | null, logLevel: LogLevel) => Record<string, string>;
|
|
2
|
+
export declare const getEnvironmentVariables: (onUpdate: ((newProps: Record<string, string>) => void) | null, logLevel: LogLevel, indent: boolean) => Record<string, string>;
|
package/dist/get-env.js
CHANGED
|
@@ -75,7 +75,7 @@ const watchEnvFile = ({ processEnv, envFile, onUpdate, logLevel, }) => {
|
|
|
75
75
|
});
|
|
76
76
|
return unwatch;
|
|
77
77
|
};
|
|
78
|
-
const getEnvForEnvFile = (processEnv, envFile, onUpdate, logLevel) => {
|
|
78
|
+
const getEnvForEnvFile = ({ processEnv, envFile, onUpdate, logLevel, indent, }) => {
|
|
79
79
|
try {
|
|
80
80
|
const envFileData = (0, node_fs_1.readFileSync)(envFile);
|
|
81
81
|
if (onUpdate) {
|
|
@@ -86,6 +86,7 @@ const getEnvForEnvFile = (processEnv, envFile, onUpdate, logLevel) => {
|
|
|
86
86
|
watchEnvFile({ processEnv, envFile, onUpdate, logLevel });
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
+
log_1.Log.verbose({ indent, logLevel }, `Loaded env file from ${envFile}.`);
|
|
89
90
|
return {
|
|
90
91
|
...processEnv,
|
|
91
92
|
...dotenv_1.default.parse(envFileData),
|
|
@@ -97,7 +98,17 @@ const getEnvForEnvFile = (processEnv, envFile, onUpdate, logLevel) => {
|
|
|
97
98
|
process.exit(1);
|
|
98
99
|
}
|
|
99
100
|
};
|
|
100
|
-
const
|
|
101
|
+
const findDotEnvFile = (remotionRoot) => {
|
|
102
|
+
const defaultEnvFile = node_path_1.default.resolve(remotionRoot, '.env');
|
|
103
|
+
const paths = [defaultEnvFile, node_path_1.default.resolve(remotionRoot, '.env.local')];
|
|
104
|
+
for (const p of paths) {
|
|
105
|
+
if (node_fs_1.default.existsSync(p)) {
|
|
106
|
+
return { found: p, defaultEnvFile };
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return { found: null, defaultEnvFile };
|
|
110
|
+
};
|
|
111
|
+
const getEnvironmentVariables = (onUpdate, logLevel, indent) => {
|
|
101
112
|
const processEnv = getProcessEnv();
|
|
102
113
|
if (parse_command_line_1.parsedCli['env-file']) {
|
|
103
114
|
const envFile = node_path_1.default.resolve(process.cwd(), parse_command_line_1.parsedCli['env-file']);
|
|
@@ -107,7 +118,7 @@ const getEnvironmentVariables = (onUpdate, logLevel) => {
|
|
|
107
118
|
log_1.Log.error('Check that your path is correct and try again.');
|
|
108
119
|
process.exit(1);
|
|
109
120
|
}
|
|
110
|
-
return getEnvForEnvFile(processEnv, envFile, onUpdate, logLevel);
|
|
121
|
+
return getEnvForEnvFile({ processEnv, envFile, onUpdate, logLevel, indent });
|
|
111
122
|
}
|
|
112
123
|
const remotionRoot = renderer_1.RenderInternals.findRemotionRoot();
|
|
113
124
|
const configFileSetting = config_1.ConfigInternals.getDotEnvLocation();
|
|
@@ -119,10 +130,10 @@ const getEnvironmentVariables = (onUpdate, logLevel) => {
|
|
|
119
130
|
log_1.Log.error('Check that your path is correct and try again.');
|
|
120
131
|
process.exit(1);
|
|
121
132
|
}
|
|
122
|
-
return getEnvForEnvFile(processEnv, envFile, onUpdate, logLevel);
|
|
133
|
+
return getEnvForEnvFile({ processEnv, envFile, onUpdate, logLevel, indent });
|
|
123
134
|
}
|
|
124
|
-
const defaultEnvFile =
|
|
125
|
-
if (!
|
|
135
|
+
const { defaultEnvFile, found } = findDotEnvFile(remotionRoot);
|
|
136
|
+
if (!found) {
|
|
126
137
|
if (onUpdate) {
|
|
127
138
|
if (typeof node_fs_1.default.watchFile === 'undefined') {
|
|
128
139
|
log_1.Log.warn({ indent: false, logLevel }, 'Unsupported Bun feature: .env file will not hot reload.');
|
|
@@ -138,6 +149,12 @@ const getEnvironmentVariables = (onUpdate, logLevel) => {
|
|
|
138
149
|
}
|
|
139
150
|
return processEnv;
|
|
140
151
|
}
|
|
141
|
-
return getEnvForEnvFile(
|
|
152
|
+
return getEnvForEnvFile({
|
|
153
|
+
processEnv,
|
|
154
|
+
envFile: found,
|
|
155
|
+
onUpdate,
|
|
156
|
+
logLevel,
|
|
157
|
+
indent,
|
|
158
|
+
});
|
|
142
159
|
};
|
|
143
160
|
exports.getEnvironmentVariables = getEnvironmentVariables;
|
package/dist/index.d.ts
CHANGED
|
@@ -124,7 +124,7 @@ export declare const CliInternals: {
|
|
|
124
124
|
parsedCli: {
|
|
125
125
|
"browser-executable": import("@remotion/renderer").BrowserExecutable;
|
|
126
126
|
"pixel-format": "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
127
|
-
"image-format": "png" | "jpeg" | "
|
|
127
|
+
"image-format": "png" | "jpeg" | "none" | "pdf" | "webp";
|
|
128
128
|
"prores-profile": "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy";
|
|
129
129
|
"x264-preset": "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
|
|
130
130
|
"bundle-cache": string;
|
|
@@ -194,7 +194,7 @@ export declare const CliInternals: {
|
|
|
194
194
|
downloadName: string | null;
|
|
195
195
|
outName: string | null;
|
|
196
196
|
configImageFormat: "png" | "jpeg" | "pdf" | "webp" | null;
|
|
197
|
-
cliFlag: "png" | "jpeg" | "
|
|
197
|
+
cliFlag: "png" | "jpeg" | "none" | "pdf" | "webp" | null;
|
|
198
198
|
isLambda: boolean;
|
|
199
199
|
fromUi: "png" | "jpeg" | "pdf" | "webp" | null;
|
|
200
200
|
}) => {
|
package/dist/studio.js
CHANGED
|
@@ -52,7 +52,7 @@ const studioCommand = async (remotionRoot, args, logLevel) => {
|
|
|
52
52
|
newEnvVariables,
|
|
53
53
|
});
|
|
54
54
|
});
|
|
55
|
-
}, logLevel);
|
|
55
|
+
}, logLevel, false);
|
|
56
56
|
const maxTimelineTracks = config_1.ConfigInternals.getMaxTimelineTracks();
|
|
57
57
|
const keyboardShortcutsEnabled = config_1.ConfigInternals.getKeyboardShortcutsEnabled();
|
|
58
58
|
const gitSource = (0, get_github_repository_1.getGitSource)(remotionRoot);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.110",
|
|
4
4
|
"description": "CLI for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"dotenv": "9.0.2",
|
|
32
32
|
"minimist": "1.2.6",
|
|
33
33
|
"prompts": "2.4.2",
|
|
34
|
-
"@remotion/bundler": "4.0.
|
|
35
|
-
"@remotion/
|
|
36
|
-
"@remotion/renderer": "4.0.
|
|
37
|
-
"@remotion/
|
|
38
|
-
"@remotion/studio-server": "4.0.
|
|
39
|
-
"remotion": "4.0.
|
|
40
|
-
"@remotion/studio": "4.0.
|
|
34
|
+
"@remotion/bundler": "4.0.110",
|
|
35
|
+
"@remotion/player": "4.0.110",
|
|
36
|
+
"@remotion/renderer": "4.0.110",
|
|
37
|
+
"@remotion/media-utils": "4.0.110",
|
|
38
|
+
"@remotion/studio-server": "4.0.110",
|
|
39
|
+
"remotion": "4.0.110",
|
|
40
|
+
"@remotion/studio": "4.0.110"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": ">=16.8.0",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"react-dom": "18.2.0",
|
|
63
63
|
"vitest": "0.31.1",
|
|
64
64
|
"zod": "^3.22.3",
|
|
65
|
-
"@remotion/
|
|
66
|
-
"@remotion/
|
|
65
|
+
"@remotion/tailwind": "4.0.110",
|
|
66
|
+
"@remotion/zod-types": "4.0.110"
|
|
67
67
|
},
|
|
68
68
|
"keywords": [
|
|
69
69
|
"remotion",
|