From a1d5a47cc670edf2827798752e8c6ffed6bc0967 Mon Sep 17 00:00:00 2001 From: Elizabeth Craig Date: Thu, 14 Mar 2024 13:09:53 -0700 Subject: [PATCH] remove unnecessary check --- packages/just-task/src/config.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/just-task/src/config.ts b/packages/just-task/src/config.ts index 6917581a..fcc216f6 100644 --- a/packages/just-task/src/config.ts +++ b/packages/just-task/src/config.ts @@ -1,6 +1,4 @@ -import * as fs from 'fs'; import * as path from 'path'; - import { argv } from './option'; import { resolve } from './resolve'; import { mark, logger } from 'just-task-logger'; @@ -44,11 +42,6 @@ export async function readConfig(): Promise<{ [key: string]: TaskFunction } | vo process.exit(1); } - if (!fs.existsSync(configFile)) { - logger.error(`The specified config file "${configFile}" doesn't exist or couldn't be resolved.`); - process.exit(1); - } - const ext = path.extname(configFile).toLowerCase(); if (ext === '.ts') {