@remotion/cli 4.0.437 → 4.0.439
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-env.js +10 -16
- package/dist/render-queue/queue.js +3 -3
- package/dist/studio.js +1 -0
- package/package.json +14 -14
package/dist/get-env.js
CHANGED
|
@@ -57,27 +57,21 @@ function getProcessEnv() {
|
|
|
57
57
|
return env;
|
|
58
58
|
}
|
|
59
59
|
const watchEnvFile = ({ processEnv, envFile, onUpdate, logLevel, }) => {
|
|
60
|
-
const updateFile = async () => {
|
|
61
|
-
const file = await node_fs_1.default.promises.readFile(envFile, 'utf-8');
|
|
62
|
-
onUpdate({
|
|
63
|
-
...processEnv,
|
|
64
|
-
...dotenv_1.default.parse(file),
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
60
|
const { unwatch } = studio_server_1.StudioServerInternals.installFileWatcher({
|
|
68
61
|
file: envFile,
|
|
69
|
-
onChange: async (
|
|
62
|
+
onChange: async (event) => {
|
|
70
63
|
try {
|
|
71
|
-
if (type === 'deleted') {
|
|
64
|
+
if (event.type === 'deleted') {
|
|
72
65
|
log_1.Log.warn({ indent: false, logLevel }, `${envFile} was deleted.`);
|
|
73
66
|
}
|
|
74
|
-
else
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
67
|
+
else {
|
|
68
|
+
onUpdate({
|
|
69
|
+
...processEnv,
|
|
70
|
+
...dotenv_1.default.parse(event.content),
|
|
71
|
+
});
|
|
72
|
+
log_1.Log.info({ indent: false, logLevel }, chalk_1.chalk.blueBright(event.type === 'created'
|
|
73
|
+
? `Created env file ${envFile}`
|
|
74
|
+
: `Updated env file ${envFile}`));
|
|
81
75
|
}
|
|
82
76
|
}
|
|
83
77
|
catch (err) {
|
|
@@ -164,14 +164,14 @@ const processJobIfPossible = async ({ remotionRoot, entryPoint, logLevel, }) =>
|
|
|
164
164
|
log_1.Log.info({ indent: false, logLevel }, chalk_1.chalk.gray('╰─ Done in ' + (Date.now() - startTime) + 'ms.'));
|
|
165
165
|
const { unwatch } = studio_server_1.StudioServerInternals.installFileWatcher({
|
|
166
166
|
file: node_path_1.default.resolve(remotionRoot, nextJob.outName),
|
|
167
|
-
onChange: (
|
|
168
|
-
if (type === 'created') {
|
|
167
|
+
onChange: (event) => {
|
|
168
|
+
if (event.type === 'created') {
|
|
169
169
|
updateJob(nextJob.id, (job) => ({
|
|
170
170
|
...job,
|
|
171
171
|
deletedOutputLocation: false,
|
|
172
172
|
}));
|
|
173
173
|
}
|
|
174
|
-
if (type === 'deleted') {
|
|
174
|
+
if (event.type === 'deleted') {
|
|
175
175
|
updateJob(nextJob.id, (job) => ({
|
|
176
176
|
...job,
|
|
177
177
|
deletedOutputLocation: true,
|
package/dist/studio.js
CHANGED
|
@@ -31,6 +31,7 @@ const studioCommand = async (remotionRoot, args, logLevel) => {
|
|
|
31
31
|
}
|
|
32
32
|
const desiredPort = (_b = (_a = portOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value) !== null && _a !== void 0 ? _a : config_1.ConfigInternals.getStudioPort()) !== null && _b !== void 0 ? _b : null;
|
|
33
33
|
const fullEntryPath = (0, convert_entry_point_to_serve_url_1.convertEntryPointToServeUrl)(file);
|
|
34
|
+
studio_server_1.StudioServerInternals.setFileWatcherRegistry(studio_server_1.StudioServerInternals.createFileWatcherRegistry());
|
|
34
35
|
let inputProps = (0, get_input_props_1.getInputProps)((newProps) => {
|
|
35
36
|
studio_server_1.StudioServerInternals.waitForLiveEventsListener().then((listener) => {
|
|
36
37
|
inputProps = newProps;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/cli"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/cli",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.439",
|
|
7
7
|
"description": "Control Remotion features using the `npx remotion` command",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
38
38
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@remotion/bundler": "4.0.
|
|
41
|
-
"@remotion/media-utils": "4.0.
|
|
42
|
-
"@remotion/player": "4.0.
|
|
43
|
-
"@remotion/renderer": "4.0.
|
|
44
|
-
"@remotion/studio-shared": "4.0.
|
|
45
|
-
"@remotion/studio-server": "4.0.
|
|
46
|
-
"@remotion/studio": "4.0.
|
|
40
|
+
"@remotion/bundler": "4.0.439",
|
|
41
|
+
"@remotion/media-utils": "4.0.439",
|
|
42
|
+
"@remotion/player": "4.0.439",
|
|
43
|
+
"@remotion/renderer": "4.0.439",
|
|
44
|
+
"@remotion/studio-shared": "4.0.439",
|
|
45
|
+
"@remotion/studio-server": "4.0.439",
|
|
46
|
+
"@remotion/studio": "4.0.439",
|
|
47
47
|
"dotenv": "17.3.1",
|
|
48
48
|
"minimist": "1.2.6",
|
|
49
49
|
"prompts": "2.4.2",
|
|
50
|
-
"remotion": "4.0.
|
|
50
|
+
"remotion": "4.0.439"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": ">=16.8.0",
|
|
@@ -58,14 +58,14 @@
|
|
|
58
58
|
"@types/prompts": "^2.4.1",
|
|
59
59
|
"@types/prettier": "^2.7.2",
|
|
60
60
|
"@types/node": "20.12.14",
|
|
61
|
-
"@remotion/zod-types": "4.0.
|
|
62
|
-
"@remotion/tailwind-v4": "4.0.
|
|
63
|
-
"@remotion/enable-scss": "4.0.
|
|
64
|
-
"@remotion/skia": "4.0.
|
|
61
|
+
"@remotion/zod-types": "4.0.439",
|
|
62
|
+
"@remotion/tailwind-v4": "4.0.439",
|
|
63
|
+
"@remotion/enable-scss": "4.0.439",
|
|
64
|
+
"@remotion/skia": "4.0.439",
|
|
65
65
|
"react": "19.2.3",
|
|
66
66
|
"react-dom": "19.2.3",
|
|
67
67
|
"zod": "4.3.6",
|
|
68
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
68
|
+
"@remotion/eslint-config-internal": "4.0.439",
|
|
69
69
|
"eslint": "9.19.0",
|
|
70
70
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
71
71
|
},
|