Skip to content

Commit

Permalink
Further cleaning up on the type checking of the nx-esbuild package ex…
Browse files Browse the repository at this point in the history
…ecutor
  • Loading branch information
DownUndaDev committed Jul 11, 2024
1 parent 7de5936 commit 6709ea8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libs/nx-esbuild/src/executors/package/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ export default async function runExecutor(
if (!Array.isArray(entryPoints)) {
throw new Error('Expecting entryPoints to be an array')
}
// Entry point to verify that we're ONLY dealing with a string[]
if (
entryPoints.filter((point) => !(typeof point === 'string')).length > 0
) {
throw new Error('Expecting entryPoints to be a string array')
}

const entryPointArray = entryPoints as string[]
const result = await buildExecutor(options, context)
Expand Down

0 comments on commit 6709ea8

Please sign in to comment.