create-nx-workspace 21.3.8 → 21.3.9

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.
@@ -16,7 +16,6 @@ const ab_testing_1 = require("../src/utils/nx/ab-testing");
16
16
  const error_utils_1 = require("../src/utils/error-utils");
17
17
  const fs_1 = require("fs");
18
18
  const is_ci_1 = require("../src/utils/ci/is-ci");
19
- const social_information_1 = require("../src/utils/social-information");
20
19
  exports.commandsObject = yargs
21
20
  .wrap(yargs.terminalWidth())
22
21
  .parserConfiguration({
@@ -153,14 +152,13 @@ async function main(parsedArgs) {
153
152
  if (parsedArgs.nxCloud && workspaceInfo.nxCloudInfo) {
154
153
  process.stdout.write(workspaceInfo.nxCloudInfo);
155
154
  }
156
- if ((0, preset_1.isKnownPreset)(parsedArgs.preset)) {
157
- (0, social_information_1.printSocialInformation)();
158
- }
159
- else {
160
- output_1.output.log({
161
- title: `Successfully applied preset: ${parsedArgs.preset}`,
162
- });
163
- }
155
+ // if (isKnownPreset(parsedArgs.preset)) {
156
+ // printSocialInformation();
157
+ // } else {
158
+ // output.log({
159
+ // title: `Successfully applied preset: ${parsedArgs.preset}`,
160
+ // });
161
+ // }
164
162
  }
165
163
  /**
166
164
  * This function is used to normalize the arguments passed to the command.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nx-workspace",
3
- "version": "21.3.8",
3
+ "version": "21.3.9",
4
4
  "private": false,
5
5
  "description": "Smart Repos · Fast Builds",
6
6
  "repository": {
@@ -33,10 +33,7 @@ const outputMessages = {
33
33
  return {
34
34
  title: `Your remote cache is almost complete.`,
35
35
  type: 'success',
36
- bodyLines: [
37
- getSetupMessage(url, pushedToVcs),
38
- `You can also set up a remote cache later by running \`nx g @nx/nx-cloud:init\``,
39
- ],
36
+ bodyLines: [getSetupMessage(url, pushedToVcs)],
40
37
  };
41
38
  },
42
39
  },
@@ -1,5 +1,5 @@
1
1
  import { VcsPushStatus } from '../git/git';
2
2
  export type NxCloud = 'yes' | 'github' | 'gitlab' | 'azure' | 'bitbucket-pipelines' | 'circleci' | 'skip';
3
3
  export declare function readNxCloudToken(directory: string): string | undefined;
4
- export declare function createNxCloudOnboardingUrl(nxCloud: NxCloud, token: string, directory: string, useGitHub?: boolean): Promise<string>;
4
+ export declare function createNxCloudOnboardingUrl(nxCloud: NxCloud, token: string, directory: string, useGitHub?: boolean): Promise<any>;
5
5
  export declare function getNxCloudInfo(nxCloud: NxCloud, connectCloudUrl: string, pushedToVcs: VcsPushStatus, rawNxCloud?: NxCloud): Promise<string>;
@@ -29,8 +29,8 @@ async function createNxCloudOnboardingUrl(nxCloud, token, directory, useGitHub)
29
29
  ? 'create-nx-workspace-success-cache-setup'
30
30
  : 'create-nx-workspace-success-ci-setup';
31
31
  const { code } = (0, messages_1.getMessageFactory)(source);
32
- return await createNxCloudOnboardingURL(source, token, useGitHub ??
33
- (nxCloud === 'yes' || nxCloud === 'github' || nxCloud === 'circleci'), code);
32
+ return await createNxCloudOnboardingURL(source, token, code, false, useGitHub ??
33
+ (nxCloud === 'yes' || nxCloud === 'github' || nxCloud === 'circleci'));
34
34
  }
35
35
  async function getNxCloudInfo(nxCloud, connectCloudUrl, pushedToVcs, rawNxCloud) {
36
36
  const source = nxCloud === 'yes'