create-video 3.3.36 → 3.3.37

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.
Files changed (2) hide show
  1. package/dist/init.js +9 -3
  2. package/package.json +2 -2
package/dist/init.js CHANGED
@@ -16,6 +16,7 @@ const patch_readme_1 = require("./patch-readme");
16
16
  const pkg_managers_1 = require("./pkg-managers");
17
17
  const resolve_project_root_1 = require("./resolve-project-root");
18
18
  const select_template_1 = require("./select-template");
19
+ const yesno_1 = require("./yesno");
19
20
  const binaryExists = (name) => {
20
21
  const isWin = os_1.default.platform() === 'win32';
21
22
  const where = isWin ? 'where' : 'which';
@@ -72,9 +73,14 @@ const init = async () => {
72
73
  process.exit(1);
73
74
  }
74
75
  if (result.type === 'is-git-repo') {
75
- log_1.Log.error(`You are already inside a Git repo (${result.location}).`);
76
- log_1.Log.error('Create a Remotion project somewhere else.');
77
- process.exit(1);
76
+ const should = await (0, yesno_1.yesOrNo)({
77
+ 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
+ });
80
+ if (!should) {
81
+ log_1.Log.error('Aborting.');
82
+ process.exit(1);
83
+ }
78
84
  }
79
85
  const [projectRoot, folderName] = await (0, resolve_project_root_1.resolveProjectRoot)();
80
86
  const latestRemotionVersionPromise = (0, latest_remotion_version_1.getLatestRemotionVersion)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-video",
3
- "version": "3.3.36",
3
+ "version": "3.3.37",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -39,5 +39,5 @@
39
39
  "typescript": "^4.7.0",
40
40
  "vitest": "0.24.3"
41
41
  },
42
- "gitHead": "623bf1e883e7b26b9d02458037c930ccbe8857e4"
42
+ "gitHead": "ead6bdacc14a9953cae738159c49bf3daf09e9b0"
43
43
  }