diff --git a/bin/cli.js b/bin/cli.js index d6106e14..a1bffe69 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -55,6 +55,11 @@ const showUsage = () => { ? path.resolve(cwd, args.config) : await findUp('playroom.config.js', { cwd }); + if (!configPath) { + console.error('Please add a playroom.config.js to the root of your project.'); + process.exit(1); + } + const config = require(configPath); const playroom = lib({