Skip to content

Commit

Permalink
Stripped watch out, and added a debug comment to allow for easier und…
Browse files Browse the repository at this point in the history
…erstanding
  • Loading branch information
DownUndaDev committed Jul 11, 2024
1 parent ef5e5c9 commit 7de5936
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/nx-esbuild/src/executors/serve/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ export default async function runExecutor(
}
})

const { plugins, external, ...otherOptions } = options
// split it out because we don't want it to build the watch parameter
const { plugins, external, watch, ...otherOptions } = options

await esbuild.build({
bundle: true,
Expand Down
1 change: 1 addition & 0 deletions libs/nx-esbuild/src/executors/serve/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ export interface ServeExecutorSchema extends Omit<BuildOptions, 'plugins'> {
plugins: Array<{ package: string; args: any }>
serveCommand?: string
serveCommandCwd?: string
watch?: boolean
}

0 comments on commit 7de5936

Please sign in to comment.