nix/make-bundled: parameterize output paths
Signed-off-by: Xe <me@christine.website>
This commit is contained in:
parent
0b6f2c800a
commit
89969955be
|
@ -10,6 +10,7 @@
|
|||
src,
|
||||
lockfile,
|
||||
output ? "bundled.js",
|
||||
outPath ? "dist",
|
||||
entrypoint,
|
||||
importMap ? null,
|
||||
additionalDenoFlags ? "",
|
||||
|
@ -37,7 +38,7 @@ in
|
|||
"${output}"
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p $out/dist
|
||||
install -t $out/dist "${output}"
|
||||
mkdir -p $out/${outPath}
|
||||
install -t $out/${outPath} "${output}"
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue