Skip to content

Commit 1739791

Browse files
ci(release): use an own-property check for the executable target
Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent 9b10472 commit 1739791

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/server/vite.config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const SEA_TARGETS = {
4848
"win-x64": { platform: "win", arch: "x64" },
4949
} as const;
5050
const packExecutableTarget = process.env.T3CODE_PACK_EXE_TARGET?.trim();
51-
if (packExecutableTarget && !(packExecutableTarget in SEA_TARGETS)) {
51+
if (packExecutableTarget && !Object.hasOwn(SEA_TARGETS, packExecutableTarget)) {
5252
throw new Error(
5353
`T3CODE_PACK_EXE_TARGET must be one of ${Object.keys(SEA_TARGETS).join(", ")}, got "${packExecutableTarget}".`,
5454
);

0 commit comments

Comments
 (0)