Skip to content

Commit

Permalink
actually don't prune by default
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-cup committed Feb 27, 2025
1 parent d960fbe commit 194f5ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/providers/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (p *NodeProvider) Build(ctx *generate.GenerateContext, build *generate.Comm
}

func (p *NodeProvider) shouldPrune(ctx *generate.GenerateContext) bool {
return !ctx.Env.IsConfigVariableTruthy("NO_PRUNE")
return ctx.Env.IsConfigVariableTruthy("PRUNE_DEPS")
}

func (p *NodeProvider) PruneNodeDeps(ctx *generate.GenerateContext, prune *generate.CommandStepBuilder) {
Expand Down
5 changes: 4 additions & 1 deletion examples/node-npm/test.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[
{
"expectedOutput": "hello from Node v23.5.0"
"expectedOutput": "hello from Node v23.5.0",
"envs": {
"RAILPACK_PRUNE_DEPS": "true"
}
}
]

0 comments on commit 194f5ae

Please sign in to comment.