Commit 9744d97
committed
GLSP-1636: Fix Theia e2e web-server launch across yarn and pnpm
The `theia` project web-server launches the `theia` binary inside the
cloned glsp-theia-integration repo. pnpm's script shorthand only runs
package.json scripts, so the binary must be invoked via `pnpm exec`
(otherwise ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL); yarn classic runs
binaries directly and has no `exec` command. Since the e2e clones the
integration repo's default branch, which is still yarn mid-migration,
neither form works for both.
- Detect the cloned repo's package manager via its lockfile and add
`exec` only for pnpm
- Mark as temporary, to be removed together with the existing yarn
workaround in scripts/setup.ts once all repos are on pnpm
Part of: eclipse-glsp/glsp#16361 parent 9aa6b2a commit 9744d97
2 files changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
48 | 58 | | |
49 | 59 | | |
50 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
| |||
0 commit comments