create-video
Advanced tools
Comparing version 4.0.226 to 4.0.227
@@ -53,3 +53,2 @@ "use strict"; | ||
case 'vscode': | ||
// eslint-disable-next-line no-mixed-operators | ||
return version.major > 1 || | ||
@@ -56,0 +55,0 @@ (version.major === 1 && version.minor >= 72) |
@@ -29,3 +29,3 @@ "use strict"; | ||
} | ||
catch (err) { | ||
catch (_a) { | ||
return false; | ||
@@ -44,3 +44,3 @@ } | ||
} | ||
catch (e) { | ||
catch (_a) { | ||
return { | ||
@@ -92,3 +92,5 @@ type: 'no-git-repo', | ||
const selectedTemplate = await (0, select_template_1.selectTemplate)(); | ||
const shouldOverrideTailwind = selectedTemplate ? await (0, ask_tailwind_1.askTailwind)() : false; | ||
const shouldOverrideTailwind = selectedTemplate.allowEnableTailwind | ||
? await (0, ask_tailwind_1.askTailwind)() | ||
: false; | ||
const pkgManager = (0, pkg_managers_1.selectPackageManager)(); | ||
@@ -95,0 +97,0 @@ const pkgManagerVersion = await (0, pkg_managers_1.getPackageManagerVersionOrNull)(pkgManager); |
@@ -39,2 +39,3 @@ "use strict"; | ||
const node_util_1 = __importDefault(require("node:util")); | ||
const log_1 = require("./log"); | ||
const execProm = node_util_1.default.promisify(node_child_process_1.exec); | ||
@@ -60,2 +61,3 @@ const isVsCodeDerivative = (editor) => { | ||
} | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
const editorNames = [ | ||
@@ -369,3 +371,3 @@ 'atom', | ||
} | ||
catch (error) { | ||
catch (_a) { | ||
// Ignore... | ||
@@ -428,10 +430,10 @@ } | ||
!WINDOWS_FILE_NAME_WHITELIST.test(fileName.trim())) { | ||
console.log(); | ||
console.log('Could not open ' + node_path_1.default.basename(fileName) + ' in the editor.'); | ||
console.log(); | ||
console.log('When running on Windows, file names are checked against a whitelist ' + | ||
log_1.Log.info(); | ||
log_1.Log.info('Could not open ' + node_path_1.default.basename(fileName) + ' in the editor.'); | ||
log_1.Log.info(); | ||
log_1.Log.info('When running on Windows, file names are checked against a whitelist ' + | ||
'to protect against remote code execution attacks. File names may ' + | ||
'consist only of alphanumeric characters (all languages), periods, ' + | ||
'dashes, slashes, and underscores.'); | ||
console.log(); | ||
log_1.Log.info(); | ||
return false; | ||
@@ -478,9 +480,9 @@ } | ||
if (errorCode) { | ||
console.log(`Process exited with code ${errorCode}`); | ||
log_1.Log.info(`Process exited with code ${errorCode}`); | ||
} | ||
}); | ||
_childProcess.on('error', (error) => { | ||
console.log('Error opening file in editor', fileName, error.message); | ||
log_1.Log.info('Error opening file in editor', fileName, error.message); | ||
}); | ||
return true; | ||
} |
@@ -19,3 +19,3 @@ "use strict"; | ||
} | ||
if (c.startsWith('npm start')) { | ||
if (c.startsWith('npm run dev')) { | ||
return (0, pkg_managers_1.getDevCommand)(packageManager, template); | ||
@@ -22,0 +22,0 @@ } |
@@ -9,2 +9,3 @@ "use strict"; | ||
const node_path_1 = __importDefault(require("node:path")); | ||
const log_1 = require("./log"); | ||
const shouldUseBun = () => { | ||
@@ -34,3 +35,3 @@ var _a, _b; | ||
} | ||
catch (err) { | ||
catch (_a) { | ||
return false; | ||
@@ -69,12 +70,12 @@ } | ||
if (manager === 'npm') { | ||
return `npm start`; | ||
return `npm run dev`; | ||
} | ||
if (manager === 'yarn') { | ||
return `yarn start`; | ||
return `yarn dev`; | ||
} | ||
if (manager === 'pnpm') { | ||
return `pnpm start`; | ||
return `pnpm run dev`; | ||
} | ||
if (manager === 'bun') { | ||
return `bun start`; | ||
return `bun run dev`; | ||
} | ||
@@ -146,4 +147,4 @@ }; | ||
} | ||
catch (err) { | ||
console.warn(`Could not determine the version of ${manager}.`); | ||
catch (_a) { | ||
log_1.Log.warn(`Could not determine the version of ${manager}.`); | ||
return null; | ||
@@ -150,0 +151,0 @@ } |
@@ -32,3 +32,2 @@ "use strict"; | ||
// Without this, the value will be `0` instead of a string. | ||
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain | ||
this.value = (this.choices[this.cursor] || {}).value; | ||
@@ -38,3 +37,2 @@ // Support up arrow and `k` key -- no looping | ||
let next = this.cursor; | ||
// eslint-disable-next-line no-constant-condition | ||
while (true) { | ||
@@ -59,3 +57,2 @@ if (next <= 0) | ||
let next = this.cursor; | ||
// eslint-disable-next-line no-constant-condition | ||
while (true) { | ||
@@ -62,0 +59,0 @@ if (next >= this.choices.length - 1) |
@@ -6,3 +6,3 @@ { | ||
"name": "create-video", | ||
"version": "4.0.226", | ||
"version": "4.0.227", | ||
"description": "Create a new Remotion project", | ||
@@ -29,3 +29,5 @@ "main": "dist/index.js", | ||
"@types/tar": "6.1.1", | ||
"react": "18.3.1" | ||
"react": "18.3.1", | ||
"eslint": "9.14.0", | ||
"@remotion/eslint-config-internal": "4.0.227" | ||
}, | ||
@@ -35,5 +37,6 @@ "homepage": "https://remotion.dev/templates", | ||
"formatting": "prettier src --check", | ||
"lint": "eslint src --ext ts,tsx", | ||
"test": "bun test src" | ||
"lint": "eslint src", | ||
"test": "bun test src", | ||
"make": "tsc -d" | ||
} | ||
} |
2262
100676
6