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,
|
src,
|
||||||
lockfile,
|
lockfile,
|
||||||
output ? "bundled.js",
|
output ? "bundled.js",
|
||||||
|
outPath ? "dist",
|
||||||
entrypoint,
|
entrypoint,
|
||||||
importMap ? null,
|
importMap ? null,
|
||||||
additionalDenoFlags ? "",
|
additionalDenoFlags ? "",
|
||||||
|
@ -37,7 +38,7 @@ in
|
||||||
"${output}"
|
"${output}"
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/dist
|
mkdir -p $out/${outPath}
|
||||||
install -t $out/dist "${output}"
|
install -t $out/${outPath} "${output}"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue