@remotion/cli 3.2.2 → 3.2.3

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.
@@ -0,0 +1,2 @@
1
+ export declare const setDropAudioIfSilent: (muted: boolean) => void;
2
+ export declare const getDropAudioIfSilent: () => boolean;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getDropAudioIfSilent = exports.setDropAudioIfSilent = void 0;
4
+ const DEFAULT_DROP_AUDIO_IF_SILENT_STATE = true;
5
+ let mutedState = DEFAULT_DROP_AUDIO_IF_SILENT_STATE;
6
+ const setDropAudioIfSilent = (muted) => {
7
+ mutedState = muted;
8
+ };
9
+ exports.setDropAudioIfSilent = setDropAudioIfSilent;
10
+ const getDropAudioIfSilent = () => {
11
+ return mutedState;
12
+ };
13
+ exports.getDropAudioIfSilent = getDropAudioIfSilent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/cli",
3
- "version": "3.2.2",
3
+ "version": "3.2.3",
4
4
  "description": "CLI for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -23,15 +23,15 @@
23
23
  "author": "Jonny Burger <jonny@remotion.dev>",
24
24
  "license": "SEE LICENSE IN LICENSE.md",
25
25
  "dependencies": {
26
- "@remotion/bundler": "3.2.2",
27
- "@remotion/media-utils": "3.2.2",
28
- "@remotion/player": "3.2.2",
29
- "@remotion/renderer": "3.2.2",
26
+ "@remotion/bundler": "3.2.3",
27
+ "@remotion/media-utils": "3.2.3",
28
+ "@remotion/player": "3.2.3",
29
+ "@remotion/renderer": "3.2.3",
30
30
  "better-opn": "2.1.1",
31
31
  "dotenv": "9.0.2",
32
32
  "memfs": "3.4.3",
33
33
  "minimist": "1.2.6",
34
- "remotion": "3.2.2",
34
+ "remotion": "3.2.3",
35
35
  "semver": "7.3.5",
36
36
  "source-map": "0.6.1"
37
37
  },
@@ -71,5 +71,5 @@
71
71
  "publishConfig": {
72
72
  "access": "public"
73
73
  },
74
- "gitHead": "8e5f2d05adf7ddd3824ea734fa888b4b4761f364"
74
+ "gitHead": "15773a2e48ee8a9dbcfd898520cb914396c21eb1"
75
75
  }
package/dist/bundle.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const bundleCommand: (remotionRoot: string) => Promise<void>;
package/dist/bundle.js DELETED
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bundleCommand = void 0;
4
- const get_cli_options_1 = require("./get-cli-options");
5
- const initialize_render_cli_1 = require("./initialize-render-cli");
6
- const log_1 = require("./log");
7
- const parse_command_line_1 = require("./parse-command-line");
8
- const prepare_entry_point_1 = require("./prepare-entry-point");
9
- const bundleCommand = async (remotionRoot) => {
10
- const file = parse_command_line_1.parsedCli._[1];
11
- if (!file) {
12
- log_1.Log.error('No entry point specified. Pass more arguments:');
13
- log_1.Log.error(' npx remotion bundle [entry-point]');
14
- log_1.Log.error('Documentation: https://www.remotion.dev/docs/render');
15
- process.exit(1);
16
- }
17
- await (0, initialize_render_cli_1.initializeRenderCli)(remotionRoot, 'bundle');
18
- const { publicPath, bundleOutDir } = await (0, get_cli_options_1.getCliOptions)({
19
- isLambda: false,
20
- type: 'get-compositions-or-bundle',
21
- });
22
- const { urlOrBundle } = await (0, prepare_entry_point_1.prepareEntryPoint)({
23
- file,
24
- otherSteps: [],
25
- outDir: bundleOutDir,
26
- publicPath,
27
- remotionRoot,
28
- });
29
- log_1.Log.info();
30
- log_1.Log.info(urlOrBundle);
31
- };
32
- exports.bundleCommand = bundleCommand;
@@ -1,2 +0,0 @@
1
- export declare const getBundleOutDir: () => string | null;
2
- export declare const setBundleOutDir: (path: string) => void;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setBundleOutDir = exports.getBundleOutDir = void 0;
4
- let bundleOutDir = null;
5
- const getBundleOutDir = () => {
6
- return bundleOutDir;
7
- };
8
- exports.getBundleOutDir = getBundleOutDir;
9
- const setBundleOutDir = (path) => {
10
- bundleOutDir = path;
11
- };
12
- exports.setBundleOutDir = setBundleOutDir;
@@ -1,2 +0,0 @@
1
- export declare const getPublicPath: () => string | null;
2
- export declare const setPublicPath: (path: string) => void;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setPublicPath = exports.getPublicPath = void 0;
4
- let publicPath = null;
5
- const getPublicPath = () => {
6
- return publicPath;
7
- };
8
- exports.getPublicPath = getPublicPath;
9
- const setPublicPath = (path) => {
10
- publicPath = path;
11
- };
12
- exports.setPublicPath = setPublicPath;
@@ -1,12 +0,0 @@
1
- import type { RenderStep } from './step';
2
- export declare const prepareEntryPoint: ({ file, otherSteps, publicPath, outDir, remotionRoot, }: {
3
- file: string;
4
- otherSteps: RenderStep[];
5
- outDir: string | null;
6
- publicPath: string | null;
7
- remotionRoot: string;
8
- }) => Promise<{
9
- urlOrBundle: string;
10
- steps: RenderStep[];
11
- shouldDelete: boolean;
12
- }>;
@@ -1,37 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.prepareEntryPoint = void 0;
7
- const renderer_1 = require("@remotion/renderer");
8
- const promises_1 = require("fs/promises");
9
- const path_1 = __importDefault(require("path"));
10
- const process_1 = require("process");
11
- const log_1 = require("./log");
12
- const setup_cache_1 = require("./setup-cache");
13
- const prepareEntryPoint = async ({ file, otherSteps, publicPath, outDir, remotionRoot, }) => {
14
- if (renderer_1.RenderInternals.isServeUrl(file)) {
15
- return { urlOrBundle: file, steps: otherSteps, shouldDelete: false };
16
- }
17
- const joined = path_1.default.resolve(process.cwd(), file);
18
- try {
19
- const stats = await (0, promises_1.stat)(joined);
20
- if (stats.isDirectory()) {
21
- return { urlOrBundle: joined, steps: otherSteps, shouldDelete: false };
22
- }
23
- }
24
- catch (err) {
25
- log_1.Log.error(`No file or directory exists at ${joined}.`);
26
- (0, process_1.exit)(1);
27
- }
28
- const urlOrBundle = await (0, setup_cache_1.bundleOnCliOrTakeServeUrl)({
29
- fullPath: joined,
30
- steps: ['bundling', ...otherSteps],
31
- outDir,
32
- publicPath,
33
- remotionRoot,
34
- });
35
- return { urlOrBundle, steps: ['bundling', ...otherSteps], shouldDelete: true };
36
- };
37
- exports.prepareEntryPoint = prepareEntryPoint;