Commit 7a5d337
committed
fix: install plugin from tarball when yalc fails
Problem: Yalc link was broken but package.json still referenced it,
causing Strapi to fail loading the plugin.
Solution: When yalc fails, create a tarball of the built plugin and
install it as a real dependency using 'yarn add'. This guarantees
the plugin is in node_modules where Strapi can find it.
Workflow:
- Try yalc (fast if it works)
- If yalc fails → pack plugin + install tarball (reliable)
- Tests can now load the plugin successfully1 parent 59ec98c commit 7a5d337
1 file changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
53 | 58 | | |
54 | | - | |
55 | | - | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
0 commit comments