Skip to content

Commit d340701

Browse files
committed
fix: update Build Tools to check if config.components.global / config.components.individual exist before trying to auto-run the Icon build task
1 parent 149b057 commit d340701

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/build-tools/tasks/task-collections.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,10 @@ async function build(shouldReturnTime = false) {
199199

200200
// don't try to process / convert SVG icons if the `@bolt/components-icon` package isn't part of the build
201201
if (
202-
config.components.global.includes('@bolt/components-icon') ||
203-
config.components.individual.includes('@bolt/components-icon')
202+
(config.components.global &&
203+
config.components.global.includes('@bolt/components-icon')) ||
204+
(config.components.individual &&
205+
config.components.individual.includes('@bolt/components-icon'))
204206
) {
205207
await iconTasks.build();
206208
}

0 commit comments

Comments
 (0)