Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@
})
declare packageManager?: 'npm' | 'pnpm' | 'yarn' | 'yarn@berry' | 'bun'

/**
* Define custom tsconfig path to be used during the build process
*/
@flags.string({ description: 'Define the tsconfig path' })
declare tsconfig?: string

/**
* Log a development dependency is missing
*
Expand Down Expand Up @@ -112,7 +118,9 @@
* Bundle project for production
*/
const stopOnError = this.ignoreTsErrors === true ? false : true
const builtSuccessfully = await bundler.bundle(stopOnError, this.packageManager)
const builtSuccessfully = await bundler.bundle(stopOnError, this.packageManager, {

Check failure on line 121 in commands/build.ts

View workflow job for this annotation

GitHub Actions / typecheck / typecheck (lts/krypton)

Expected 0-2 arguments, but got 3.

Check failure on line 121 in commands/build.ts

View workflow job for this annotation

GitHub Actions / typecheck / typecheck (latest)

Expected 0-2 arguments, but got 3.
tsconfigPath: this.tsconfig,
})
if (!builtSuccessfully) {
this.exitCode = 1
}
Expand Down
Loading