@expressots/cli 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -195,7 +195,7 @@ const createTemplate = async ({ schematic, path: target, method, }) => {
195
195
  controllerPath += `${path.split("/")[1]}/${file.slice(0, file.lastIndexOf('.'))}`;
196
196
  }
197
197
  else {
198
- const segments = path.split("/");
198
+ const segments = path.split("/").filter((segment) => segment !== "");
199
199
  controllerPath += `${segments[segments.length - 1]}/${file.slice(0, file.lastIndexOf('.'))}`;
200
200
  }
201
201
  if (moduleExist) {
@@ -1,5 +1,5 @@
1
1
  import { CreateModule } from "@expressots/core";
2
- import { {{className}}Controller } from "./{{{path}}}";
2
+ import { {{className}}Controller } from "{{{path}}}";
3
3
 
4
4
  const {{moduleName}}Module = CreateModule([{{className}}Controller]);
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expressots/cli",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "Expressots CLI - modern, fast, lightweight nodejs web framework (@cli)",
5
5
  "author": "Richard Zampieri",
6
6
  "license": "MIT",