From: =?utf-8?b?SsOpcsOpbXkgTGFs?= <kapouer@melix.org>
Date: Tue, 28 Oct 2025 23:31:25 +0100
Subject: glob has weird assumptions about paths, fix them

Forwarded: not-needed, upstream shot itself in the foot here
Last-Update: 2025-08-28
---
 fixup.sh | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/fixup.sh b/fixup.sh
index 76baa02..5ef9076 100644
--- a/fixup.sh
+++ b/fixup.sh
@@ -1,5 +1,14 @@
 #!/usr/bin/env bash
 
+set +x
+
+cd dist-tmp
+
+ln -sfT ../cjs cjs/src
+ln -sfT ../mjs mjs/src
+
+cd ..
+
 cat >dist-tmp/cjs/package.json <<!EOF
 {
   "version": "$(node -p 'require("./package.json").version')",
@@ -14,6 +23,4 @@ cat >dist-tmp/mjs/package.json <<!EOF
 }
 !EOF
 
-sync-content dist-tmp dist
-chmod 0755 dist/cjs/src/bin.js
-rm -rf dist-tmp
+mv dist-tmp dist
