@remotion/cloudrun 4.0.180 → 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/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type {
|
|
1
|
+
import { type GitSource, type WebpackOverrideFn } from '@remotion/bundler';
|
|
2
|
+
import type { ToOptions } from '@remotion/renderer';
|
|
3
|
+
import type { BrowserSafeApis } from '@remotion/renderer/client';
|
|
3
4
|
import type { UploadDirProgress } from './upload-dir';
|
|
4
5
|
type Options = {
|
|
5
6
|
onBundleProgress?: (progress: number) => void;
|
|
@@ -12,20 +13,23 @@ type Options = {
|
|
|
12
13
|
bypassBucketNameValidation?: boolean;
|
|
13
14
|
gitSource?: GitSource | null;
|
|
14
15
|
};
|
|
16
|
+
type OptionalParameters = {
|
|
17
|
+
siteName: string;
|
|
18
|
+
options: Options;
|
|
19
|
+
} & ToOptions<typeof BrowserSafeApis.optionsMap.deploySiteCloudRun>;
|
|
15
20
|
export type RawDeploySiteInput = {
|
|
16
21
|
entryPoint: string;
|
|
17
22
|
bucketName: string;
|
|
18
23
|
siteName: string;
|
|
19
24
|
options: Options;
|
|
20
|
-
logLevel: LogLevel;
|
|
21
25
|
indent: boolean;
|
|
22
|
-
};
|
|
26
|
+
} & OptionalParameters;
|
|
23
27
|
export type DeploySiteInput = {
|
|
24
28
|
entryPoint: string;
|
|
25
29
|
bucketName: string;
|
|
26
30
|
siteName?: string;
|
|
27
31
|
options?: Options;
|
|
28
|
-
}
|
|
32
|
+
} & Partial<OptionalParameters>;
|
|
29
33
|
export type DeploySiteOutput = Promise<{
|
|
30
34
|
serveUrl: string;
|
|
31
35
|
siteName: string;
|
|
@@ -35,6 +39,7 @@ export type DeploySiteOutput = Promise<{
|
|
|
35
39
|
untouchedFiles: number;
|
|
36
40
|
};
|
|
37
41
|
}>;
|
|
42
|
+
export declare const internalDeploySiteRaw: ({ entryPoint, bucketName, siteName, options, }: RawDeploySiteInput) => DeploySiteOutput;
|
|
38
43
|
/**
|
|
39
44
|
* @description Deploys a Remotion project to a GCP storage bucket to prepare it for rendering on Cloud Run.
|
|
40
45
|
* @link https://remotion.dev/docs/cloudrun/deploysite
|
package/dist/api/deploy-site.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deploySite = void 0;
|
|
3
|
+
exports.deploySite = exports.internalDeploySiteRaw = void 0;
|
|
4
|
+
const bundler_1 = require("@remotion/bundler");
|
|
4
5
|
const pure_1 = require("@remotion/renderer/pure");
|
|
5
6
|
const io_1 = require("../functions/helpers/io");
|
|
6
|
-
const bundle_site_1 = require("../shared/bundle-site");
|
|
7
7
|
const constants_1 = require("../shared/constants");
|
|
8
8
|
const get_storage_operations_1 = require("../shared/get-storage-operations");
|
|
9
9
|
const make_storage_url_1 = require("../shared/make-storage-url");
|
|
@@ -13,7 +13,7 @@ const validate_site_name_1 = require("../shared/validate-site-name");
|
|
|
13
13
|
const get_cloud_storage_client_1 = require("./helpers/get-cloud-storage-client");
|
|
14
14
|
const upload_dir_1 = require("./upload-dir");
|
|
15
15
|
const internalDeploySiteRaw = async ({ entryPoint, bucketName, siteName, options, }) => {
|
|
16
|
-
var _a, _b, _c, _d;
|
|
16
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
17
17
|
(0, validate_bucketname_1.validateBucketName)(bucketName, { mustStartWithRemotion: true });
|
|
18
18
|
(0, validate_site_name_1.validateSiteName)(siteName);
|
|
19
19
|
const cloudStorageClient = (0, get_cloud_storage_client_1.getCloudStorageClient)();
|
|
@@ -26,16 +26,22 @@ const internalDeploySiteRaw = async ({ entryPoint, bucketName, siteName, options
|
|
|
26
26
|
bucketName,
|
|
27
27
|
prefix: subFolder,
|
|
28
28
|
}),
|
|
29
|
-
|
|
29
|
+
bundler_1.BundlerInternals.internalBundle({
|
|
30
30
|
publicPath: `/${bucketName}/${subFolder}/`,
|
|
31
31
|
webpackOverride: (_a = options === null || options === void 0 ? void 0 : options.webpackOverride) !== null && _a !== void 0 ? _a : ((f) => f),
|
|
32
32
|
enableCaching: (_b = options === null || options === void 0 ? void 0 : options.enableCaching) !== null && _b !== void 0 ? _b : true,
|
|
33
|
-
publicDir: options === null || options === void 0 ? void 0 : options.publicDir,
|
|
34
|
-
rootDir: options === null || options === void 0 ? void 0 : options.rootDir,
|
|
35
|
-
ignoreRegisterRootWarning: options === null || options === void 0 ? void 0 : options.ignoreRegisterRootWarning,
|
|
36
|
-
onProgress: (
|
|
33
|
+
publicDir: (_c = options === null || options === void 0 ? void 0 : options.publicDir) !== null && _c !== void 0 ? _c : null,
|
|
34
|
+
rootDir: (_d = options === null || options === void 0 ? void 0 : options.rootDir) !== null && _d !== void 0 ? _d : null,
|
|
35
|
+
ignoreRegisterRootWarning: (_e = options === null || options === void 0 ? void 0 : options.ignoreRegisterRootWarning) !== null && _e !== void 0 ? _e : false,
|
|
36
|
+
onProgress: (_f = options === null || options === void 0 ? void 0 : options.onBundleProgress) !== null && _f !== void 0 ? _f : (() => undefined),
|
|
37
37
|
entryPoint,
|
|
38
|
-
gitSource: options === null || options === void 0 ? void 0 : options.gitSource,
|
|
38
|
+
gitSource: (_g = options === null || options === void 0 ? void 0 : options.gitSource) !== null && _g !== void 0 ? _g : null,
|
|
39
|
+
bufferStateDelayInMilliseconds: null,
|
|
40
|
+
maxTimelineTracks: null,
|
|
41
|
+
onDirectoryCreated: () => undefined,
|
|
42
|
+
onPublicDirCopyProgress: () => undefined,
|
|
43
|
+
onSymlinkDetected: () => undefined,
|
|
44
|
+
outDir: null,
|
|
39
45
|
}),
|
|
40
46
|
]);
|
|
41
47
|
const { toDelete, toUpload, existingCount } = await (0, get_storage_operations_1.getStorageDiffOperations)({
|
|
@@ -47,7 +53,7 @@ const internalDeploySiteRaw = async ({ entryPoint, bucketName, siteName, options
|
|
|
47
53
|
(0, upload_dir_1.uploadDir)({
|
|
48
54
|
bucket: bucketName,
|
|
49
55
|
localDir: bundled,
|
|
50
|
-
onProgress: (
|
|
56
|
+
onProgress: (_h = options === null || options === void 0 ? void 0 : options.onUploadProgress) !== null && _h !== void 0 ? _h : (() => undefined),
|
|
51
57
|
keyPrefix: subFolder,
|
|
52
58
|
toUpload,
|
|
53
59
|
}),
|
|
@@ -68,7 +74,8 @@ const internalDeploySiteRaw = async ({ entryPoint, bucketName, siteName, options
|
|
|
68
74
|
},
|
|
69
75
|
};
|
|
70
76
|
};
|
|
71
|
-
|
|
77
|
+
exports.internalDeploySiteRaw = internalDeploySiteRaw;
|
|
78
|
+
const errorHandled = pure_1.NoReactAPIs.wrapWithErrorHandling(exports.internalDeploySiteRaw);
|
|
72
79
|
/**
|
|
73
80
|
* @description Deploys a Remotion project to a GCP storage bucket to prepare it for rendering on Cloud Run.
|
|
74
81
|
* @link https://remotion.dev/docs/cloudrun/deploysite
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.sitesCreateSubcommand = exports.SITES_CREATE_SUBCOMMAND = void 0;
|
|
4
4
|
const cli_1 = require("@remotion/cli");
|
|
5
5
|
const config_1 = require("@remotion/cli/config");
|
|
6
|
+
const client_1 = require("@remotion/renderer/client");
|
|
6
7
|
const fs_1 = require("fs");
|
|
7
8
|
const remotion_1 = require("remotion");
|
|
8
9
|
const _1 = require(".");
|
|
@@ -87,7 +88,11 @@ const sitesCreateSubcommand = async (args, remotionRoot, logLevel) => {
|
|
|
87
88
|
updateProgress(false);
|
|
88
89
|
const bundleStart = Date.now();
|
|
89
90
|
let uploadStart = Date.now();
|
|
90
|
-
const
|
|
91
|
+
const disableGitSource = client_1.BrowserSafeApis.options.disableGitSourceOption.getValue({
|
|
92
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
93
|
+
}).value;
|
|
94
|
+
const gitSource = cli_1.CliInternals.getGitSource({ remotionRoot, disableGitSource });
|
|
95
|
+
const { serveUrl, siteName, stats } = await (0, deploy_site_1.internalDeploySiteRaw)({
|
|
91
96
|
entryPoint: file,
|
|
92
97
|
siteName: desiredSiteName,
|
|
93
98
|
bucketName,
|
|
@@ -112,8 +117,14 @@ const sitesCreateSubcommand = async (args, remotionRoot, logLevel) => {
|
|
|
112
117
|
},
|
|
113
118
|
enableCaching: config_1.ConfigInternals.getWebpackCaching(),
|
|
114
119
|
webpackOverride: (_b = config_1.ConfigInternals.getWebpackOverrideFn()) !== null && _b !== void 0 ? _b : ((f) => f),
|
|
115
|
-
gitSource
|
|
120
|
+
gitSource,
|
|
121
|
+
bypassBucketNameValidation: true,
|
|
122
|
+
ignoreRegisterRootWarning: true,
|
|
123
|
+
publicDir: null,
|
|
124
|
+
rootDir: remotionRoot,
|
|
116
125
|
},
|
|
126
|
+
indent: false,
|
|
127
|
+
logLevel,
|
|
117
128
|
});
|
|
118
129
|
updateProgress(false);
|
|
119
130
|
const uploadDuration = Date.now() - uploadStart;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/cloudrun"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/cloudrun",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.182",
|
|
7
7
|
"description": "Render Remotion videos on Google Cloud Run",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"@google-cloud/logging": "^11.1.0",
|
|
17
17
|
"google-auth-library": "^8.7.0",
|
|
18
18
|
"zod": "3.22.3",
|
|
19
|
-
"@remotion/bundler": "4.0.
|
|
20
|
-
"@remotion/
|
|
21
|
-
"remotion": "4.0.
|
|
22
|
-
"@remotion/
|
|
19
|
+
"@remotion/bundler": "4.0.182",
|
|
20
|
+
"@remotion/cli": "4.0.182",
|
|
21
|
+
"remotion": "4.0.182",
|
|
22
|
+
"@remotion/renderer": "4.0.182"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/minimist": "1.2.2",
|
|
26
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
26
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.182"
|
|
27
27
|
},
|
|
28
28
|
"exports": {
|
|
29
29
|
"./package.json": "./package.json",
|