Skip to content

Commit

Permalink
Function: fix looking for package.json in parent directory
Browse files Browse the repository at this point in the history
  • Loading branch information
fwang committed Aug 28, 2024
1 parent 334a4e0 commit 9831c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/src/runtime/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export async function build(

if (installPackages.length) {
const src = await findAbove(parsed.dir, "package.json");
if (!src) {
if (src === undefined) {
return {
type: "error" as const,
errors: [
Expand Down

0 comments on commit 9831c84

Please sign in to comment.