Skip to content

Commit 292544b

Browse files
committed
🐛 accomodate for nuxt not in devDep
1 parent b66054c commit 292544b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/deploytasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export default class DeployTasks {
216216
// check if our setup is using nuxt3 or nuxt-bridge - in that case compile with nitro
217217
async checkNitro(): Promise<boolean> {
218218
const pkg = JSON.parse(fs.readFileSync('package.json').toString()) as Record<string, any>
219-
if (pkg.devDependencies && (pkg.devDependencies.nuxt3 || pkg.devDependencies.nuxt.includes('^3'))) return true
219+
if (pkg.devDependencies && (pkg.devDependencies.nuxt3 || pkg?.devDependencies?.nuxt?.includes('^3'))) return true
220220
return Boolean(pkg.devDependencies && pkg.devDependencies['@nuxt/bridge'])
221221
}
222222

0 commit comments

Comments
 (0)