@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.
@@ -1,4 +1,4 @@
1
- {{#if isBun}}FROM oven/bun:1{{else}}FROM node:20{{/if}}
1
+ {{#if isBun}}FROM oven/bun:1{{else}}FROM node:24{{/if}}
2
2
 
3
3
  WORKDIR /usr/src/app
4
4
 
@@ -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.
@@ -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;
@@ -1 +1 @@
1
- {"version":3,"file":"console-hint.js","sourceRoot":"","sources":["../src/console-hint.ts"],"names":[],"mappings":";;AAaA,gDAoBC;AASD,wCAKC;AAGD,0CAEC;AApDD,4CAAqC;AAErC,yFAAyF;AACzF,MAAM,WAAW,GAAG,4BAA4B,CAAC;AACjD,MAAM,UAAU,GAAG,gBAAgB,CAAC;AACpC,iFAAiF;AACjF,MAAM,eAAe,GAAG,CAAC,aAAa,EAAE,eAAe,EAAE,WA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CAAC,aAAG,CAAC,IAAI,CAAC,OAAO,CAAC;IAC3F,KAAK,CAAC,cAAc,EAAE,CAAC,CAAC;AAC5B,CAAC"}
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-202610220213",
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-202610220213",
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-202610220213",
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",