Skip to content

fix: use package.json as sole indicator of project existence#652

Open
luo2430 wants to merge 1 commit into
cocos:mainfrom
luo2430:main
Open

fix: use package.json as sole indicator of project existence#652
luo2430 wants to merge 1 commit into
cocos:mainfrom
luo2430:main

Conversation

@luo2430

@luo2430 luo2430 commented Jun 16, 2026

Copy link
Copy Markdown

fix an issue

PS C:\Users\24306\cocos-project> cocos create --project .

Creating project...
Path: C:\Users\24306\cocos-project
Type: 3d
Warning: target path already exists, will try to create inside it.
Error: Failed to create project, project exist
    at Project.create (C:\Users\24306\git_learning\cocos-cli\dist\core\project\script\index.js:60:23)
    at ProjectManager.create (C:\Users\24306\git_learning\cocos-cli\dist\core\project-manager.js:58:30)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async CocosAPI.createProject (C:\Users\24306\git_learning\cocos-cli\dist\api\index.js:110:16)
    at async Command.<anonymous> (C:\Users\24306\git_learning\cocos-cli\dist\commands\create.js:66:28)
✗ Failed to create project.

@luo2430 luo2430 changed the title fix(builder): validate mainBundleCompressionType after defaultsDeep merge | fix: use package.json as sole indicator of project existence fix: use package.json as sole indicator of project existence Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant