Skip to content

Commit

Permalink
πŸ› accomodate hard-coded nuxt3
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Jun 7, 2023
1 parent d0f3bb1 commit feaee66
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/lib/deploytasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,13 @@ exports.handler = async (event, context) => {
// 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') ||
pkg?.devDependencies?.nuxt?.includes('3')
)
) return true
return Boolean(pkg.devDependencies && pkg.devDependencies['@nuxt/bridge'])
}

Expand Down

0 comments on commit feaee66

Please sign in to comment.