summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorElizabeth Alexander Hunt <me@liz.coffee>2025-05-10 18:53:56 -0700
committerElizabeth Alexander Hunt <me@liz.coffee>2025-05-10 20:24:13 -0700
commit946bbfa548fbdad17980a535baaba70bbd56b499 (patch)
treefdee372a0e8874108da97f6c22eeaf84b6b78927 /utils
parent5a9186380619e959ad87f3990f8b2c324b4462d8 (diff)
downloadci-946bbfa548fbdad17980a535baaba70bbd56b499.tar.gz
ci-946bbfa548fbdad17980a535baaba70bbd56b499.zip
NPM is huuuge on debian. Just download the native release of bitwarden. Same with ansible, but use a docker container for that lazy loaded goooodnesssss.
Diffstat (limited to 'utils')
-rw-r--r--utils/mod.ts1
-rw-r--r--utils/prepend.ts4
2 files changed, 5 insertions, 0 deletions
diff --git a/utils/mod.ts b/utils/mod.ts
index 93457f0..8c5dc45 100644
--- a/utils/mod.ts
+++ b/utils/mod.ts
@@ -2,3 +2,4 @@ export * from "./env.ts";
export * from "./run.ts";
export * from "./secret.ts";
export * from "./validate_identifier.ts";
+export * from "./prepend.ts";
diff --git a/utils/prepend.ts b/utils/prepend.ts
new file mode 100644
index 0000000..9b77aff
--- /dev/null
+++ b/utils/prepend.ts
@@ -0,0 +1,4 @@
+export const prependWith = (arr: string[], prep: string) =>
+ Array(arr.length * 2).fill(0)
+ .map((_, i) => i % 2 === 0)
+ .map((isPrep, i) => isPrep ? prep : arr[i]);