@webiny/cli 5.26.0-beta.1 → 5.26.1-beta.0

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/bin.js +12 -10
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.26.1-beta.0](https://github.com/webiny/webiny-js/compare/v5.26.0...v5.26.1-beta.0) (2022-05-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **create-webiny-project:** require node >=14 ([#2420](https://github.com/webiny/webiny-js/issues/2420)) ([82a0454](https://github.com/webiny/webiny-js/commit/82a0454c82fb778a691111578bf5c683ca9a55c8))
12
+
13
+
14
+
15
+
16
+
17
+ # [5.26.0](https://github.com/webiny/webiny-js/compare/v5.26.0-beta.2...v5.26.0) (2022-05-13)
18
+
19
+ **Note:** Version bump only for package @webiny/cli
20
+
21
+
22
+
23
+
24
+
25
+ # [5.26.0-beta.2](https://github.com/webiny/webiny-js/compare/v5.26.0-beta.1...v5.26.0-beta.2) (2022-05-13)
26
+
27
+ **Note:** Version bump only for package @webiny/cli
28
+
29
+
30
+
31
+
32
+
6
33
  # [5.26.0-beta.1](https://github.com/webiny/webiny-js/compare/v5.26.0-beta.0...v5.26.0-beta.1) (2022-05-12)
7
34
 
8
35
  **Note:** Version bump only for package @webiny/cli
package/bin.js CHANGED
@@ -7,14 +7,14 @@ const semver = require("semver");
7
7
  const currentNodeVersion = process.versions.node;
8
8
 
9
9
  (async () => {
10
- if (!semver.satisfies(currentNodeVersion, "^12 || ^14")) {
10
+ if (!semver.satisfies(currentNodeVersion, ">=14")) {
11
11
  console.error(
12
12
  chalk.red(
13
- "You are running Node " +
14
- currentNodeVersion +
15
- ".\n" +
16
- "Webiny requires Node ^12 or ^14. \n" +
17
- "Please update your version of Node."
13
+ [
14
+ `You are running Node.js ${currentNodeVersion}, but Webiny requires version 14 or higher.`,
15
+ `Please switch to one of the required versions and try again.`,
16
+ `For more information, please visit https://docs.webiny.com/docs/tutorials/install-webiny#prerequisites.`
17
+ ].join(" ")
18
18
  )
19
19
  );
20
20
  process.exit(1);
@@ -22,13 +22,15 @@ const currentNodeVersion = process.versions.node;
22
22
 
23
23
  try {
24
24
  const { stdout } = await execa("yarn", ["--version"]);
25
- if (!semver.satisfies(stdout, "^2||^3")) {
26
- console.error(chalk.red(`"@webiny/cli" requires yarn ^2 or ^3 to be installed!`));
25
+ if (!semver.satisfies(stdout, ">=2")) {
26
+ console.error(chalk.red(`"@webiny/cli" requires yarn >=2!`));
27
27
  process.exit(1);
28
28
  }
29
29
  } catch (err) {
30
- console.error(chalk.red(`"@webiny/cli" requires yarn ^2 or ^3 to be installed!`));
31
- console.log(`Please visit https://yarnpkg.com/ to install "yarn".`);
30
+ console.error(chalk.red(`"@webiny/cli" requires yarn >=2!`));
31
+ console.log(
32
+ `Run ${chalk.blue("yarn set version berry")} to install a compatible version of yarn.`
33
+ );
32
34
  process.exit(1);
33
35
  }
34
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/cli",
3
- "version": "5.26.0-beta.1",
3
+ "version": "5.26.1-beta.0",
4
4
  "main": "index.js",
5
5
  "bin": {
6
6
  "webiny": "./bin.js"
@@ -13,7 +13,7 @@
13
13
  "author": "Pavel Denisjuk <pavel@webiny.com>",
14
14
  "description": "A tool to bootstrap a Webiny project.",
15
15
  "dependencies": {
16
- "@webiny/telemetry": "5.26.0-beta.1",
16
+ "@webiny/telemetry": "5.26.1-beta.0",
17
17
  "boolean": "3.1.4",
18
18
  "camelcase": "5.3.1",
19
19
  "chalk": "4.1.2",
@@ -63,5 +63,5 @@
63
63
  ]
64
64
  }
65
65
  },
66
- "gitHead": "ba9a3a3e4b7864a85ecf10a97523391eca63df3b"
66
+ "gitHead": "d85df0d292bfd4ee2422cbb59de18ee8899df076"
67
67
  }