Update src/cli.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Alexa Amundson
2025-11-24 02:46:13 -06:00
committed by GitHub
parent 7d90613fb3
commit 7ccd617124

View File

@@ -33,8 +33,10 @@ function main() {
process.stdout.write(usage()) process.stdout.write(usage())
return return
} }
if (!fs.existsSync(path.join(process.cwd(), 'orchestra.yml'))) { if (command === 'lint' || command === 'render') {
throw new Error('orchestra.yml not found in current directory') if (!fs.existsSync(path.join(process.cwd(), 'orchestra.yml'))) {
throw new Error('orchestra.yml not found in current directory')
}
} }
if (command === 'lint') { if (command === 'lint') {
lint(manifestPath) lint(manifestPath)