create-video 4.0.0-alpha7 → 4.0.0-alpha9

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/init.js CHANGED
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.init = exports.checkGitAvailability = void 0;
7
7
  const chalk_1 = __importDefault(require("chalk"));
8
8
  const execa_1 = __importDefault(require("execa"));
9
+ const node_path_1 = __importDefault(require("node:path"));
9
10
  const add_yarn2_support_1 = require("./add-yarn2-support");
10
11
  const degit_1 = require("./degit");
11
12
  const latest_remotion_version_1 = require("./latest-remotion-version");
@@ -75,7 +76,7 @@ const init = async () => {
75
76
  if (result.type === 'is-git-repo') {
76
77
  const should = await (0, yesno_1.yesOrNo)({
77
78
  defaultValue: false,
78
- question: `You are already inside a Git repo (${result.location}).\nThis might lead to a Git Submodule being created. Do you want to continue? (y/N):`,
79
+ question: `You are already inside a Git repo (${node_path_1.default.resolve(result.location)}).\nThis might lead to a Git Submodule being created. Do you want to continue? (y/N):`,
79
80
  });
80
81
  if (!should) {
81
82
  log_1.Log.error('Aborting.');
@@ -24,5 +24,6 @@ exports.listOfRemotionPackages = [
24
24
  '@remotion/gif',
25
25
  '@remotion/shapes',
26
26
  '@remotion/zod-types',
27
+ '@remotion/tailwind',
27
28
  'remotion',
28
29
  ];
@@ -10,12 +10,12 @@ const init_1 = require("../init");
10
10
  const status = await (0, init_1.checkGitAvailability)(process.cwd(), 'git', [
11
11
  '--version',
12
12
  ]);
13
- (0, vitest_1.expect)(status).toEqual({
14
- type: 'is-git-repo',
15
- location: node_path_1.default.posix
16
- .join(__dirname, '..', '..', '..', '..')
17
- .replace(/\\/g, '/'),
18
- });
13
+ if (status.type !== 'is-git-repo') {
14
+ throw new Error('is git repo');
15
+ }
16
+ (0, vitest_1.expect)(status.location ===
17
+ node_path_1.default.posix.join(__dirname, '..', '..', '..', '..').replace(/\\/g, '/') ||
18
+ status.location === 'D:/a/remotion/remotion').toEqual(true);
19
19
  if (status.type !== 'is-git-repo') {
20
20
  throw new Error('is git repo');
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-video",
3
- "version": "4.0.0-alpha7",
3
+ "version": "4.0.0-alpha9",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -22,7 +22,7 @@
22
22
  "devDependencies": {
23
23
  "@jonny/eslint-config": "3.0.266",
24
24
  "@types/minimist": "1.2.2",
25
- "@types/node": "^16.7.5",
25
+ "@types/node": "18.14.6",
26
26
  "@types/prompts": "^2.0.12",
27
27
  "@types/react": "18.0.26",
28
28
  "@types/tar": "6.1.1",
@@ -31,9 +31,10 @@
31
31
  "prettier": "2.6.2",
32
32
  "prettier-plugin-organize-imports": "^2.3.4",
33
33
  "typescript": "^4.7.0",
34
- "vitest": "0.24.3"
34
+ "vitest": "0.31.1"
35
35
  },
36
36
  "scripts": {
37
+ "formatting": "prettier src --check",
37
38
  "build": "tsc -d",
38
39
  "watch": "tsc -w",
39
40
  "lint": "eslint src --ext ts,tsx",