From 292544b354887290eecef0b988db7ae1d34e8db8 Mon Sep 17 00:00:00 2001 From: kevin olson Date: Sun, 24 Apr 2022 21:06:20 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20accomodate=20for=20nuxt=20not=20?= =?UTF-8?q?in=20devDep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/deploytasks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/deploytasks.ts b/src/lib/deploytasks.ts index f95c692..aedd2d6 100644 --- a/src/lib/deploytasks.ts +++ b/src/lib/deploytasks.ts @@ -216,7 +216,7 @@ export default class DeployTasks { // check if our setup is using nuxt3 or nuxt-bridge - in that case compile with nitro async checkNitro(): Promise { const pkg = JSON.parse(fs.readFileSync('package.json').toString()) as Record - if (pkg.devDependencies && (pkg.devDependencies.nuxt3 || pkg.devDependencies.nuxt.includes('^3'))) return true + if (pkg.devDependencies && (pkg.devDependencies.nuxt3 || pkg?.devDependencies?.nuxt?.includes('^3'))) return true return Boolean(pkg.devDependencies && pkg.devDependencies['@nuxt/bridge']) }