From b74c3aef3aa00262bef79f0521946d7102f222ff Mon Sep 17 00:00:00 2001 From: Jakob Scheid Date: Wed, 29 Jul 2026 21:27:48 +0200 Subject: [PATCH] fix(build): add check whether artifact has options --- build/utils/artifact.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/utils/artifact.js b/build/utils/artifact.js index 8575fed..d3399ce 100644 --- a/build/utils/artifact.js +++ b/build/utils/artifact.js @@ -21,6 +21,7 @@ import { dirname, join } from 'node:path'; const validateArtifact = function validateArtifact (artifact) { if (typeof artifact.path !== 'string') return false; if (artifact.type === 'text') { + if (!artifact.options) return false; return ( typeof artifact.options.content === 'string' && ( @@ -29,6 +30,7 @@ const validateArtifact = function validateArtifact (artifact) { ) ); } else if (artifact.type === 'copy') { + if (!artifact.options) return false; return typeof artifact.options.source === 'string'; } };