@vendure/create 3.8.1-master-202610220213 → 3.8.1-master-202610230212
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/assets/Dockerfile.hbs +1 -1
- package/lib/console-hint.d.ts +0 -6
- package/lib/console-hint.js +2 -28
- package/lib/console-hint.js.map +1 -1
- package/package.json +3 -3
package/assets/Dockerfile.hbs
CHANGED
package/lib/console-hint.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Whether the terminal renders OSC 8 hyperlinks. `FORCE_HYPERLINK` overrides the other checks.
|
|
3
|
-
* Without it, a non-TTY stdout or a CI run gets no hyperlink. The terminal checks follow the
|
|
4
|
-
* `supports-hyperlinks` package, which neither package depends on.
|
|
5
|
-
*/
|
|
6
|
-
export declare function supportsHyperlinks(env?: NodeJS.ProcessEnv, isTTY?: boolean): boolean;
|
|
7
1
|
/**
|
|
8
2
|
* The hint line. A terminal with hyperlink support shows `https://vendure.io/pricing` and links
|
|
9
3
|
* to it with the `utm_source` tag. Other terminals get the plain URL without the tag.
|
package/lib/console-hint.js
CHANGED
|
@@ -1,38 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.supportsHyperlinks = supportsHyperlinks;
|
|
4
3
|
exports.getConsoleHint = getConsoleHint;
|
|
5
4
|
exports.showConsoleHint = showConsoleHint;
|
|
6
5
|
const prompts_1 = require("@clack/prompts");
|
|
6
|
+
const supports_hyperlinks_1 = require("@vendure/common/lib/supports-hyperlinks");
|
|
7
7
|
// The pricing URL shown in the hint, and the tag that names the surface that printed it.
|
|
8
8
|
const PRICING_URL = 'https://vendure.io/pricing';
|
|
9
9
|
const UTM_SOURCE = 'vendure-create';
|
|
10
|
-
// TERM values of terminals that render OSC 8 hyperlinks but set no TERM_PROGRAM.
|
|
11
|
-
const HYPERLINK_TERMS = ['xterm-kitty', 'xterm-ghostty', 'alacritty', 'foot', 'foot-extra'];
|
|
12
|
-
/**
|
|
13
|
-
* Whether the terminal renders OSC 8 hyperlinks. `FORCE_HYPERLINK` overrides the other checks.
|
|
14
|
-
* Without it, a non-TTY stdout or a CI run gets no hyperlink. The terminal checks follow the
|
|
15
|
-
* `supports-hyperlinks` package, which neither package depends on.
|
|
16
|
-
*/
|
|
17
|
-
function supportsHyperlinks(env = process.env, isTTY = process.stdout.isTTY === true) {
|
|
18
|
-
var _a, _b, _c;
|
|
19
|
-
if (env.FORCE_HYPERLINK) {
|
|
20
|
-
return parseInt(env.FORCE_HYPERLINK, 10) !== 0;
|
|
21
|
-
}
|
|
22
|
-
if (!isTTY || env.CI || env.TEAMCITY_VERSION) {
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
if (env.WT_SESSION) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
if (['iTerm.app', 'vscode', 'WezTerm', 'WarpTerminal'].includes((_a = env.TERM_PROGRAM) !== null && _a !== void 0 ? _a : '')) {
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
if (HYPERLINK_TERMS.includes((_b = env.TERM) !== null && _b !== void 0 ? _b : '')) {
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
return Number.parseInt((_c = env.VTE_VERSION) !== null && _c !== void 0 ? _c : '', 10) >= 5000;
|
|
35
|
-
}
|
|
36
10
|
/**
|
|
37
11
|
* The hint line. A terminal with hyperlink support shows `https://vendure.io/pricing` and links
|
|
38
12
|
* to it with the `utm_source` tag. Other terminals get the plain URL without the tag.
|
|
@@ -40,7 +14,7 @@ function supportsHyperlinks(env = process.env, isTTY = process.stdout.isTTY ===
|
|
|
40
14
|
* `utm_source=vendure-dev`. Keep both in sync: the two packages cannot share code without a
|
|
41
15
|
* new dependency.
|
|
42
16
|
*/
|
|
43
|
-
function getConsoleHint(hyperlinks = supportsHyperlinks()) {
|
|
17
|
+
function getConsoleHint(hyperlinks = (0, supports_hyperlinks_1.supportsHyperlinks)()) {
|
|
44
18
|
const link = hyperlinks
|
|
45
19
|
? `\u001b]8;;${PRICING_URL}?utm_source=${UTM_SOURCE}\u0007${PRICING_URL}\u001b]8;;\u0007`
|
|
46
20
|
: PRICING_URL;
|
package/lib/console-hint.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"console-hint.js","sourceRoot":"","sources":["../src/console-hint.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"console-hint.js","sourceRoot":"","sources":["../src/console-hint.ts"],"names":[],"mappings":";;AAcA,wCAKC;AAGD,0CAEC;AAxBD,4CAAqC;AACrC,iFAA6E;AAE7E,yFAAyF;AACzF,MAAM,WAAW,GAAG,4BAA4B,CAAC;AACjD,MAAM,UAAU,GAAG,gBAAgB,CAAC;AAEpC;;;;;;GAMG;AACH,SAAgB,cAAc,CAAC,aAAsB,IAAA,wCAAkB,GAAE;IACrE,MAAM,IAAI,GAAG,UAAU;QACnB,CAAC,CAAC,aAAa,WAAW,eAAe,UAAU,SAAS,WAAW,kBAAkB;QACzF,CAAC,CAAC,WAAW,CAAC;IAClB,OAAO,0DAA0D,IAAI,oDAAoD,CAAC;AAC9H,CAAC;AAED,kFAAkF;AAClF,SAAgB,eAAe,CAAC,QAAmC,OAAO,CAAC,EAAE,CAAC,aAAG,CAAC,IAAI,CAAC,OAAO,CAAC;IAC3F,KAAK,CAAC,cAAc,EAAE,CAAC,CAAC;AAC5B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vendure/create",
|
|
3
|
-
"version": "3.8.1-master-
|
|
3
|
+
"version": "3.8.1-master-202610230212",
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create": "./index.js"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@types/fs-extra": "^11.0.4",
|
|
34
34
|
"@types/handlebars": "^4.1.0",
|
|
35
35
|
"@types/semver": "^7.5.8",
|
|
36
|
-
"@vendure/core": "^3.8.1-master-
|
|
36
|
+
"@vendure/core": "^3.8.1-master-202610230212",
|
|
37
37
|
"rimraf": "^5.0.5",
|
|
38
38
|
"ts-node": "^10.9.2",
|
|
39
39
|
"typescript": "5.8.2",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@clack/prompts": "^0.11.0",
|
|
44
|
-
"@vendure/common": "^3.8.1-master-
|
|
44
|
+
"@vendure/common": "^3.8.1-master-202610230212",
|
|
45
45
|
"commander": "^14.0.1",
|
|
46
46
|
"cross-spawn": "^7.0.6",
|
|
47
47
|
"fs-extra": "^11.2.0",
|