Commit 0b87f64
authored
Configure Node CNB to skip pruning (#439)
* Configure Node CNB to skip pruning
The Node.js CNB is often used by the Ruby CNB to handle asset compilation for Rails apps. A recent change to the Node.js CNB made it so that dev dependencies are pruned at the end of its build phase, but these dev dependencies are then needed when the Ruby CNB wants to do asset compilation.
To support this use case, the Node.js CNB exposes a buildplan configuration that can control how some of these features work. This PR includes that required buildplan whenever Node.js tooling is required + modifies an integration test to verify that the configuration is working.
* Update CHANGELOG.md
Signed-off-by: Colin Casey <[email protected]>
* Only include Node.js buildplan config if `yarn` is required.
---------
Signed-off-by: Colin Casey <[email protected]>1 parent fd29cad commit 0b87f64
File tree
3 files changed
+15
-2
lines changed- buildpacks/ruby
- src
- tests
3 files changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
93 | 101 | | |
94 | 102 | | |
95 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
| 377 | + | |
377 | 378 | | |
378 | 379 | | |
379 | 380 | | |
| |||
0 commit comments