Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions harnesses/pnpm/harness.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ let { harness, .. } = import "minimal.ncl" in
harness {
name = "pnpm",

runtime_packages = ["node"],
runtime_packages = ["node-lts"],
build_packages = ["pnpm", "base"],

build_cmds_cmd = [
"/bin/bash",
"-c",
m%"
# Run pnpm install if no packages are installed (first start)
[ -z "$(pnpm list 2>/dev/null)" ] && echo "/bin/pnpm install"
if [ -z "$(pnpm list 2>/dev/null)" ]; then
[ -f pnpm-lock.yaml ] && echo '/bin/pnpm install --frozen-lockfile' || echo '/bin/pnpm install'
fi
echo '/bin/pnpm build'
"%
],
Expand Down
4 changes: 2 additions & 2 deletions packages/pnpm/build.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ let base = import "../base/build.ncl" in
let coreutils = import "../coreutils/build.ncl" in
let tar = import "../tar/build.ncl" in

let node = import "../node/build.ncl" in
let node-lts = import "../node-lts/build.ncl" in

let version = "10.33.0" in
{
Expand All @@ -18,7 +18,7 @@ let version = "10.33.0" in
tar,
],
runtime_deps = [
node,
node-lts,
coreutils, # pnpm is a sheband script that invokes node like `#!/usr/bin/env node`
],
needs =
Expand Down