1
0
Fork 0

fix(core): Include parts without dependencies in output

This commit is contained in:
Joost De Cock 2022-09-01 19:35:20 +02:00
parent 1812ed6be9
commit e5f398bcab

View file

@ -305,7 +305,12 @@ Pattern.prototype.draft = function () {
}
this.runHooks('preDraft')
for (const partName of this.config.draftOrder) {
// Don't forget about parts without any dependencies
const allParts = [...new Set([
...this.config.draftOrder,
...Object.keys(this.__parts)
])]
for (const partName of allParts) {
// Create parts
this.raise.debug(`Creating part \`${partName}\``)
this.parts[partName] = new this.Part(partName)