@remotion/cli 4.0.181 → 4.0.182

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
@@ -17,7 +17,7 @@ const parsed_cli_1 = require("./parsed-cli");
17
17
  const setup_cache_1 = require("./setup-cache");
18
18
  const should_use_non_overlaying_logger_1 = require("./should-use-non-overlaying-logger");
19
19
  const yes_or_no_1 = require("./yes-or-no");
20
- const { publicPathOption, publicDirOption } = client_1.BrowserSafeApis.options;
20
+ const { publicPathOption, publicDirOption, disableGitSourceOption } = client_1.BrowserSafeApis.options;
21
21
  const bundleCommand = async (remotionRoot, args, logLevel) => {
22
22
  const { file, reason } = (0, entry_point_1.findEntryPoint)({
23
23
  args,
@@ -42,6 +42,9 @@ const bundleCommand = async (remotionRoot, args, logLevel) => {
42
42
  }
43
43
  const publicPath = publicPathOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
44
44
  const publicDir = publicDirOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
45
+ const disableGitSource = disableGitSourceOption.getValue({
46
+ commandLine: parsed_cli_1.parsedCli,
47
+ }).value;
45
48
  const outputPath = parsed_cli_1.parsedCli['out-dir']
46
49
  ? path_1.default.resolve(process.cwd(), parsed_cli_1.parsedCli['out-dir'])
47
50
  : path_1.default.join(remotionRoot, 'build');
@@ -58,7 +61,7 @@ const bundleCommand = async (remotionRoot, args, logLevel) => {
58
61
  }
59
62
  (0, fs_1.rmSync)(outputPath, { recursive: true });
60
63
  }
61
- const gitSource = (0, get_github_repository_1.getGitSource)(remotionRoot);
64
+ const gitSource = (0, get_github_repository_1.getGitSource)({ remotionRoot, disableGitSource });
62
65
  const output = await (0, setup_cache_1.bundleOnCli)({
63
66
  fullPath: file,
64
67
  logLevel,
@@ -11,4 +11,7 @@ export declare const getGitRemoteOrigin: (gitConfig: string) => {
11
11
  } | null;
12
12
  export declare const normalizeGitRemoteUrl: (url: string) => ParsedGitRemote | null;
13
13
  export declare const getGifRef: () => string | null;
14
- export declare const getGitSource: (remotionRoot: string) => GitSource | null;
14
+ export declare const getGitSource: ({ remotionRoot, disableGitSource, }: {
15
+ remotionRoot: string;
16
+ disableGitSource: boolean;
17
+ }) => GitSource | null;
@@ -108,7 +108,10 @@ const getFromEnvVariables = () => {
108
108
  }
109
109
  return null;
110
110
  };
111
- const getGitSource = (remotionRoot) => {
111
+ const getGitSource = ({ remotionRoot, disableGitSource, }) => {
112
+ if (disableGitSource) {
113
+ return null;
114
+ }
112
115
  const fromEnv = getFromEnvVariables();
113
116
  if (fromEnv) {
114
117
  return getFromEnvVariables();
package/dist/index.d.ts CHANGED
@@ -183,4 +183,8 @@ export declare const CliInternals: {
183
183
  fallback: string;
184
184
  }) => string;
185
185
  supportsHyperlink: typeof supportsHyperlink;
186
+ getGitSource: ({ remotionRoot, disableGitSource, }: {
187
+ remotionRoot: string;
188
+ disableGitSource: boolean;
189
+ }) => import("@remotion/studio-shared").GitSource | null;
186
190
  };
package/dist/index.js CHANGED
@@ -23,6 +23,7 @@ const ffmpeg_1 = require("./ffmpeg");
23
23
  const get_cli_options_1 = require("./get-cli-options");
24
24
  const get_composition_with_dimension_override_1 = require("./get-composition-with-dimension-override");
25
25
  const get_config_file_name_1 = require("./get-config-file-name");
26
+ const get_github_repository_1 = require("./get-github-repository");
26
27
  const gpu_1 = require("./gpu");
27
28
  const is_supported_1 = require("./hyperlinks/is-supported");
28
29
  const make_link_1 = require("./hyperlinks/make-link");
@@ -167,4 +168,5 @@ exports.CliInternals = {
167
168
  printFact: progress_bar_1.printFact,
168
169
  makeHyperlink: make_link_1.makeHyperlink,
169
170
  supportsHyperlink: is_supported_1.supportsHyperlink,
171
+ getGitSource: get_github_repository_1.getGitSource,
170
172
  };
@@ -31,6 +31,7 @@ exports.BooleanFlags = [
31
31
  'no-open',
32
32
  'ipv4',
33
33
  client_1.BrowserSafeApis.options.beepOnFinishOption.cliFlag,
34
+ client_1.BrowserSafeApis.options.disableGitSourceOption.cliFlag,
34
35
  'repro',
35
36
  'compatible-only',
36
37
  ];
package/dist/studio.js CHANGED
@@ -24,7 +24,7 @@ const getPort = () => {
24
24
  }
25
25
  return null;
26
26
  };
27
- const { binariesDirectoryOption, publicDirOption } = client_1.BrowserSafeApis.options;
27
+ const { binariesDirectoryOption, publicDirOption, disableGitSourceOption } = client_1.BrowserSafeApis.options;
28
28
  const studioCommand = async (remotionRoot, args, logLevel) => {
29
29
  var _a;
30
30
  const { file, reason } = (0, entry_point_1.findEntryPoint)({
@@ -61,13 +61,16 @@ const studioCommand = async (remotionRoot, args, logLevel) => {
61
61
  });
62
62
  }, logLevel, false);
63
63
  const keyboardShortcutsEnabled = config_1.ConfigInternals.getKeyboardShortcutsEnabled();
64
- const gitSource = (0, get_github_repository_1.getGitSource)(remotionRoot);
65
64
  const binariesDirectory = binariesDirectoryOption.getValue({
66
65
  commandLine: parsed_cli_1.parsedCli,
67
66
  }).value;
67
+ const disableGitSource = disableGitSourceOption.getValue({
68
+ commandLine: parsed_cli_1.parsedCli,
69
+ }).value;
68
70
  const relativePublicDir = publicDirOption.getValue({
69
71
  commandLine: parsed_cli_1.parsedCli,
70
72
  }).value;
73
+ const gitSource = (0, get_github_repository_1.getGitSource)({ remotionRoot, disableGitSource });
71
74
  await studio_server_1.StudioServerInternals.startStudio({
72
75
  previewEntry: require.resolve('@remotion/studio/entry'),
73
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.181",
6
+ "version": "4.0.182",
7
7
  "description": "Control Remotion features using the `npx remotion` command",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -32,14 +32,14 @@
32
32
  "dotenv": "9.0.2",
33
33
  "minimist": "1.2.6",
34
34
  "prompts": "2.4.2",
35
- "@remotion/bundler": "4.0.181",
36
- "@remotion/player": "4.0.181",
37
- "@remotion/media-utils": "4.0.181",
38
- "@remotion/studio-shared": "4.0.181",
39
- "@remotion/studio": "4.0.181",
40
- "@remotion/renderer": "4.0.181",
41
- "remotion": "4.0.181",
42
- "@remotion/studio-server": "4.0.181"
35
+ "@remotion/bundler": "4.0.182",
36
+ "@remotion/media-utils": "4.0.182",
37
+ "@remotion/renderer": "4.0.182",
38
+ "@remotion/studio-shared": "4.0.182",
39
+ "@remotion/player": "4.0.182",
40
+ "@remotion/studio-server": "4.0.182",
41
+ "@remotion/studio": "4.0.182",
42
+ "remotion": "4.0.182"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": ">=16.8.0",
@@ -52,10 +52,10 @@
52
52
  "react": "18.3.1",
53
53
  "react-dom": "18.3.1",
54
54
  "zod": "3.22.3",
55
- "@remotion/zod-types": "4.0.181",
56
- "@remotion/enable-scss": "4.0.181",
57
- "@remotion/skia": "4.0.181",
58
- "@remotion/tailwind": "4.0.181"
55
+ "@remotion/zod-types": "4.0.182",
56
+ "@remotion/tailwind": "4.0.182",
57
+ "@remotion/enable-scss": "4.0.182",
58
+ "@remotion/skia": "4.0.182"
59
59
  },
60
60
  "keywords": [
61
61
  "remotion",