kodingo-cli 1.1.7 → 1.1.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/dist/commands/init.js +3 -5
- package/package.json +1 -1
package/dist/commands/init.js
CHANGED
|
@@ -41,16 +41,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
41
41
|
return result;
|
|
42
42
|
};
|
|
43
43
|
})();
|
|
44
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
45
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
|
-
};
|
|
47
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
45
|
exports.registerInitCommand = registerInitCommand;
|
|
49
46
|
const readline = __importStar(require("node:readline"));
|
|
50
47
|
const fs = __importStar(require("fs"));
|
|
51
48
|
const path = __importStar(require("path"));
|
|
52
49
|
const os = __importStar(require("os"));
|
|
53
|
-
|
|
50
|
+
// open is imported dynamically to avoid ESM/CJS compatibility issues on Windows
|
|
54
51
|
const persistence_config_1 = require("../utils/persistence-config");
|
|
55
52
|
const API_BASE = "https://kodingo-api.onrender.com";
|
|
56
53
|
const APP_URL = "https://kodingo.xyz";
|
|
@@ -140,7 +137,8 @@ async function browserLogin(rl) {
|
|
|
140
137
|
});
|
|
141
138
|
// Open browser
|
|
142
139
|
try {
|
|
143
|
-
await (
|
|
140
|
+
const { default: open } = await Promise.resolve().then(() => __importStar(require("open")));
|
|
141
|
+
await open(loginUrl);
|
|
144
142
|
}
|
|
145
143
|
catch { }
|
|
146
144
|
console.log("Waiting for login...");
|