chore: variables typo (#4658)

* fix: variables

---------

Co-authored-by: afe1 <yunfei.zhu@nwowtec.com>
pull/48/MERGE
afe1 2024-10-17 13:57:13 +08:00 committed by GitHub
parent a0fbe0b21a
commit 719c9a8f2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ function defineConfig(
let projectType = type;
// 根据包是否存在 index.html,自动判断类型
if (type === 'auto') {
if (projectType === 'auto') {
const htmlPath = join(process.cwd(), 'index.html');
projectType = existsSync(htmlPath) ? 'application' : 'library';
}