From b058bb3ae0cf07e7574604ee6d1634989e02adbd Mon Sep 17 00:00:00 2001 From: Ramon Brullo Date: Wed, 20 Mar 2024 10:14:39 +0100 Subject: [PATCH] feat: remove manifest-path check from env Currently we check whether the manifest path exists during `parseEnv`. This is really not necessary as all cmd functions have error handling logic in-case the manifest is missing. --- src/utils/env.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/utils/env.ts b/src/utils/env.ts index 44d25932..80380abd 100644 --- a/src/utils/env.ts +++ b/src/utils/env.ts @@ -17,7 +17,6 @@ import { ProjectVersionLoadError, tryLoadProjectVersion, } from "./project-version-io"; -import { manifestPathFor } from "./project-manifest-io"; import { NotFoundError } from "./file-io"; export type Env = Readonly<{ @@ -142,16 +141,6 @@ export const parseEnv = async function ( } const cwd = cwdResult.value; - // manifest path - const manifestPath = manifestPathFor(cwd); - if (!fs.existsSync(manifestPath)) { - log.error( - "manifest", - `can not locate manifest.json at path ${manifestPath}` - ); - return Err(new NotFoundError(manifestPath)); - } - // editor version const projectVersionLoadResult = await tryLoadProjectVersion(cwd); if (projectVersionLoadResult.isErr()) {