rr
This commit is contained in:
@@ -4,8 +4,10 @@ const config = require("../config");
|
||||
class File {
|
||||
|
||||
createdService(ServiceName, ServiceMethods) {
|
||||
let fullPath = `${config.outPutServicePath}\\${ServiceName}.service.ts`
|
||||
if (!existsSync(fullPath)) {
|
||||
console.log("ServiceName: ", ServiceName);
|
||||
console.log("ServiceMethods: ", ServiceMethods);
|
||||
let fullPath = `${config.outPutServicePath}/${ServiceName}.service.ts`
|
||||
// if (!existsSync(fullPath)) {
|
||||
let mArray = Array.from(ServiceMethods, ([name, value]) => ({ name, value }));
|
||||
writeFileSync(fullPath, this.stripIndent`
|
||||
// @ts-nocheck
|
||||
@@ -29,7 +31,7 @@ class File {
|
||||
}
|
||||
}
|
||||
`)
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user