@remotion/cli 4.0.259 → 4.0.260

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 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,
@@ -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
- return (0, child_process_1.execSync)('git rev-parse --abbrev-ref HEAD').toString('utf-8').trim();
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 (_a) {
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
@@ -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
  };
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.259",
6
+ "version": "4.0.260",
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.259",
37
- "@remotion/bundler": "4.0.259",
38
- "@remotion/studio-shared": "4.0.259",
39
- "@remotion/renderer": "4.0.259",
40
- "@remotion/player": "4.0.259",
41
- "@remotion/studio": "4.0.259",
42
- "remotion": "4.0.259",
43
- "@remotion/studio-server": "4.0.259"
36
+ "@remotion/media-utils": "4.0.260",
37
+ "@remotion/player": "4.0.260",
38
+ "@remotion/renderer": "4.0.260",
39
+ "@remotion/studio-shared": "4.0.260",
40
+ "@remotion/studio": "4.0.260",
41
+ "@remotion/studio-server": "4.0.260",
42
+ "@remotion/bundler": "4.0.260",
43
+ "remotion": "4.0.260"
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.14.0",
57
- "@remotion/zod-types": "4.0.259",
58
- "@remotion/tailwind-v4": "4.0.259",
59
- "@remotion/enable-scss": "4.0.259",
60
- "@remotion/skia": "4.0.259",
61
- "@remotion/eslint-config-internal": "4.0.259"
56
+ "eslint": "9.19.0",
57
+ "@remotion/tailwind-v4": "4.0.260",
58
+ "@remotion/enable-scss": "4.0.260",
59
+ "@remotion/skia": "4.0.260",
60
+ "@remotion/zod-types": "4.0.260",
61
+ "@remotion/eslint-config-internal": "4.0.260"
62
62
  },
63
63
  "keywords": [
64
64
  "remotion",