Refactor artifacts to use relative directory for build step and retrieval

This commit is contained in:
2026-09-23 05:08:54 +01:00
parent 2803dfa0be
commit 2335c60cc3
26 changed files with 117 additions and 204 deletions
+6
View File
@@ -0,0 +1,6 @@
import grabDirNames from "./grab-dir-names";
const { ROOT_DIR } = grabDirNames();
export default function grabRelativePath(path) {
const relative_path = path.replace(ROOT_DIR, "").replace(/^\//, "");
return relative_path;
}