@remotion/cli 4.0.103 → 4.0.104
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/get-github-repository.d.ts +1 -1
- package/dist/get-github-repository.js +19 -0
- package/dist/upgrade.js +2 -1
- package/package.json +10 -10
|
@@ -11,4 +11,4 @@ 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: string | null) => GitSource | null;
|
|
@@ -92,7 +92,26 @@ const getGifRef = () => {
|
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
94
|
exports.getGifRef = getGifRef;
|
|
95
|
+
const getFromEnvVariables = () => {
|
|
96
|
+
const { VERCEL_GIT_PROVIDER, VERCEL_GIT_COMMIT_SHA, VERCEL_GIT_REPO_OWNER, VERCEL_GIT_REPO_SLUG, } = process.env;
|
|
97
|
+
if (VERCEL_GIT_COMMIT_SHA &&
|
|
98
|
+
VERCEL_GIT_REPO_OWNER &&
|
|
99
|
+
VERCEL_GIT_REPO_SLUG &&
|
|
100
|
+
VERCEL_GIT_PROVIDER === 'github') {
|
|
101
|
+
return {
|
|
102
|
+
name: VERCEL_GIT_REPO_SLUG,
|
|
103
|
+
org: VERCEL_GIT_REPO_OWNER,
|
|
104
|
+
ref: VERCEL_GIT_COMMIT_SHA,
|
|
105
|
+
type: 'github',
|
|
106
|
+
relativeFromGitRoot: '',
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
return null;
|
|
110
|
+
};
|
|
95
111
|
const getGitSource = (remotionRoot) => {
|
|
112
|
+
if (remotionRoot === null) {
|
|
113
|
+
return getFromEnvVariables();
|
|
114
|
+
}
|
|
96
115
|
const ref = (0, exports.getGifRef)();
|
|
97
116
|
if (!ref) {
|
|
98
117
|
return null;
|
package/dist/upgrade.js
CHANGED
|
@@ -13,7 +13,7 @@ const log_1 = require("./log");
|
|
|
13
13
|
const getUpgradeCommand = ({ manager, packages, version, }) => {
|
|
14
14
|
const pkgList = packages.map((p) => `${p}@${version}`);
|
|
15
15
|
const commands = {
|
|
16
|
-
npm: ['i', '--save-exact', ...pkgList],
|
|
16
|
+
npm: ['i', '--save-exact', '--no-fund', '--no-audit', ...pkgList],
|
|
17
17
|
pnpm: ['i', '--save-exact', ...pkgList],
|
|
18
18
|
yarn: ['add', '--exact', ...pkgList],
|
|
19
19
|
bun: ['i', ...pkgList],
|
|
@@ -52,6 +52,7 @@ const upgrade = async (remotionRoot, packageManager, version) => {
|
|
|
52
52
|
packages: toUpgrade,
|
|
53
53
|
version: targetVersion,
|
|
54
54
|
}), {
|
|
55
|
+
env: { ...process.env, ADBLOCK: '1', DISABLE_OPENCOLLECTIVE: '1' },
|
|
55
56
|
stdio: 'inherit',
|
|
56
57
|
});
|
|
57
58
|
if (renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'info')) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.104",
|
|
4
4
|
"description": "CLI for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"dotenv": "9.0.2",
|
|
32
32
|
"minimist": "1.2.6",
|
|
33
33
|
"prompts": "2.4.2",
|
|
34
|
-
"@remotion/bundler": "4.0.
|
|
35
|
-
"@remotion/media-utils": "4.0.
|
|
36
|
-
"@remotion/
|
|
37
|
-
"@remotion/
|
|
38
|
-
"remotion": "4.0.
|
|
39
|
-
"@remotion/
|
|
40
|
-
"
|
|
34
|
+
"@remotion/bundler": "4.0.104",
|
|
35
|
+
"@remotion/media-utils": "4.0.104",
|
|
36
|
+
"@remotion/player": "4.0.104",
|
|
37
|
+
"@remotion/renderer": "4.0.104",
|
|
38
|
+
"@remotion/studio-server": "4.0.104",
|
|
39
|
+
"@remotion/studio": "4.0.104",
|
|
40
|
+
"remotion": "4.0.104"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": ">=16.8.0",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"react-dom": "18.2.0",
|
|
63
63
|
"vitest": "0.31.1",
|
|
64
64
|
"zod": "^3.22.3",
|
|
65
|
-
"@remotion/
|
|
66
|
-
"@remotion/
|
|
65
|
+
"@remotion/zod-types": "4.0.104",
|
|
66
|
+
"@remotion/tailwind": "4.0.104"
|
|
67
67
|
},
|
|
68
68
|
"keywords": [
|
|
69
69
|
"remotion",
|