nest-utilities-cli
Advanced tools
Comparing version 1.0.14 to 1.0.15
{ | ||
"name": "nest-utilities-cli", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const string_utils_1 = require("../utils/string.utils"); | ||
exports.controllerTemplate = (name, schemaPath, servicePath) => `\ | ||
@@ -24,3 +25,3 @@ import { Controller } from "@nestjs/common"; | ||
.replace(/{name}/g, name) | ||
.replace(/{servicePath}/g, servicePath) | ||
.replace(/{schemaPath}/g, schemaPath); | ||
.replace(/{servicePath}/g, string_utils_1.StringUtils.pathToImport(servicePath)) | ||
.replace(/{schemaPath}/g, string_utils_1.StringUtils.pathToImport(schemaPath)); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const string_utils_1 = require("../utils/string.utils"); | ||
exports.schemaTemplate = (name, interfacePath) => `\ | ||
@@ -23,2 +24,2 @@ import mongoose, { Document } from "mongoose"; | ||
.replace(/{name}/g, name) | ||
.replace(/{interfacePath}/g, interfacePath); | ||
.replace(/{interfacePath}/g, string_utils_1.StringUtils.pathToImport(interfacePath)); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const string_utils_1 = require("../utils/string.utils"); | ||
exports.serviceTemplate = (name, schemaPath) => `\ | ||
@@ -33,2 +34,2 @@ import { Injectable } from "@nestjs/common"; | ||
.replace(/{name}/g, name) | ||
.replace(/{schemaPath}/g, schemaPath); | ||
.replace(/{schemaPath}/g, string_utils_1.StringUtils.pathToImport(schemaPath)); |
17303
15
312