Skip to content

Commit a5183f0

Browse files
authored
fix: can't find tosetup.config
1 parent 86215c7 commit a5183f0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/setup.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ async function setup() {
4141
);
4242

4343
if (!pathNames.length) {
44-
const configPath = findUpSync(CONFIG_FILE_NAME);
44+
const configPath = findUpSync([
45+
`${CONFIG_FILE_NAME}.js`,
46+
`${CONFIG_FILE_NAME}.ts`,
47+
]);
4548
if (!configPath) {
4649
output.error(
4750
`Please enter a file path or use a ${CONFIG_FILE_NAME} file.`,

0 commit comments

Comments
 (0)