Skip to content

Commit

Permalink
fix(packagePacker): Fixed template parser for drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
jsantos98 committed Jan 25, 2024
1 parent 68d0b0d commit e96bb38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions generators/packagePacker/packagePacker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,13 @@ export class PackagePacker {
const destination = path.join(temp, "package.json");

switch (configuration.type) {
case ComponentType.Component: container.get<DriverTemplatesProcessor>(TYPES.Processors.DriverTemplates).process(configuration.templates, destination);
case ComponentType.Component:
container.get<DriverTemplatesProcessor>(TYPES.Processors.DriverTemplates).process(configuration.templates, destination);
break;
case ComponentType.TasksPackage:
case ComponentType.TasksLibrary: container.get<LibraryTemplatesProcessor>(TYPES.Processors.LibraryTemplates).process(configuration.templates, destination);
case ComponentType.TasksLibrary:
container.get<LibraryTemplatesProcessor>(TYPES.Processors.LibraryTemplates).process(configuration.templates, destination);
break;
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@criticalmanufacturing/generator-iot",
"version": "10.2.5",
"version": "10.2.6",
"description": "Connect IoT Scaffolding",
"files": [
"generators/*.js",
Expand Down

0 comments on commit e96bb38

Please sign in to comment.