@remotion/cli 4.0.496 → 4.0.497
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/add.js +7 -3
- package/package.json +14 -14
- package/dist/image-formats.d.ts +0 -4
- package/dist/image-formats.js +0 -36
package/dist/add.js
CHANGED
|
@@ -136,17 +136,21 @@ const addCommand = async ({ remotionRoot, packageManager, packageNames, logLevel
|
|
|
136
136
|
stdio: renderer_1.RenderInternals.isEqualOrBelowLogLevel(logLevel, 'info')
|
|
137
137
|
? 'inherit'
|
|
138
138
|
: 'ignore',
|
|
139
|
+
...studio_server_1.StudioServerInternals.getPackageManagerSpawnOptions(),
|
|
139
140
|
});
|
|
140
|
-
await new Promise((resolve) => {
|
|
141
|
+
await new Promise((resolve, reject) => {
|
|
142
|
+
task.on('error', (err) => {
|
|
143
|
+
reject(err);
|
|
144
|
+
});
|
|
141
145
|
task.on('close', (code) => {
|
|
142
146
|
if (code === 0) {
|
|
143
147
|
resolve();
|
|
144
148
|
}
|
|
145
149
|
else if (renderer_1.RenderInternals.isEqualOrBelowLogLevel(logLevel, 'info')) {
|
|
146
|
-
|
|
150
|
+
reject(new Error(`Failed to install packages, see logs above`));
|
|
147
151
|
}
|
|
148
152
|
else {
|
|
149
|
-
|
|
153
|
+
reject(new Error(`Failed to install packages, run with --log=info to see logs`));
|
|
150
154
|
}
|
|
151
155
|
});
|
|
152
156
|
});
|
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.497",
|
|
7
7
|
"description": "Control Remotion features using the `npx remotion` command",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"bin": {
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
37
37
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@remotion/bundler": "4.0.
|
|
40
|
-
"@remotion/media-utils": "4.0.
|
|
41
|
-
"@remotion/player": "4.0.
|
|
42
|
-
"@remotion/renderer": "4.0.
|
|
43
|
-
"@remotion/studio-shared": "4.0.
|
|
44
|
-
"@remotion/studio-server": "4.0.
|
|
45
|
-
"@remotion/studio": "4.0.
|
|
39
|
+
"@remotion/bundler": "4.0.497",
|
|
40
|
+
"@remotion/media-utils": "4.0.497",
|
|
41
|
+
"@remotion/player": "4.0.497",
|
|
42
|
+
"@remotion/renderer": "4.0.497",
|
|
43
|
+
"@remotion/studio-shared": "4.0.497",
|
|
44
|
+
"@remotion/studio-server": "4.0.497",
|
|
45
|
+
"@remotion/studio": "4.0.497",
|
|
46
46
|
"dotenv": "17.3.1",
|
|
47
47
|
"minimist": "1.2.6",
|
|
48
48
|
"prompts": "2.4.2",
|
|
49
|
-
"remotion": "4.0.
|
|
49
|
+
"remotion": "4.0.497"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": ">=16.8.0",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
"@types/prompts": "2.4.9",
|
|
58
58
|
"@types/prettier": "2.7.2",
|
|
59
59
|
"@types/node": "20.12.14",
|
|
60
|
-
"@remotion/zod-types": "4.0.
|
|
61
|
-
"@remotion/tailwind-v4": "4.0.
|
|
62
|
-
"@remotion/enable-scss": "4.0.
|
|
63
|
-
"@remotion/skia": "4.0.
|
|
60
|
+
"@remotion/zod-types": "4.0.497",
|
|
61
|
+
"@remotion/tailwind-v4": "4.0.497",
|
|
62
|
+
"@remotion/enable-scss": "4.0.497",
|
|
63
|
+
"@remotion/skia": "4.0.497",
|
|
64
64
|
"react": "19.2.3",
|
|
65
65
|
"react-dom": "19.2.3",
|
|
66
66
|
"zod": "4.3.6",
|
|
67
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
67
|
+
"@remotion/eslint-config-internal": "4.0.497",
|
|
68
68
|
"eslint": "9.19.0",
|
|
69
69
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
70
70
|
},
|
package/dist/image-formats.d.ts
DELETED
package/dist/image-formats.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getVideoImageFormat = void 0;
|
|
4
|
-
const client_1 = require("@remotion/renderer/client");
|
|
5
|
-
const pure_1 = require("@remotion/renderer/pure");
|
|
6
|
-
const parsed_cli_1 = require("./parsed-cli");
|
|
7
|
-
const getVideoImageFormat = ({ codec, uiImageFormat, }) => {
|
|
8
|
-
if (uiImageFormat !== null) {
|
|
9
|
-
return uiImageFormat;
|
|
10
|
-
}
|
|
11
|
-
const configured = client_1.BrowserSafeApis.options.videoImageFormatOption.getValue({
|
|
12
|
-
commandLine: parsed_cli_1.parsedCli,
|
|
13
|
-
}).value;
|
|
14
|
-
if (configured !== null) {
|
|
15
|
-
return configured;
|
|
16
|
-
}
|
|
17
|
-
if (pure_1.NoReactAPIs.isAudioCodec(codec)) {
|
|
18
|
-
return 'none';
|
|
19
|
-
}
|
|
20
|
-
if (codec === 'h264' ||
|
|
21
|
-
codec === 'h264-mkv' ||
|
|
22
|
-
codec === 'h264-ts' ||
|
|
23
|
-
codec === 'h265' ||
|
|
24
|
-
codec === 'av1' ||
|
|
25
|
-
codec === 'vp8' ||
|
|
26
|
-
codec === 'vp9' ||
|
|
27
|
-
codec === 'prores' ||
|
|
28
|
-
codec === 'gif') {
|
|
29
|
-
return 'jpeg';
|
|
30
|
-
}
|
|
31
|
-
if (codec === undefined) {
|
|
32
|
-
return 'png';
|
|
33
|
-
}
|
|
34
|
-
throw new Error('Unrecognized codec ' + codec);
|
|
35
|
-
};
|
|
36
|
-
exports.getVideoImageFormat = getVideoImageFormat;
|