@remotion/cli 4.0.226 → 4.0.227
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-github-repository.js +1 -1
- package/dist/get-input-props.js +2 -2
- package/dist/hyperlinks/is-supported.js +0 -1
- package/dist/index.d.ts +4 -4
- package/dist/log.d.ts +4 -4
- package/dist/log.js +0 -1
- package/dist/parse-command-line.d.ts +3 -3
- package/dist/versions.js +1 -1
- package/eslint.config.mjs +43 -0
- package/package.json +20 -16
- package/remotiond-cli.js +11 -0
package/dist/get-input-props.js
CHANGED
|
@@ -23,7 +23,7 @@ const getInputProps = (onUpdate, logLevel) => {
|
|
|
23
23
|
onUpdate(JSON.parse(node_fs_1.default.readFileSync(jsonFile, 'utf-8')));
|
|
24
24
|
log_1.Log.info({ indent: false, logLevel }, `Updated input props from ${jsonFile}.`);
|
|
25
25
|
}
|
|
26
|
-
catch (
|
|
26
|
+
catch (_a) {
|
|
27
27
|
log_1.Log.error({ indent: false, logLevel }, `${jsonFile} contains invalid JSON. Did not apply new input props.`);
|
|
28
28
|
}
|
|
29
29
|
});
|
|
@@ -32,7 +32,7 @@ const getInputProps = (onUpdate, logLevel) => {
|
|
|
32
32
|
}
|
|
33
33
|
return JSON.parse(parsed_cli_1.parsedCli.props);
|
|
34
34
|
}
|
|
35
|
-
catch (
|
|
35
|
+
catch (_a) {
|
|
36
36
|
log_1.Log.error({ indent: false, logLevel }, 'You passed --props but it was neither valid JSON nor a file path to a valid JSON file. Provided value: ' +
|
|
37
37
|
parsed_cli_1.parsedCli.props);
|
|
38
38
|
log_1.Log.info({ indent: false, logLevel }, 'Got the following value:', parsed_cli_1.parsedCli.props);
|
|
@@ -55,7 +55,6 @@ function supportsHyperlink() {
|
|
|
55
55
|
case 'WezTerm':
|
|
56
56
|
return version.major >= 20200620 ? 'Click' : false;
|
|
57
57
|
case 'vscode':
|
|
58
|
-
// eslint-disable-next-line no-mixed-operators
|
|
59
58
|
return version.major > 1 ||
|
|
60
59
|
(version.major === 1 && version.minor >= 72)
|
|
61
60
|
? process.platform === 'darwin'
|
package/dist/index.d.ts
CHANGED
|
@@ -60,12 +60,12 @@ export declare const CliInternals: {
|
|
|
60
60
|
};
|
|
61
61
|
makeProgressBar: (percentage: number, noColor: boolean) => string;
|
|
62
62
|
Log: {
|
|
63
|
-
verbose: (options: import("@remotion/renderer
|
|
63
|
+
verbose: (options: import("@remotion/renderer").LogOptions & {
|
|
64
64
|
tag?: string;
|
|
65
65
|
}, ...args: Parameters<typeof console.log>) => void;
|
|
66
|
-
info: (options: import("@remotion/renderer
|
|
67
|
-
warn: (options: import("@remotion/renderer
|
|
68
|
-
error: (options: import("@remotion/renderer
|
|
66
|
+
info: (options: import("@remotion/renderer").LogOptions, ...args: Parameters<typeof console.log>) => void;
|
|
67
|
+
warn: (options: import("@remotion/renderer").LogOptions, ...args: Parameters<typeof console.log>) => void;
|
|
68
|
+
error: (options: import("@remotion/renderer").LogOptions & {
|
|
69
69
|
tag?: string;
|
|
70
70
|
}, ...args: Parameters<typeof console.log>) => void;
|
|
71
71
|
};
|
package/dist/log.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const Log: {
|
|
2
|
-
verbose: (options: import("@remotion/renderer
|
|
2
|
+
verbose: (options: import("@remotion/renderer").LogOptions & {
|
|
3
3
|
tag?: string;
|
|
4
4
|
}, ...args: Parameters<typeof console.log>) => void;
|
|
5
|
-
info: (options: import("@remotion/renderer
|
|
6
|
-
warn: (options: import("@remotion/renderer
|
|
7
|
-
error: (options: import("@remotion/renderer
|
|
5
|
+
info: (options: import("@remotion/renderer").LogOptions, ...args: Parameters<typeof console.log>) => void;
|
|
6
|
+
warn: (options: import("@remotion/renderer").LogOptions, ...args: Parameters<typeof console.log>) => void;
|
|
7
|
+
error: (options: import("@remotion/renderer").LogOptions & {
|
|
8
8
|
tag?: string;
|
|
9
9
|
}, ...args: Parameters<typeof console.log>) => void;
|
|
10
10
|
};
|
package/dist/log.js
CHANGED
|
@@ -25,7 +25,7 @@ declare const beepOnFinishOption: {
|
|
|
25
25
|
commandLine: Record<string, unknown>;
|
|
26
26
|
}) => {
|
|
27
27
|
source: string;
|
|
28
|
-
value: import("@remotion/renderer
|
|
28
|
+
value: import("@remotion/renderer").ColorSpace;
|
|
29
29
|
};
|
|
30
30
|
setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
|
|
31
31
|
}, offthreadVideoCacheSizeInBytesOption: {
|
|
@@ -151,13 +151,13 @@ declare const beepOnFinishOption: {
|
|
|
151
151
|
getValue: ({ commandLine }: {
|
|
152
152
|
commandLine: Record<string, unknown>;
|
|
153
153
|
}) => {
|
|
154
|
-
value: import("@remotion/renderer
|
|
154
|
+
value: import("@remotion/renderer").X264Preset;
|
|
155
155
|
source: string;
|
|
156
156
|
} | {
|
|
157
157
|
value: null;
|
|
158
158
|
source: string;
|
|
159
159
|
};
|
|
160
|
-
setConfig: (profile: import("@remotion/renderer
|
|
160
|
+
setConfig: (profile: import("@remotion/renderer").X264Preset | null) => void;
|
|
161
161
|
}, enforceAudioOption: {
|
|
162
162
|
name: string;
|
|
163
163
|
cliFlag: "enforce-audio-track";
|
package/dist/versions.js
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {remotionFlatConfig} from '@remotion/eslint-config-internal';
|
|
2
|
+
|
|
3
|
+
const config = remotionFlatConfig({react: true});
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
...config,
|
|
7
|
+
rules: {
|
|
8
|
+
...config.rules,
|
|
9
|
+
'no-console': 'error',
|
|
10
|
+
'no-negated-condition': 'off',
|
|
11
|
+
'no-restricted-imports': [
|
|
12
|
+
'error',
|
|
13
|
+
{
|
|
14
|
+
patterns: [
|
|
15
|
+
'@remotion/*/src/*',
|
|
16
|
+
'@remotion/*/src',
|
|
17
|
+
'remotion/src/*',
|
|
18
|
+
'@remotion/*/dist/*',
|
|
19
|
+
'@remotion/*/dist',
|
|
20
|
+
'remotion/dist/*',
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
'@typescript-eslint/no-use-before-define': 'off',
|
|
25
|
+
'@typescript-eslint/no-restricted-imports': [
|
|
26
|
+
'error',
|
|
27
|
+
{
|
|
28
|
+
paths: [
|
|
29
|
+
{
|
|
30
|
+
name: 'zod',
|
|
31
|
+
message: 'Can only import zod as a type',
|
|
32
|
+
allowTypeImports: true,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: '@remotion/zod-types',
|
|
36
|
+
message: 'Can only import @remotion/zod-types as a type',
|
|
37
|
+
allowTypeImports: true,
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
};
|
package/package.json
CHANGED
|
@@ -3,13 +3,14 @@
|
|
|
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.227",
|
|
7
7
|
"description": "Control Remotion features using the `npx remotion` command",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
10
10
|
"bin": {
|
|
11
11
|
"remotion": "remotion-cli.js",
|
|
12
|
-
"remotionb": "remotionb-cli.js"
|
|
12
|
+
"remotionb": "remotionb-cli.js",
|
|
13
|
+
"remotiond": "remotiond-cli.js"
|
|
13
14
|
},
|
|
14
15
|
"bugs": {
|
|
15
16
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
@@ -32,14 +33,14 @@
|
|
|
32
33
|
"dotenv": "9.0.2",
|
|
33
34
|
"minimist": "1.2.6",
|
|
34
35
|
"prompts": "2.4.2",
|
|
35
|
-
"@remotion/
|
|
36
|
-
"@remotion/
|
|
37
|
-
"@remotion/player": "4.0.
|
|
38
|
-
"@remotion/renderer": "4.0.
|
|
39
|
-
"@remotion/studio-
|
|
40
|
-
"@remotion/studio": "4.0.
|
|
41
|
-
"remotion": "4.0.
|
|
42
|
-
"@remotion/studio-
|
|
36
|
+
"@remotion/bundler": "4.0.227",
|
|
37
|
+
"@remotion/media-utils": "4.0.227",
|
|
38
|
+
"@remotion/player": "4.0.227",
|
|
39
|
+
"@remotion/renderer": "4.0.227",
|
|
40
|
+
"@remotion/studio-shared": "4.0.227",
|
|
41
|
+
"@remotion/studio": "4.0.227",
|
|
42
|
+
"remotion": "4.0.227",
|
|
43
|
+
"@remotion/studio-server": "4.0.227"
|
|
43
44
|
},
|
|
44
45
|
"peerDependencies": {
|
|
45
46
|
"react": ">=16.8.0",
|
|
@@ -52,10 +53,12 @@
|
|
|
52
53
|
"react": "18.3.1",
|
|
53
54
|
"react-dom": "18.3.1",
|
|
54
55
|
"zod": "3.22.3",
|
|
55
|
-
"
|
|
56
|
-
"@remotion/
|
|
57
|
-
"@remotion/tailwind": "4.0.
|
|
58
|
-
"@remotion/
|
|
56
|
+
"eslint": "9.14.0",
|
|
57
|
+
"@remotion/zod-types": "4.0.227",
|
|
58
|
+
"@remotion/tailwind": "4.0.227",
|
|
59
|
+
"@remotion/enable-scss": "4.0.227",
|
|
60
|
+
"@remotion/skia": "4.0.227",
|
|
61
|
+
"@remotion/eslint-config-internal": "4.0.227"
|
|
59
62
|
},
|
|
60
63
|
"keywords": [
|
|
61
64
|
"remotion",
|
|
@@ -70,7 +73,8 @@
|
|
|
70
73
|
"homepage": "https://www.remotion.dev/docs/cli",
|
|
71
74
|
"scripts": {
|
|
72
75
|
"formatting": "prettier src --check",
|
|
73
|
-
"lint": "eslint src
|
|
74
|
-
"test": "bun test src"
|
|
76
|
+
"lint": "eslint src",
|
|
77
|
+
"test": "bun test src",
|
|
78
|
+
"make": "tsc -d"
|
|
75
79
|
}
|
|
76
80
|
}
|
package/remotiond-cli.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env deno --allow-env --allow-read --allow-write --allow-net --allow-run --allow-sys
|
|
2
|
+
const {cli} = require('./dist/index');
|
|
3
|
+
|
|
4
|
+
// Just like "remotion", but it uses Bun
|
|
5
|
+
cli()
|
|
6
|
+
.then(() => process.exit(0))
|
|
7
|
+
.catch((err) => {
|
|
8
|
+
// eslint-disable-next-line no-console
|
|
9
|
+
console.error(err);
|
|
10
|
+
process.exit(1);
|
|
11
|
+
});
|