Skip to content

Commit

Permalink
♻️ let the packager run the generate
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Aug 29, 2023
1 parent 5c9f9d3 commit 18556b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/deploytasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ exports.handler = async (event, context) => {
}

async yarn(type: string, task: ListrTaskWrapper<any, any>) {
this.lock()
if (type === 'production') {
task.title = `Install production dependencies with ${chalk.bold(this.packager)}`
await this.deployment.update('YARN_PROD')
Expand Down Expand Up @@ -400,7 +401,7 @@ exports.handler = async (event, context) => {

async generate() {
await this.deployment.update('NUXT_GENERATE')
await execa('node_modules/.bin/nuxt', ['generate'])
await execa(this.packager, ['run', 'generate'])
}

async envPrepare() {
Expand Down

0 comments on commit 18556b0

Please sign in to comment.