create-nx-workspace 23.1.0-beta.3 → 23.1.0-beta.4

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.
@@ -1,13 +1,12 @@
1
1
  /**
2
- * Wrap `text` in an OSC 8 hyperlink that points at `url`. Supported terminals
3
- * render `text` as a clickable link to `url`; everywhere else `text` prints
4
- * unchanged. This lets us keep tracking querystrings out of the visible output
5
- * while still attaching them to the link target (CLOUD-4642).
2
+ * Wrap `text` in an OSC 8 hyperlink to `url`, keeping tracking querystrings out
3
+ * of visible output while attaching them to the link target (CLOUD-4642).
4
+ * Unsupported terminals print `text` unchanged.
6
5
  */
7
6
  export declare function terminalLink(text: string, url: string): string;
8
7
  /**
9
- * Exported for testing. VTE reports versions as a packed integer, e.g. "5402"
10
- * means 0.54.2; everything else is dot-separated.
8
+ * Exported for testing. VTE packs versions into an integer ("5402" = 0.54.2);
9
+ * everything else is dot-separated.
11
10
  */
12
11
  export declare function parseVersion(versionString?: string): {
13
12
  major: number;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
- // Keep in sync with packages/nx/src/utils/terminal-link.ts.
3
- // create-nx-workspace cannot depend on nx, so this generic OSC 8 helper is
4
- // intentionally duplicated (same reasoning as output.ts / package-manager.ts).
2
+ // Keep in sync with packages/nx/src/utils/terminal-link.ts; duplicated because
3
+ // create-nx-workspace cannot depend on nx (same as output.ts / package-manager.ts).
5
4
  Object.defineProperty(exports, "__esModule", { value: true });
6
5
  exports.terminalLink = terminalLink;
7
6
  exports.parseVersion = parseVersion;
@@ -9,10 +8,9 @@ const OSC = '\u001B]';
9
8
  const BEL = '\u0007';
10
9
  const SEP = ';';
11
10
  /**
12
- * Wrap `text` in an OSC 8 hyperlink that points at `url`. Supported terminals
13
- * render `text` as a clickable link to `url`; everywhere else `text` prints
14
- * unchanged. This lets us keep tracking querystrings out of the visible output
15
- * while still attaching them to the link target (CLOUD-4642).
11
+ * Wrap `text` in an OSC 8 hyperlink to `url`, keeping tracking querystrings out
12
+ * of visible output while attaching them to the link target (CLOUD-4642).
13
+ * Unsupported terminals print `text` unchanged.
16
14
  */
17
15
  function terminalLink(text, url) {
18
16
  if (!supportsHyperlinks()) {
@@ -21,9 +19,8 @@ function terminalLink(text, url) {
21
19
  return [OSC, '8', SEP, SEP, url, BEL, text, OSC, '8', SEP, SEP, BEL].join('');
22
20
  }
23
21
  /**
24
- * Best-effort detection of OSC 8 hyperlink support, adapted from the
25
- * `supports-hyperlinks` package. Defaults to false when in doubt so we never
26
- * print raw escape sequences to a terminal that can't render them.
22
+ * OSC 8 support detection (adapted from `supports-hyperlinks`). Defaults to
23
+ * false when in doubt so we never emit raw escape sequences.
27
24
  */
28
25
  function supportsHyperlinks() {
29
26
  const env = process.env;
@@ -72,8 +69,8 @@ function supportsHyperlinks() {
72
69
  return false;
73
70
  }
74
71
  /**
75
- * Exported for testing. VTE reports versions as a packed integer, e.g. "5402"
76
- * means 0.54.2; everything else is dot-separated.
72
+ * Exported for testing. VTE packs versions into an integer ("5402" = 0.54.2);
73
+ * everything else is dot-separated.
77
74
  */
78
75
  function parseVersion(versionString = '') {
79
76
  if (/^\d{3,4}$/.test(versionString)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nx-workspace",
3
- "version": "23.1.0-beta.3",
3
+ "version": "23.1.0-beta.4",
4
4
  "private": false,
5
5
  "description": "Smart Monorepos · Fast Builds",
6
6
  "repository": {