build: 🏗️ Make Nix build great again

This commit is contained in:
Jesse Wierzbinski 2025-04-14 16:51:00 +02:00
parent 1679585c4c
commit 5a4ce29206
No known key found for this signature in database
13 changed files with 6773 additions and 194 deletions

View file

@ -1,3 +1,6 @@
import { dirname } from "node:path";
import { main } from "bun";
type ElementWithId = { id: string };
export const mergeAndDeduplicate = <T extends ElementWithId>(
@ -9,3 +12,7 @@ export const mergeAndDeduplicate = <T extends ElementWithId>(
(element, index, self) =>
index === self.findIndex((t) => t.id === element.id),
);
export const cwdFromEntrypoint = (): string => {
return dirname(main);
};