create-nx-workspace 17.3.0-beta.1 → 17.3.0-beta.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nx-workspace",
3
- "version": "17.3.0-beta.1",
3
+ "version": "17.3.0-beta.3",
4
4
  "private": false,
5
5
  "description": "Smart Monorepos · Fast CI",
6
6
  "repository": {
@@ -1,11 +1,11 @@
1
1
  declare const messageOptions: {
2
2
  readonly nxCloudCreation: readonly [{
3
3
  readonly code: "set-up-distributed-caching-ci";
4
- readonly message: "Enable distributed caching to make your CI faster";
4
+ readonly message: "Enable remote caching to make your CI faster";
5
5
  }];
6
6
  readonly nxCloudMigration: readonly [{
7
7
  readonly code: "make-ci-faster";
8
- readonly message: "Enable distributed caching to make your CI faster?";
8
+ readonly message: "Enable remote caching to make your CI faster?";
9
9
  }];
10
10
  };
11
11
  type MessageKey = keyof typeof messageOptions;
@@ -6,13 +6,13 @@ const messageOptions = {
6
6
  nxCloudCreation: [
7
7
  {
8
8
  code: 'set-up-distributed-caching-ci',
9
- message: `Enable distributed caching to make your CI faster`,
9
+ message: `Enable remote caching to make your CI faster`,
10
10
  },
11
11
  ],
12
12
  nxCloudMigration: [
13
13
  {
14
14
  code: 'make-ci-faster',
15
- message: `Enable distributed caching to make your CI faster?`,
15
+ message: `Enable remote caching to make your CI faster?`,
16
16
  },
17
17
  ],
18
18
  };
@@ -7,18 +7,18 @@ const output_1 = require("../output");
7
7
  const package_manager_1 = require("../package-manager");
8
8
  const error_utils_1 = require("../error-utils");
9
9
  async function setupNxCloud(directory, packageManager) {
10
- const nxCloudSpinner = ora(`Setting up NxCloud`).start();
10
+ const nxCloudSpinner = ora(`Setting up Nx Cloud`).start();
11
11
  try {
12
12
  const pmc = (0, package_manager_1.getPackageManagerCommand)(packageManager);
13
13
  const res = await (0, child_process_utils_1.execAndWait)(`${pmc.exec} nx g nx:connect-to-nx-cloud --no-interactive --quiet`, directory);
14
- nxCloudSpinner.succeed('NxCloud has been set up successfully');
14
+ nxCloudSpinner.succeed('Nx Cloud has been set up successfully');
15
15
  return res;
16
16
  }
17
17
  catch (e) {
18
18
  nxCloudSpinner.fail();
19
19
  if (e instanceof Error) {
20
20
  output_1.output.error({
21
- title: `Failed to setup NxCloud`,
21
+ title: `Failed to setup Nx Cloud`,
22
22
  bodyLines: (0, error_utils_1.mapErrorToBodyLines)(e),
23
23
  });
24
24
  }
@@ -34,10 +34,10 @@ async function setupNxCloud(directory, packageManager) {
34
34
  exports.setupNxCloud = setupNxCloud;
35
35
  function printNxCloudSuccessMessage(nxCloudOut) {
36
36
  const bodyLines = nxCloudOut
37
- .split('Distributed caching via Nx Cloud has been enabled')[1]
37
+ .split('Remote caching via Nx Cloud has been enabled')[1]
38
38
  .trim();
39
39
  output_1.output.note({
40
- title: `Distributed caching via Nx Cloud has been enabled`,
40
+ title: `Remote caching via Nx Cloud has been enabled`,
41
41
  bodyLines: bodyLines.split('\n').map((r) => r.trim()),
42
42
  });
43
43
  }