mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
build: 🏗️ Make Nix build great again
This commit is contained in:
parent
1679585c4c
commit
5a4ce29206
13 changed files with 6773 additions and 194 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue