Skip to content

Commit

Permalink
πŸ› accomodate for nuxt not in devDep
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Apr 25, 2022
1 parent b66054c commit 292544b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/deploytasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<boolean> {
const pkg = JSON.parse(fs.readFileSync('package.json').toString()) as Record<string, any>
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'])
}

Expand Down

0 comments on commit 292544b

Please sign in to comment.