Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Commit 825b5d2

Browse files
committed
decompose-actions: Ensure sources for bundled modules exist
Credit: @iarna
1 parent ec90c06 commit 825b5d2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/install/decompose-actions.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ function addAction (decomposed, action, pkg) {
3333
}
3434

3535
function addSteps (decomposed, pkg) {
36+
if (pkg.fromBundle) {
37+
// make sure our source module exists to extract ourselves from
38+
// if we're installing our source module anyway, the duplication
39+
// of these steps will be elided by `addAction` automatically
40+
addAction(decomposed, 'fetch', pkg.fromBundle)
41+
addAction(decomposed, 'extract', pkg.fromBundle)
42+
}
3643
if (!pkg.fromBundle && !pkg.isLink) {
3744
addAction(decomposed, 'fetch', pkg)
3845
addAction(decomposed, 'extract', pkg)

0 commit comments

Comments
 (0)