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