planexe-cli 0.0.2 → 0.0.3
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 +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -23,7 +23,7 @@ function createConfig(packageName) {
|
|
|
23
23
|
configDir,
|
|
24
24
|
binaryName,
|
|
25
25
|
binaryPath: path.join(configDir, binaryName),
|
|
26
|
-
metadataPath: path.join(configDir, '
|
|
26
|
+
metadataPath: path.join(configDir, 'planexe-metadata.json'),
|
|
27
27
|
tempDownloadDir: path.join(configDir, '.download-temp'),
|
|
28
28
|
userAgent: `${packageName}-cli`,
|
|
29
29
|
requestTimeout: 20000,
|
|
@@ -60,7 +60,7 @@ function trackUpdateFailed(errorMessage, version, context = {}) {
|
|
|
60
60
|
|
|
61
61
|
const payload = JSON.stringify({
|
|
62
62
|
api_key: posthogConfig.apiKey,
|
|
63
|
-
event: 'cli.
|
|
63
|
+
event: 'cli.update_planexe_failed',
|
|
64
64
|
properties: {
|
|
65
65
|
distinct_id: `anonymous-${CONFIG.homeDir}`,
|
|
66
66
|
error: errorMessage,
|
|
@@ -385,7 +385,7 @@ async function downloadBinary(version) {
|
|
|
385
385
|
}
|
|
386
386
|
|
|
387
387
|
term.clearLine()
|
|
388
|
-
console.log('Download complete! Starting
|
|
388
|
+
console.log('Download complete! Starting PlanExe...')
|
|
389
389
|
}
|
|
390
390
|
|
|
391
391
|
async function ensureBinaryExists() {
|
|
@@ -405,7 +405,7 @@ async function ensureBinaryExists() {
|
|
|
405
405
|
await downloadBinary(version)
|
|
406
406
|
} catch (error) {
|
|
407
407
|
term.clearLine()
|
|
408
|
-
console.error('❌ Failed to download
|
|
408
|
+
console.error('❌ Failed to download planexe:', error.message)
|
|
409
409
|
console.error('Please check your internet connection and try again')
|
|
410
410
|
process.exit(1)
|
|
411
411
|
}
|