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

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
@@ -63,8 +63,7 @@ Options:
63
63
 
64
64
  ## coverageReport
65
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).
66
+ The `coverageReport` command can be used to create a full nyc test coverage report for a pnpm mono repository.
68
67
  Individual coverage reports for each package are created and then combined to a full report.
69
68
 
70
69
  ```console
@@ -203,9 +202,7 @@ Options:
203
202
 
204
203
  ### publish
205
204
 
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`.
205
+ Publishes all (public) workspace packages of a GLSP repository via `pnpm publish -r` (replaces `lerna publish`).
209
206
 
210
207
  - `next`: applies a canary version (`<root-version>.<commits-since-last-tag>`, e.g. `2.8.0-next.42`) to all
211
208
  workspace packages and publishes them under the `next` dist-tag. Requires the full git history
@@ -213,15 +210,14 @@ not-yet-migrated yarn/lerna-based repositories fall back to the legacy `lerna pu
213
210
  - `latest`: publishes the current package versions under the `latest` dist-tag. Packages whose version
214
211
  already exists on the registry are skipped.
215
212
 
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.
213
+ Publishing is delegated to `pnpm publish -r`, so `workspace:` dependency ranges are rewritten to exact
214
+ versions; npm provenance/trusted publishing (`NPM_CONFIG_PROVENANCE`) is preserved.
219
215
 
220
216
  ```console
221
217
  $ glsp releng publish -h
222
218
  Usage: glsp releng publish [options] <distTag>
223
219
 
224
- Publish all workspace packages of a GLSP repository (pnpm: `pnpm publish`, yarn/lerna: `lerna publish`)
220
+ Publish all workspace packages of a GLSP repository via `pnpm publish`
225
221
 
226
222
  Arguments:
227
223
  distTag The npm dist-tag to publish under (choices: "next", "latest")
@@ -256,8 +252,8 @@ Commands:
256
252
  clone [options] [repos...] Clone GLSP repositories
257
253
  fork [options] <user> Add fork remotes to already-cloned repositories
258
254
  build [options] Build repositories (dependency-ordered)
259
- link [options] Interlink repositories via yarn link
260
- unlink [options] Remove yarn links between repositories
255
+ link [options] Interlink repositories via pnpm-workspace.yaml link overrides
256
+ unlink [options] Remove the pnpm link overrides between repositories
261
257
  pwd [options] Print resolved paths for all discovered repositories
262
258
  log [options] Print the last commit for all discovered repositories
263
259
  workspace Manage VS Code workspace files for GLSP projects
@@ -349,21 +345,30 @@ Options:
349
345
 
350
346
  ### link / unlink
351
347
 
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.
348
+ Links (or unlinks) repositories for cross-repo development by injecting `link:` overrides into each
349
+ consumer's `pnpm-workspace.yaml` and reinstalling. Repositories are processed in dependency order, and
350
+ singleton dependencies (sprotty, sprotty-protocol, vscode-jsonrpc, inversify) are shared from `glsp-client`
351
+ to avoid duplicate instances. After linking a repo it is **built** so the `link:` overrides resolve to
352
+ compiled `lib/` output rather than empty source directories (pass `--no-build` to skip); only the npm/pnpm
353
+ side is built, so the `glsp-eclipse-integration` Maven server is left to a separate build. `unlink` removes
354
+ those overrides again and reinstalls.
355
+
356
+ For `glsp-eclipse-integration`, whose linkable pnpm workspace lives in a `client/` subdirectory, the
357
+ overrides are injected into `client/pnpm-workspace.yaml`.
355
358
 
356
359
  ```console
357
360
  $ glsp repo link -h
358
361
  Usage: glsp repo link [options]
359
362
 
360
- Interlink repositories via yarn link
363
+ Interlink repositories via pnpm-workspace.yaml link overrides
361
364
 
362
365
  Options:
363
366
  -d, --dir <path> Target directory where repos are cloned
364
367
  -r, --repo <name...> Link only these repos
365
368
  --preset <name> Link repos from a preset (choices: "core", "theia", "vscode",
366
369
  "eclipse", "playwright", "all")
370
+ --no-build Skip building the linked repos (links resolve to existing compiled output)
371
+ --electron Build the Theia electron variant instead of browser (default: false)
367
372
  --no-fail-fast Continue after a failure
368
373
  -v, --verbose Verbose output (default: false)
369
374
  -h, --help display help for command