nx 19.6.0 → 19.7.0-canary.20240816-ce2dff3

Sign up to get free protection for your applications and to get access to all the features.
Binary file
@@ -1,3 +1,6 @@
1
+ /**
2
+ * This is currently duplicated in Nx Console. Please let @MaxKless know if you make changes here.
3
+ */
1
4
  export declare function createNxCloudOnboardingURL(onboardingSource: string, accessToken?: string, usesGithub?: boolean, meta?: string): Promise<string>;
2
5
  export declare function repoUsesGithub(github?: boolean, githubSlug?: string, apiUrl?: string): Promise<boolean>;
3
6
  export declare function getURLifShortenFailed(usesGithub: boolean, githubSlug: string | null, apiUrl: string, source: string, accessToken?: string): string;
@@ -10,6 +10,9 @@ exports.compareCleanCloudVersions = compareCleanCloudVersions;
10
10
  const devkit_exports_1 = require("../../devkit-exports");
11
11
  const git_utils_1 = require("../../utils/git-utils");
12
12
  const get_cloud_options_1 = require("./get-cloud-options");
13
+ /**
14
+ * This is currently duplicated in Nx Console. Please let @MaxKless know if you make changes here.
15
+ */
13
16
  async function createNxCloudOnboardingURL(onboardingSource, accessToken, usesGithub, meta) {
14
17
  const githubSlug = (0, git_utils_1.getGithubSlugOrNull)();
15
18
  const apiUrl = (0, get_cloud_options_1.getCloudUrl)();
@@ -33,6 +33,9 @@ export declare class GitRepository {
33
33
  */
34
34
  export declare function updateRebaseFile(contents: string): string;
35
35
  export declare function fetchGitRemote(name: string, branch: string, execOptions: ExecSyncOptions): string | Buffer;
36
+ /**
37
+ * This is currently duplicated in Nx Console. Please let @MaxKless know if you make changes here.
38
+ */
36
39
  export declare function getGithubSlugOrNull(): string | null;
37
40
  export declare function extractUserAndRepoFromGitHubUrl(gitRemotes: string): string | null;
38
41
  export declare function commitChanges(commitMessage: string, directory?: string): string | null;
@@ -117,6 +117,9 @@ function updateRebaseFile(contents) {
117
117
  function fetchGitRemote(name, branch, execOptions) {
118
118
  return (0, child_process_1.execSync)(`git fetch ${name} ${branch} --depth 1`, execOptions);
119
119
  }
120
+ /**
121
+ * This is currently duplicated in Nx Console. Please let @MaxKless know if you make changes here.
122
+ */
120
123
  function getGithubSlugOrNull() {
121
124
  try {
122
125
  const gitRemote = (0, child_process_1.execSync)('git remote -v', {