create-video 4.0.363 → 4.0.365

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/package.json CHANGED
@@ -3,17 +3,12 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/create-video"
4
4
  },
5
5
  "name": "create-video",
6
- "version": "4.0.363",
6
+ "version": "4.0.365",
7
7
  "description": "Create a new Remotion project",
8
8
  "main": "dist/index.js",
9
9
  "bin": {
10
10
  "create-video": "bin.js"
11
11
  },
12
- "files": [
13
- "dist",
14
- "bin.js",
15
- "cli.js"
16
- ],
17
12
  "scripts": {
18
13
  "formatting": "prettier --experimental-cli src --check",
19
14
  "lint": "eslint src",
@@ -34,7 +29,7 @@
34
29
  "@types/prompts": "^2.0.12",
35
30
  "@types/tar": "6.1.1",
36
31
  "react": "19.0.0",
37
- "@remotion/eslint-config-internal": "4.0.363",
32
+ "@remotion/eslint-config-internal": "4.0.365",
38
33
  "eslint": "9.19.0"
39
34
  },
40
35
  "exports": {
@@ -1 +0,0 @@
1
- export {};
@@ -1,29 +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
- const bun_test_1 = require("bun:test");
7
- const node_path_1 = __importDefault(require("node:path"));
8
- const init_1 = require("../init");
9
- (0, bun_test_1.test)('Get git status', async () => {
10
- const status = await (0, init_1.checkGitAvailability)(process.cwd(), 'git', [
11
- '--version',
12
- ]);
13
- if (status.type !== 'is-git-repo') {
14
- throw new Error('is git repo');
15
- }
16
- (0, bun_test_1.expect)(status.location ===
17
- node_path_1.default.posix.join(__dirname, '..', '..', '..', '..').replace(/\\/g, '/') ||
18
- status.location ===
19
- node_path_1.default.join(__dirname, '..', '..', '..', '..').replace(/\\/g, '/') ||
20
- status.location === 'D:/a/remotion/remotion' ||
21
- status.location === '/Users/runner/work/remotion/remotion').toEqual(true);
22
- if (status.type !== 'is-git-repo') {
23
- throw new Error('is git repo');
24
- }
25
- const status2 = await (0, init_1.checkGitAvailability)(node_path_1.default.dirname(status.location), 'git', ['--version']);
26
- (0, bun_test_1.expect)(status2).toEqual({ type: 'no-git-repo' });
27
- const status3 = await (0, init_1.checkGitAvailability)(node_path_1.default.dirname(status.location), 'wronggitbinary', ['--version']);
28
- (0, bun_test_1.expect)(status3).toEqual({ type: 'git-not-installed' });
29
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,59 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const bun_test_1 = require("bun:test");
4
- const patch_package_json_1 = require("../patch-package-json");
5
- const packageManagers = ['npm', 'pnpm', 'yarn', 'bun'];
6
- for (const packageManager of packageManagers) {
7
- (0, bun_test_1.test)(`Using ${packageManager} package manager provides the correct "packageManager" entry in package.json`, () => {
8
- const latestRemotionVersion = '1.0.0';
9
- const packageJson = {
10
- name: 'my-video',
11
- version: '1.0.0',
12
- description: 'My Remotion video',
13
- scripts: {
14
- start: 'remotion studio',
15
- },
16
- dependencies: {
17
- '@remotion/cli': 'stale-remotion-version',
18
- react: '^18.0.0',
19
- remotion: 'stale-remotion-version',
20
- },
21
- devDependencies: {
22
- '@types/react': '^18.0.6',
23
- '@remotion/eslint-config': '^2.0.0',
24
- },
25
- };
26
- let newPackageJson = null;
27
- (0, patch_package_json_1.patchPackageJson)({
28
- projectRoot: '/path/to/project',
29
- latestRemotionVersion,
30
- packageManager,
31
- projectName: 'my-video',
32
- addTailwind: true,
33
- }, {
34
- getPackageJson: () => JSON.stringify(packageJson),
35
- setPackageJson: (_, content) => {
36
- newPackageJson = JSON.parse(content);
37
- },
38
- });
39
- const expectedStartScript = packageManager === 'bun' ? 'remotionb studio' : 'remotion studio';
40
- (0, bun_test_1.expect)(newPackageJson).toEqual({
41
- ...packageJson,
42
- scripts: {
43
- start: expectedStartScript,
44
- },
45
- dependencies: {
46
- ...packageJson.dependencies,
47
- '@remotion/cli': latestRemotionVersion,
48
- '@remotion/tailwind-v4': latestRemotionVersion,
49
- tailwindcss: '4.0.0',
50
- remotion: latestRemotionVersion,
51
- },
52
- sideEffects: ['*.css'],
53
- devDependencies: {
54
- ...packageJson.devDependencies,
55
- '@remotion/eslint-config': latestRemotionVersion,
56
- },
57
- });
58
- });
59
- }