@threadbase-sh/streamer 1.18.3 → 1.18.4
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/cli.cjs +5 -0
- package/dist/cli.cjs.map +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -144527,6 +144527,11 @@ function swapCurrent(version2) {
|
|
|
144527
144527
|
}
|
|
144528
144528
|
(0, import_node_fs9.symlinkSync)(target, tmpLink);
|
|
144529
144529
|
(0, import_node_fs9.renameSync)(tmpLink, CURRENT_SYMLINK);
|
|
144530
|
+
const cliJs = (0, import_node_path11.join)(THREADBASE_ROOT, "cli.js");
|
|
144531
|
+
const tmpCliJs = `${cliJs}.new`;
|
|
144532
|
+
if ((0, import_node_fs9.existsSync)(tmpCliJs) || lstatSafeIsSymlink(tmpCliJs)) (0, import_node_fs9.unlinkSync)(tmpCliJs);
|
|
144533
|
+
(0, import_node_fs9.symlinkSync)((0, import_node_path11.join)(target, "dist", "cli.cjs"), tmpCliJs);
|
|
144534
|
+
(0, import_node_fs9.renameSync)(tmpCliJs, cliJs);
|
|
144530
144535
|
}
|
|
144531
144536
|
function lstatSafeIsSymlink(path2) {
|
|
144532
144537
|
try {
|