@eclipse-glsp/cli 2.8.0-next.11 → 2.8.0-next.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,7 +21,6 @@ Options:
21
21
  -h, --help display help for command
22
22
 
23
23
  Commands:
24
- coverageReport [options] Generate a test coverage report for a glsp component
25
24
  checkHeaders [options] <rootDir> Validates the copyright year range (end year) of license header files
26
25
  updateNext|u [options] [rootDir] Updates all `next` dependencies in GLSP project to the latest version
27
26
  generateIndex [options] <rootDir...> Generate index files in a given source directory.
@@ -61,25 +60,6 @@ Options:
61
60
  -h, --help display help for command
62
61
  ```
63
62
 
64
- ## coverageReport
65
-
66
- The `coverageReport` command can be used to create a full nyc test coverage report for a pnpm/yarn mono repository.
67
- The package manager is auto-detected from the repository (pnpm-workspace.yaml/pnpm-lock.yaml vs. yarn.lock).
68
- Individual coverage reports for each package are created and then combined to a full report.
69
-
70
- ```console
71
- $ glsp coverageReport -h
72
- Usage: glsp coverageReport [options]
73
-
74
- Generate a test coverage report for a glsp component
75
-
76
- Options:
77
- -p, --projectRoot <projectRoot> The root directory of the GLSP component (default:
78
- "<cwd>")
79
- -c, --coverageScript <script> Script command of the package root for creating coverage reports (default: "test:coverage")
80
- -h, --help display help for command
81
- ```
82
-
83
63
  ## updateNext
84
64
 
85
65
  ```console
@@ -203,9 +183,7 @@ Options:
203
183
 
204
184
  ### publish
205
185
 
206
- Publishes all (public) workspace packages of a GLSP repository (replaces `lerna publish`).
207
- The package manager is auto-detected: pnpm-based repositories publish via `pnpm publish -r`, while
208
- not-yet-migrated yarn/lerna-based repositories fall back to the legacy `lerna publish`.
186
+ Publishes all (public) workspace packages of a GLSP repository via `pnpm publish -r` (replaces `lerna publish`).
209
187
 
210
188
  - `next`: applies a canary version (`<root-version>.<commits-since-last-tag>`, e.g. `2.8.0-next.42`) to all
211
189
  workspace packages and publishes them under the `next` dist-tag. Requires the full git history
@@ -213,15 +191,14 @@ not-yet-migrated yarn/lerna-based repositories fall back to the legacy `lerna pu
213
191
  - `latest`: publishes the current package versions under the `latest` dist-tag. Packages whose version
214
192
  already exists on the registry are skipped.
215
193
 
216
- For pnpm repositories publishing is delegated to `pnpm publish -r`, so `workspace:` dependency ranges are
217
- rewritten to exact versions; in both cases npm provenance/trusted publishing (`NPM_CONFIG_PROVENANCE`) is
218
- preserved. `--dry-run` is only supported for pnpm-based repositories.
194
+ Publishing is delegated to `pnpm publish -r`, so `workspace:` dependency ranges are rewritten to exact
195
+ versions; npm provenance/trusted publishing (`NPM_CONFIG_PROVENANCE`) is preserved.
219
196
 
220
197
  ```console
221
198
  $ glsp releng publish -h
222
199
  Usage: glsp releng publish [options] <distTag>
223
200
 
224
- Publish all workspace packages of a GLSP repository (pnpm: `pnpm publish`, yarn/lerna: `lerna publish`)
201
+ Publish all workspace packages of a GLSP repository via `pnpm publish`
225
202
 
226
203
  Arguments:
227
204
  distTag The npm dist-tag to publish under (choices: "next", "latest")
@@ -256,8 +233,8 @@ Commands:
256
233
  clone [options] [repos...] Clone GLSP repositories
257
234
  fork [options] <user> Add fork remotes to already-cloned repositories
258
235
  build [options] Build repositories (dependency-ordered)
259
- link [options] Interlink repositories via yarn link
260
- unlink [options] Remove yarn links between repositories
236
+ link [options] Interlink repositories via pnpm-workspace.yaml link overrides
237
+ unlink [options] Remove the pnpm link overrides between repositories
261
238
  pwd [options] Print resolved paths for all discovered repositories
262
239
  log [options] Print the last commit for all discovered repositories
263
240
  workspace Manage VS Code workspace files for GLSP projects
@@ -349,21 +326,30 @@ Options:
349
326
 
350
327
  ### link / unlink
351
328
 
352
- Links (or unlinks) repositories via `yarn link` for cross-repo development.
353
- Repositories are processed in dependency order, and singleton dependencies (sprotty, inversify, etc.)
354
- are shared from `glsp-client` to avoid duplicate instances.
329
+ Links (or unlinks) repositories for cross-repo development by injecting `link:` overrides into each
330
+ consumer's `pnpm-workspace.yaml` and reinstalling. Repositories are processed in dependency order, and
331
+ singleton dependencies (sprotty, sprotty-protocol, vscode-jsonrpc, inversify) are shared from `glsp-client`
332
+ to avoid duplicate instances. After linking a repo it is **built** so the `link:` overrides resolve to
333
+ compiled `lib/` output rather than empty source directories (pass `--no-build` to skip); only the npm/pnpm
334
+ side is built, so the `glsp-eclipse-integration` Maven server is left to a separate build. `unlink` removes
335
+ those overrides again and reinstalls.
336
+
337
+ For `glsp-eclipse-integration`, whose linkable pnpm workspace lives in a `client/` subdirectory, the
338
+ overrides are injected into `client/pnpm-workspace.yaml`.
355
339
 
356
340
  ```console
357
341
  $ glsp repo link -h
358
342
  Usage: glsp repo link [options]
359
343
 
360
- Interlink repositories via yarn link
344
+ Interlink repositories via pnpm-workspace.yaml link overrides
361
345
 
362
346
  Options:
363
347
  -d, --dir <path> Target directory where repos are cloned
364
348
  -r, --repo <name...> Link only these repos
365
349
  --preset <name> Link repos from a preset (choices: "core", "theia", "vscode",
366
350
  "eclipse", "playwright", "all")
351
+ --no-build Skip building the linked repos (links resolve to existing compiled output)
352
+ --electron Build the Theia electron variant instead of browser (default: false)
367
353
  --no-fail-fast Continue after a failure
368
354
  -v, --verbose Verbose output (default: false)
369
355
  -h, --help display help for command