Skip to content

Commit

Permalink
relative paths in $(NODEREDMCU)/node_types.json
Browse files Browse the repository at this point in the history
  • Loading branch information
phoddie committed Jul 7, 2023
1 parent c4c1eb9 commit c8686e2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/mcmanifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -1866,8 +1866,12 @@ export class Tool extends TOOL {
flows.forEach((node, i) => {
if (node.moddable_manifest)
this.parseManifest(source, {...node.moddable_manifest, directory: this.currentDirectory});
else if (nodeTypes[node.type])
this.parseManifest(source, {include: nodeTypes[node.type], directory: this.resolveVariable("$(NODEREDMCU)")});
else if (nodeTypes[node.type]) {
const save = this.currentDirectory;
this.currentDirectory = this.resolveVariable("$(NODEREDMCU)");
this.parseManifest(source, {include: nodeTypes[node.type], directory: this.currentDirectory});
this.currentDirectory = save;
}
});
}
});
Expand Down

0 comments on commit c8686e2

Please sign in to comment.