@chikhamx/voidx 3.0.0 → 3.1.0
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/bin/postinstall.js +6 -4
- package/package.json +1 -1
package/bin/postinstall.js
CHANGED
|
@@ -418,10 +418,12 @@ function buildPythonDownloadUrl(mirrorBase, tag, filename) {
|
|
|
418
418
|
return `${mirrorBase}/${tag}/${filename}`;
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
421
|
+
if (require.main === module) {
|
|
422
|
+
main().catch((err) => {
|
|
423
|
+
console.error(`\n❌ Setup failed: ${err.message}\n`);
|
|
424
|
+
process.exit(1);
|
|
425
|
+
});
|
|
426
|
+
}
|
|
425
427
|
|
|
426
428
|
module.exports = {
|
|
427
429
|
buildPythonDownloadUrl,
|