@vendure/cli 3.8.1-master-202610220213 → 3.8.1
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,3 +1,2 @@
|
|
|
1
|
-
export declare function supportsHyperlinks(env?: NodeJS.ProcessEnv, isTTY?: boolean): boolean;
|
|
2
1
|
export declare function getConsoleHint(hyperlinks?: boolean): string;
|
|
3
2
|
export declare function showConsoleHintIfUnlinked(projectDir: string, write?: (message: string) => void): boolean;
|
|
@@ -1,33 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.supportsHyperlinks = supportsHyperlinks;
|
|
4
3
|
exports.getConsoleHint = getConsoleHint;
|
|
5
4
|
exports.showConsoleHintIfUnlinked = showConsoleHintIfUnlinked;
|
|
6
5
|
const prompts_1 = require("@clack/prompts");
|
|
6
|
+
const supports_hyperlinks_1 = require("@vendure/common/lib/supports-hyperlinks");
|
|
7
7
|
const project_link_manifest_1 = require("../commands/console/project-link-manifest");
|
|
8
8
|
const PRICING_URL = 'https://vendure.io/pricing';
|
|
9
9
|
const UTM_SOURCE = 'vendure-dev';
|
|
10
|
-
|
|
11
|
-
function supportsHyperlinks(env = process.env, isTTY = process.stdout.isTTY === true) {
|
|
12
|
-
var _a, _b, _c;
|
|
13
|
-
if (env.FORCE_HYPERLINK) {
|
|
14
|
-
return parseInt(env.FORCE_HYPERLINK, 10) !== 0;
|
|
15
|
-
}
|
|
16
|
-
if (!isTTY || env.CI || env.TEAMCITY_VERSION) {
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
if (env.WT_SESSION) {
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
if (['iTerm.app', 'vscode', 'WezTerm', 'WarpTerminal'].includes((_a = env.TERM_PROGRAM) !== null && _a !== void 0 ? _a : '')) {
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
if (HYPERLINK_TERMS.includes((_b = env.TERM) !== null && _b !== void 0 ? _b : '')) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
return Number.parseInt((_c = env.VTE_VERSION) !== null && _c !== void 0 ? _c : '', 10) >= 5000;
|
|
29
|
-
}
|
|
30
|
-
function getConsoleHint(hyperlinks = supportsHyperlinks()) {
|
|
10
|
+
function getConsoleHint(hyperlinks = (0, supports_hyperlinks_1.supportsHyperlinks)()) {
|
|
31
11
|
const link = hyperlinks
|
|
32
12
|
? `\u001b]8;;${PRICING_URL}?utm_source=${UTM_SOURCE}\u0007${PRICING_URL}\u001b]8;;\u0007`
|
|
33
13
|
: PRICING_URL;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"console-hint.js","sourceRoot":"","sources":["../../src/shared/console-hint.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"console-hint.js","sourceRoot":"","sources":["../../src/shared/console-hint.ts"],"names":[],"mappings":";;AAgBA,wCAKC;AAMD,8DASC;AApCD,4CAAqC;AACrC,iFAA6E;AAE7E,qFAAoF;AAGpF,MAAM,WAAW,GAAG,4BAA4B,CAAC;AACjD,MAAM,UAAU,GAAG,aAAa,CAAC;AASjC,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;AAMD,SAAgB,yBAAyB,CACrC,UAAkB,EAClB,QAAmC,OAAO,CAAC,EAAE,CAAC,aAAG,CAAC,IAAI,CAAC,OAAO,CAAC;IAE/D,IAAI,IAAA,+CAAuB,EAAC,UAAU,CAAC,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QACzD,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,KAAK,CAAC,cAAc,EAAE,CAAC,CAAC;IACxB,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vendure/cli",
|
|
3
|
-
"version": "3.8.1
|
|
3
|
+
"version": "3.8.1",
|
|
4
4
|
"description": "A modern, headless ecommerce framework",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@clack/prompts": "^0.7.0",
|
|
43
|
-
"@vendure/common": "
|
|
43
|
+
"@vendure/common": "3.8.1",
|
|
44
44
|
"change-case": "^4.1.2",
|
|
45
45
|
"chokidar": "^3.6.0",
|
|
46
46
|
"commander": "^14.0.1",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"vite": "^7.3.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@vendure/core": "
|
|
61
|
-
"@vendure/testing": "
|
|
60
|
+
"@vendure/core": "3.8.1",
|
|
61
|
+
"@vendure/testing": "3.8.1",
|
|
62
62
|
"cross-env": "^7.0.3"
|
|
63
63
|
}
|
|
64
64
|
}
|