@remotion/cli 4.0.259 → 4.0.261
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/bundle.js +1 -1
- package/dist/entry-point.js +4 -0
- package/dist/get-github-repository.d.ts +4 -2
- package/dist/get-github-repository.js +12 -5
- package/dist/index.d.ts +7 -6
- package/dist/list-of-remotion-packages.js +2 -0
- package/dist/log.d.ts +5 -5
- package/dist/render-flows/render.js +2 -0
- package/dist/studio.js +1 -1
- package/package.json +15 -15
package/dist/bundle.js
CHANGED
|
@@ -61,7 +61,7 @@ const bundleCommand = async (remotionRoot, args, logLevel) => {
|
|
|
61
61
|
}
|
|
62
62
|
(0, fs_1.rmSync)(outputPath, { recursive: true });
|
|
63
63
|
}
|
|
64
|
-
const gitSource = (0, get_github_repository_1.getGitSource)({ remotionRoot, disableGitSource });
|
|
64
|
+
const gitSource = (0, get_github_repository_1.getGitSource)({ remotionRoot, disableGitSource, logLevel });
|
|
65
65
|
const output = await (0, setup_cache_1.bundleOnCli)({
|
|
66
66
|
fullPath: file,
|
|
67
67
|
logLevel,
|
package/dist/entry-point.js
CHANGED
|
@@ -18,6 +18,10 @@ const candidates = [
|
|
|
18
18
|
node_path_1.default.join('remotion', 'index.ts'),
|
|
19
19
|
node_path_1.default.join('remotion', 'index.js'),
|
|
20
20
|
node_path_1.default.join('remotion', 'index.mjs'),
|
|
21
|
+
node_path_1.default.join('src', 'remotion', 'index.tsx'),
|
|
22
|
+
node_path_1.default.join('src', 'remotion', 'index.ts'),
|
|
23
|
+
node_path_1.default.join('src', 'remotion', 'index.js'),
|
|
24
|
+
node_path_1.default.join('src', 'remotion', 'index.mjs'),
|
|
21
25
|
];
|
|
22
26
|
const findCommonPath = (remotionRoot) => {
|
|
23
27
|
return candidates.find((candidate) => (0, node_fs_1.existsSync)(node_path_1.default.resolve(remotionRoot, candidate)));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { LogLevel } from '@remotion/renderer';
|
|
1
2
|
import type { GitSource } from '@remotion/studio-shared';
|
|
2
3
|
export type ParsedGitRemote = {
|
|
3
4
|
type: 'github';
|
|
@@ -10,8 +11,9 @@ export declare const getGitRemoteOrigin: (gitConfig: string) => {
|
|
|
10
11
|
url: string | null;
|
|
11
12
|
} | null;
|
|
12
13
|
export declare const normalizeGitRemoteUrl: (url: string) => ParsedGitRemote | null;
|
|
13
|
-
export declare const getGifRef: () => string | null;
|
|
14
|
-
export declare const getGitSource: ({ remotionRoot, disableGitSource, }: {
|
|
14
|
+
export declare const getGifRef: (logLevel: LogLevel) => string | null;
|
|
15
|
+
export declare const getGitSource: ({ remotionRoot, disableGitSource, logLevel, }: {
|
|
15
16
|
remotionRoot: string;
|
|
16
17
|
disableGitSource: boolean;
|
|
18
|
+
logLevel: LogLevel;
|
|
17
19
|
}) => GitSource | null;
|
|
@@ -8,6 +8,7 @@ const bundler_1 = require("@remotion/bundler");
|
|
|
8
8
|
const child_process_1 = require("child_process");
|
|
9
9
|
const fs_1 = require("fs");
|
|
10
10
|
const path_1 = __importDefault(require("path"));
|
|
11
|
+
const log_1 = require("./log");
|
|
11
12
|
const getGitRemotes = (lines) => {
|
|
12
13
|
const sections = [];
|
|
13
14
|
let open = false;
|
|
@@ -83,11 +84,17 @@ const normalizeGitRemoteUrl = (url) => {
|
|
|
83
84
|
return null;
|
|
84
85
|
};
|
|
85
86
|
exports.normalizeGitRemoteUrl = normalizeGitRemoteUrl;
|
|
86
|
-
const getGifRef = () => {
|
|
87
|
+
const getGifRef = (logLevel) => {
|
|
87
88
|
try {
|
|
88
|
-
|
|
89
|
+
const ret = (0, child_process_1.execSync)('git rev-parse --abbrev-ref HEAD', {
|
|
90
|
+
stdio: ['ignore', 'pipe', 'ignore'],
|
|
91
|
+
})
|
|
92
|
+
.toString('utf-8')
|
|
93
|
+
.trim();
|
|
94
|
+
return ret;
|
|
89
95
|
}
|
|
90
|
-
catch (
|
|
96
|
+
catch (err) {
|
|
97
|
+
log_1.Log.verbose({ logLevel, indent: false }, 'Could not get git ref', err);
|
|
91
98
|
return null;
|
|
92
99
|
}
|
|
93
100
|
};
|
|
@@ -108,7 +115,7 @@ const getFromEnvVariables = () => {
|
|
|
108
115
|
}
|
|
109
116
|
return null;
|
|
110
117
|
};
|
|
111
|
-
const getGitSource = ({ remotionRoot, disableGitSource, }) => {
|
|
118
|
+
const getGitSource = ({ remotionRoot, disableGitSource, logLevel, }) => {
|
|
112
119
|
if (disableGitSource) {
|
|
113
120
|
return null;
|
|
114
121
|
}
|
|
@@ -116,7 +123,7 @@ const getGitSource = ({ remotionRoot, disableGitSource, }) => {
|
|
|
116
123
|
if (fromEnv) {
|
|
117
124
|
return getFromEnvVariables();
|
|
118
125
|
}
|
|
119
|
-
const ref = (0, exports.getGifRef)();
|
|
126
|
+
const ref = (0, exports.getGifRef)(logLevel);
|
|
120
127
|
if (!ref) {
|
|
121
128
|
return null;
|
|
122
129
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -62,15 +62,15 @@ export declare const CliInternals: {
|
|
|
62
62
|
Log: {
|
|
63
63
|
trace: (options: import("@remotion/renderer").LogOptions & {
|
|
64
64
|
tag?: string;
|
|
65
|
-
},
|
|
65
|
+
}, ...args: Parameters<typeof console.log>) => boolean | void;
|
|
66
66
|
verbose: (options: import("@remotion/renderer").LogOptions & {
|
|
67
67
|
tag?: string;
|
|
68
|
-
},
|
|
69
|
-
info: (options: import("@remotion/renderer").LogOptions,
|
|
70
|
-
warn: (options: import("@remotion/renderer").LogOptions,
|
|
68
|
+
}, ...args: Parameters<typeof console.log>) => boolean | void;
|
|
69
|
+
info: (options: import("@remotion/renderer").LogOptions, ...args: Parameters<typeof console.log>) => boolean | void;
|
|
70
|
+
warn: (options: import("@remotion/renderer").LogOptions, ...args: Parameters<typeof console.log>) => boolean | void;
|
|
71
71
|
error: (options: import("@remotion/renderer").LogOptions & {
|
|
72
72
|
tag?: string;
|
|
73
|
-
},
|
|
73
|
+
}, ...args: Parameters<typeof console.log>) => boolean | void;
|
|
74
74
|
};
|
|
75
75
|
getCliOptions: (options: {
|
|
76
76
|
isStill: boolean;
|
|
@@ -187,8 +187,9 @@ export declare const CliInternals: {
|
|
|
187
187
|
fallback: string;
|
|
188
188
|
}) => string;
|
|
189
189
|
supportsHyperlink: typeof supportsHyperlink;
|
|
190
|
-
getGitSource: ({ remotionRoot, disableGitSource, }: {
|
|
190
|
+
getGitSource: ({ remotionRoot, disableGitSource, logLevel, }: {
|
|
191
191
|
remotionRoot: string;
|
|
192
192
|
disableGitSource: boolean;
|
|
193
|
+
logLevel: import("@remotion/renderer").LogLevel;
|
|
193
194
|
}) => import("@remotion/studio-shared").GitSource | null;
|
|
194
195
|
};
|
|
@@ -44,6 +44,7 @@ exports.listOfRemotionPackages = [
|
|
|
44
44
|
'@remotion/lambda-ruby',
|
|
45
45
|
'@remotion/lambda-python',
|
|
46
46
|
'@remotion/lambda',
|
|
47
|
+
'@remotion/lambda-client',
|
|
47
48
|
'@remotion/layout-utils',
|
|
48
49
|
'@remotion/licensing',
|
|
49
50
|
'@remotion/lottie',
|
|
@@ -61,6 +62,7 @@ exports.listOfRemotionPackages = [
|
|
|
61
62
|
'@remotion/promo-pages',
|
|
62
63
|
'@remotion/streaming',
|
|
63
64
|
'@remotion/serverless',
|
|
65
|
+
'@remotion/serverless-client',
|
|
64
66
|
'@remotion/studio-server',
|
|
65
67
|
'@remotion/studio-shared',
|
|
66
68
|
'@remotion/studio',
|
package/dist/log.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const Log: {
|
|
2
2
|
trace: (options: import("@remotion/renderer").LogOptions & {
|
|
3
3
|
tag?: string;
|
|
4
|
-
},
|
|
4
|
+
}, ...args: Parameters<typeof console.log>) => boolean | void;
|
|
5
5
|
verbose: (options: import("@remotion/renderer").LogOptions & {
|
|
6
6
|
tag?: string;
|
|
7
|
-
},
|
|
8
|
-
info: (options: import("@remotion/renderer").LogOptions,
|
|
9
|
-
warn: (options: import("@remotion/renderer").LogOptions,
|
|
7
|
+
}, ...args: Parameters<typeof console.log>) => boolean | void;
|
|
8
|
+
info: (options: import("@remotion/renderer").LogOptions, ...args: Parameters<typeof console.log>) => boolean | void;
|
|
9
|
+
warn: (options: import("@remotion/renderer").LogOptions, ...args: Parameters<typeof console.log>) => boolean | void;
|
|
10
10
|
error: (options: import("@remotion/renderer").LogOptions & {
|
|
11
11
|
tag?: string;
|
|
12
|
-
},
|
|
12
|
+
}, ...args: Parameters<typeof console.log>) => boolean | void;
|
|
13
13
|
};
|
|
@@ -215,6 +215,8 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
|
|
|
215
215
|
codec,
|
|
216
216
|
scale,
|
|
217
217
|
wantsImageSequence: shouldOutputImageSequence,
|
|
218
|
+
indent,
|
|
219
|
+
logLevel,
|
|
218
220
|
});
|
|
219
221
|
const relativeOutputLocation = (0, get_filename_1.getOutputFilename)({
|
|
220
222
|
imageSequence: shouldOutputImageSequence,
|
package/dist/studio.js
CHANGED
|
@@ -70,7 +70,7 @@ const studioCommand = async (remotionRoot, args, logLevel) => {
|
|
|
70
70
|
const relativePublicDir = publicDirOption.getValue({
|
|
71
71
|
commandLine: parsed_cli_1.parsedCli,
|
|
72
72
|
}).value;
|
|
73
|
-
const gitSource = (0, get_github_repository_1.getGitSource)({ remotionRoot, disableGitSource });
|
|
73
|
+
const gitSource = (0, get_github_repository_1.getGitSource)({ remotionRoot, disableGitSource, logLevel });
|
|
74
74
|
await studio_server_1.StudioServerInternals.startStudio({
|
|
75
75
|
previewEntry: require.resolve('@remotion/studio/entry'),
|
|
76
76
|
browserArgs: parsed_cli_1.parsedCli['browser-args'],
|
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.261",
|
|
7
7
|
"description": "Control Remotion features using the `npx remotion` command",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"dotenv": "9.0.2",
|
|
34
34
|
"minimist": "1.2.6",
|
|
35
35
|
"prompts": "2.4.2",
|
|
36
|
-
"@remotion/media-utils": "4.0.
|
|
37
|
-
"@remotion/bundler": "4.0.
|
|
38
|
-
"@remotion/studio-shared": "4.0.
|
|
39
|
-
"@remotion/renderer": "4.0.
|
|
40
|
-
"@remotion/player": "4.0.
|
|
41
|
-
"@remotion/studio": "4.0.
|
|
42
|
-
"remotion": "4.0.
|
|
43
|
-
"
|
|
36
|
+
"@remotion/media-utils": "4.0.261",
|
|
37
|
+
"@remotion/bundler": "4.0.261",
|
|
38
|
+
"@remotion/studio-shared": "4.0.261",
|
|
39
|
+
"@remotion/renderer": "4.0.261",
|
|
40
|
+
"@remotion/player": "4.0.261",
|
|
41
|
+
"@remotion/studio": "4.0.261",
|
|
42
|
+
"@remotion/studio-server": "4.0.261",
|
|
43
|
+
"remotion": "4.0.261"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": ">=16.8.0",
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
"react": "19.0.0",
|
|
54
54
|
"react-dom": "19.0.0",
|
|
55
55
|
"zod": "3.22.3",
|
|
56
|
-
"eslint": "9.
|
|
57
|
-
"@remotion/zod-types": "4.0.
|
|
58
|
-
"@remotion/tailwind-v4": "4.0.
|
|
59
|
-
"@remotion/
|
|
60
|
-
"@remotion/
|
|
61
|
-
"@remotion/
|
|
56
|
+
"eslint": "9.19.0",
|
|
57
|
+
"@remotion/zod-types": "4.0.261",
|
|
58
|
+
"@remotion/tailwind-v4": "4.0.261",
|
|
59
|
+
"@remotion/skia": "4.0.261",
|
|
60
|
+
"@remotion/eslint-config-internal": "4.0.261",
|
|
61
|
+
"@remotion/enable-scss": "4.0.261"
|
|
62
62
|
},
|
|
63
63
|
"keywords": [
|
|
64
64
|
"remotion",
|