Skip to content

Commit 0609b1b

Browse files
authored
fix: fix false positive of hasProjectNpm (#5264)
1 parent 137e7a7 commit 0609b1b

File tree

1 file changed

+1
-1
lines changed
  • packages/@vue/cli-shared-utils/lib

1 file changed

+1
-1
lines changed

packages/@vue/cli-shared-utils/lib/env.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const _npmProjects = new LRU({
136136
})
137137
exports.hasProjectNpm = (cwd) => {
138138
if (_npmProjects.has(cwd)) {
139-
return true
139+
return _npmProjects.get(cwd)
140140
}
141141

142142
const lockFile = path.join(cwd, 'package-lock.json')

0 commit comments

Comments
 (0)