pro-cpp-cli-core 1.0.7 → 1.0.8
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/index.js +14 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* PRO C++ CLI Core (V1.0.7)
|
|
5
5
|
* - Added Environment Check (cl.exe validation)
|
|
6
6
|
* - Added Versioning (-v, --version)
|
|
7
|
-
* -
|
|
7
|
+
* - Fixed UTF-8 Encoding in C++ template (No more "ЁЯЪА")
|
|
8
8
|
* - Native ANSI Colors & Performance Tracking
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -145,8 +145,19 @@ function initProject() {
|
|
|
145
145
|
|
|
146
146
|
const mainCppPath = path.join(process.cwd(), 'main.cpp');
|
|
147
147
|
if (!fs.existsSync(mainCppPath)) {
|
|
148
|
-
//
|
|
149
|
-
|
|
148
|
+
// FIXED TEMPLATE: Added Windows UTF-8 support to fix "ЁЯЪА"
|
|
149
|
+
const template =
|
|
150
|
+
`#include <iostream>
|
|
151
|
+
#include <windows.h>
|
|
152
|
+
|
|
153
|
+
int main() {
|
|
154
|
+
// Set console output to UTF-8 to support emojis and international text
|
|
155
|
+
SetConsoleOutputCP(CP_UTF8);
|
|
156
|
+
|
|
157
|
+
std::cout << "🚀 PRO C++ is running!" << std::endl;
|
|
158
|
+
return 0;
|
|
159
|
+
}`;
|
|
160
|
+
fs.writeFileSync(mainCppPath, template);
|
|
150
161
|
}
|
|
151
162
|
|
|
152
163
|
console.log(`${colors.green}✅ Ready! Use 'procpp watch' to start developing.${colors.reset}`);
|