diff --git a/src/core/project/script/index.ts b/src/core/project/script/index.ts index a98117a93..173d793a8 100644 --- a/src/core/project/script/index.ts +++ b/src/core/project/script/index.ts @@ -147,7 +147,7 @@ export class Project implements IProject { public static async create(projectPath: string, type: ProjectType = '3d'): Promise { try { const packageJSONPath = Project.getPackageJsonPath(projectPath); - if (existsSync(projectPath) || existsSync(packageJSONPath)) { + if (existsSync(packageJSONPath)) { throw new Error('Failed to create project, project exist'); } await mkdir(projectPath, { recursive: true });