Skip to content

Commit

Permalink
fix: can't find tosetup.config
Browse files Browse the repository at this point in the history
  • Loading branch information
a145789 authored Jan 3, 2023
1 parent 86215c7 commit a5183f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ async function setup() {
);

if (!pathNames.length) {
const configPath = findUpSync(CONFIG_FILE_NAME);
const configPath = findUpSync([
`${CONFIG_FILE_NAME}.js`,
`${CONFIG_FILE_NAME}.ts`,
]);
if (!configPath) {
output.error(
`Please enter a file path or use a ${CONFIG_FILE_NAME} file.`,
Expand Down

0 comments on commit a5183f0

Please sign in to comment.