@webiny/cli 0.0.0-unstable.99666aeb00 → 0.0.0-unstable.a9593f74dd

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/bin.js CHANGED
@@ -22,12 +22,12 @@ const currentNodeVersion = process.versions.node;
22
22
 
23
23
  try {
24
24
  const { stdout } = await execa("yarn", ["--version"]);
25
- if (!semver.satisfies(stdout, ">=2")) {
26
- console.error(chalk.red(`"@webiny/cli" requires yarn >=2!`));
25
+ if (!semver.satisfies(stdout, ">=3")) {
26
+ console.error(chalk.red(`"@webiny/cli" requires yarn 3 or 4!`));
27
27
  process.exit(1);
28
28
  }
29
29
  } catch (err) {
30
- console.error(chalk.red(`"@webiny/cli" requires yarn >=2!`));
30
+ console.error(chalk.red(`"@webiny/cli" requires yarn 3 or 4!`));
31
31
  console.log(
32
32
  `Run ${chalk.blue("yarn set version berry")} to install a compatible version of yarn.`
33
33
  );
@@ -9,6 +9,7 @@ module.exports.getPulumiVersions = async () => {
9
9
  "info",
10
10
  "@pulumi/pulumi",
11
11
  "-A",
12
+ "-R",
12
13
  "--name-only",
13
14
  "--json"
14
15
  ]);
@@ -24,6 +25,7 @@ module.exports.getPulumiVersions = async () => {
24
25
  "info",
25
26
  "@pulumi/aws",
26
27
  "-A",
28
+ "-R",
27
29
  "--name-only",
28
30
  "--json"
29
31
  ]);
@@ -8,9 +8,8 @@ module.exports = {
8
8
  telemetry.enable();
9
9
  await telemetry.sendEvent({ event: "enable-telemetry" });
10
10
  context.info(
11
- `Webiny telemetry is now ${context.info.hl(
12
- "enabled"
13
- )}! Thank you for helping us in making Webiny better!`
11
+ `Webiny telemetry is now %s! Thank you for helping us in making Webiny better!`,
12
+ "enabled"
14
13
  );
15
14
  context.info(
16
15
  `For more information, please visit the following link: https://www.webiny.com/telemetry.`
@@ -20,11 +19,10 @@ module.exports = {
20
19
  yargs.command("disable-telemetry", "Disable anonymous telemetry.", async () => {
21
20
  await telemetry.sendEvent({ event: "disable-telemetry" });
22
21
  telemetry.disable();
23
- context.info(`Webiny telemetry is now ${context.info.hl("disabled")}!`);
22
+ context.info(`Webiny telemetry is now %s!`, "disabled");
24
23
  context.info(
25
- `Note that, in order to complete the process, you will also need to re-deploy your project, using the ${context.info.hl(
26
- "yarn webiny deploy"
27
- )} command.`
24
+ `Note that, in order to complete the process, you will also need to re-deploy your project, using the %s command.`,
25
+ "yarn webiny deploy"
28
26
  );
29
27
  });
30
28
  }
@@ -70,7 +70,8 @@ module.exports = [
70
70
  const npx = execa("npx", command, {
71
71
  env: {
72
72
  FORCE_COLOR: true
73
- }
73
+ },
74
+ stdin: process.stdin
74
75
  });
75
76
 
76
77
  npx.stdout.on("data", data => {
@@ -95,9 +95,8 @@ module.exports.command = () => ({
95
95
  } catch (e) {
96
96
  if (debug) {
97
97
  context.debug(
98
- `Could not use the provided ${context.debug.hl(
99
- patFromParams
100
- )} PAT because of the following error:`
98
+ `Could not use the provided %s PAT because of the following error:`,
99
+ patFromParams
101
100
  );
102
101
  console.debug(e);
103
102
  }
@@ -118,7 +117,7 @@ module.exports.command = () => ({
118
117
  )}&ref=cli`;
119
118
  const openUrl = `${getWcpAppUrl()}/login/cli?${queryParams}`;
120
119
 
121
- debug && context.debug(`Opening ${context.debug.hl(openUrl)}...`);
120
+ debug && context.debug(`Opening %s...`, openUrl);
122
121
  await open(openUrl);
123
122
 
124
123
  const graphql = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/cli",
3
- "version": "0.0.0-unstable.99666aeb00",
3
+ "version": "0.0.0-unstable.a9593f74dd",
4
4
  "main": "index.js",
5
5
  "bin": {
6
6
  "webiny": "./bin.js"
@@ -13,8 +13,8 @@
13
13
  "author": "Pavel Denisjuk <pavel@webiny.com>",
14
14
  "description": "A tool to bootstrap a Webiny project.",
15
15
  "dependencies": {
16
- "@webiny/telemetry": "0.0.0-unstable.99666aeb00",
17
- "@webiny/wcp": "0.0.0-unstable.99666aeb00",
16
+ "@webiny/telemetry": "0.0.0-unstable.a9593f74dd",
17
+ "@webiny/wcp": "0.0.0-unstable.a9593f74dd",
18
18
  "boolean": "3.2.0",
19
19
  "camelcase": "5.3.1",
20
20
  "chalk": "4.1.2",
@@ -28,7 +28,7 @@
28
28
  "ncp": "2.0.0",
29
29
  "open": "8.4.0",
30
30
  "pirates": "4.0.5",
31
- "semver": "6.3.0",
31
+ "semver": "7.5.4",
32
32
  "ts-morph": "11.0.3",
33
33
  "typescript": "4.7.4",
34
34
  "uniqid": "5.4.0",
@@ -64,5 +64,5 @@
64
64
  ]
65
65
  }
66
66
  },
67
- "gitHead": "99666aeb00056c56292eeb5dbb6aba7fda2439e2"
67
+ "gitHead": "a9593f74ddf9ce93263eadb0ddc0807ed343f5ee"
68
68
  }
@@ -44,3 +44,11 @@ if (project.config.featureFlags) {
44
44
  process.env.WEBINY_FEATURE_FLAGS = JSON.stringify(project.config.featureFlags);
45
45
  process.env.REACT_APP_WEBINY_FEATURE_FLAGS = JSON.stringify(project.config.featureFlags);
46
46
  }
47
+
48
+ // With 5.38.0, we are hiding the `WEBINY_ELASTICSEARCH_INDEX_LOCALE` env variable and always setting it to `true`.
49
+ // This is because this variable is not something users should be concerned with, nor should they be able to change it.
50
+ // In order to ensure backwards compatibility, we first check if the variable is set, and if it is, we don't override it.
51
+ const esIndexLocaleEnvVarExists = "WEBINY_ELASTICSEARCH_INDEX_LOCALE" in process.env;
52
+ if (!esIndexLocaleEnvVarExists) {
53
+ process.env.WEBINY_ELASTICSEARCH_INDEX_LOCALE = "true";
54
+ }