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.
Files changed (2) hide show
  1. package/index.js +14 -3
  2. 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
- * - Improved 'init' template for 100% success rate
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
- // Using standard include for max compatibility in template
149
- fs.writeFileSync(mainCppPath, `#include <iostream>\n\nint main() {\n std::cout << "🚀 PRO C++ is running!" << std::endl;\n return 0;\n}`);
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}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pro-cpp-cli-core",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "The ultimate C++ Developer Experience for Windows.",
5
5
  "main": "index.js",
6
6
  "bin": {