definition-generator-framework 1.12.7 → 1.12.9
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.
- package/dist/framework/kernel.js +4 -3
- package/package.json +1 -1
package/dist/framework/kernel.js
CHANGED
|
@@ -85,11 +85,12 @@ class Kernel {
|
|
|
85
85
|
helpers_lib_1.ConsoleHelper.log(`Changes:`, 'gray');
|
|
86
86
|
helpers_lib_1.ConsoleHelper.newLine();
|
|
87
87
|
}
|
|
88
|
+
let startPathsFrom = context_1.Context.config.projectRoot.length;
|
|
88
89
|
let erasedFileCount = 0;
|
|
89
90
|
if (context_1.Context.successful) {
|
|
90
91
|
filesInOutputFolder.forEach(filePath => {
|
|
91
92
|
erasedFileCount++;
|
|
92
|
-
console.info(`${helpers_lib_1.ConsoleHelper.red}Erasing file:${helpers_lib_1.ConsoleHelper.gray} "${filePath.substring(
|
|
93
|
+
console.info(`${helpers_lib_1.ConsoleHelper.red}Erasing file:${helpers_lib_1.ConsoleHelper.gray} "${filePath.substring(startPathsFrom).replace(/\//g, '\\')}"${helpers_lib_1.ConsoleHelper.default}`);
|
|
93
94
|
fs.unlinkSync(filePath);
|
|
94
95
|
});
|
|
95
96
|
}
|
|
@@ -103,11 +104,11 @@ class Kernel {
|
|
|
103
104
|
if (content !== outputFile.content) {
|
|
104
105
|
if (exists) {
|
|
105
106
|
modifiedFileCount++;
|
|
106
|
-
console.info(`${helpers_lib_1.ConsoleHelper.blue}Modifying file:${helpers_lib_1.ConsoleHelper.gray} "${outputFile.path.substring(
|
|
107
|
+
console.info(`${helpers_lib_1.ConsoleHelper.blue}Modifying file:${helpers_lib_1.ConsoleHelper.gray} "${outputFile.path.substring(startPathsFrom).replace(/\//g, '\\')}"${helpers_lib_1.ConsoleHelper.default}`);
|
|
107
108
|
}
|
|
108
109
|
else {
|
|
109
110
|
createdFileCount++;
|
|
110
|
-
console.info(`${helpers_lib_1.ConsoleHelper.cyan}Creating file:${helpers_lib_1.ConsoleHelper.gray} "${outputFile.path.substring(
|
|
111
|
+
console.info(`${helpers_lib_1.ConsoleHelper.cyan}Creating file:${helpers_lib_1.ConsoleHelper.gray} "${outputFile.path.substring(startPathsFrom).replace(/\//g, '\\')}"${helpers_lib_1.ConsoleHelper.default}`);
|
|
111
112
|
}
|
|
112
113
|
fs.writeFileSync(outputFile.path, outputFile.content);
|
|
113
114
|
}
|