Update common.nix
This commit is contained in:
+15
-13
@@ -15,11 +15,11 @@
|
|||||||
"packages/shared/package.json"
|
"packages/shared/package.json"
|
||||||
];
|
];
|
||||||
|
|
||||||
renderBunFilters = filters:
|
renderBunInstallArgs = flags: filters:
|
||||||
lib.concatMapStringsSep "\n" (filter: " --filter ${filter} \\") filters;
|
lib.concatMapStringsSep "\n" (arg: " bunInstallArgs+=(${lib.escapeShellArg arg})") (
|
||||||
|
flags
|
||||||
renderBunInstallFlags = flags:
|
++ lib.concatMap (filter: ["--filter" filter]) filters
|
||||||
lib.concatMapStringsSep "\n" (flag: " ${flag} \\") flags;
|
);
|
||||||
in {
|
in {
|
||||||
inherit workspacePreparePatched;
|
inherit workspacePreparePatched;
|
||||||
|
|
||||||
@@ -66,14 +66,16 @@ in {
|
|||||||
export BUN_INSTALL_CACHE_DIR="$(mktemp -d)"
|
export BUN_INSTALL_CACHE_DIR="$(mktemp -d)"
|
||||||
${extraEnv}
|
${extraEnv}
|
||||||
|
|
||||||
bun install \
|
bunInstallArgs=(
|
||||||
--frozen-lockfile \
|
--frozen-lockfile
|
||||||
--ignore-scripts \
|
--ignore-scripts
|
||||||
--backend=copyfile \
|
--backend=copyfile
|
||||||
--linker=hoisted \
|
--linker=hoisted
|
||||||
--no-progress \
|
--no-progress
|
||||||
${renderBunInstallFlags installFlags}
|
)
|
||||||
${renderBunFilters filters}
|
${renderBunInstallArgs installFlags filters}
|
||||||
|
|
||||||
|
bun install "''${bunInstallArgs[@]}"
|
||||||
|
|
||||||
bun --bun ${./scripts/canonicalize-node-modules.ts}
|
bun --bun ${./scripts/canonicalize-node-modules.ts}
|
||||||
bun --bun ${./scripts/normalize-bun-binaries.ts}
|
bun --bun ${./scripts/normalize-bun-binaries.ts}
|
||||||
|
|||||||
Reference in New Issue
Block a user