nx 19.6.0 → 19.7.0-canary.20240817-b91d788
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +13 -13
- package/src/adapter/ngcli-adapter.js +2 -2
- package/src/core/graph/main.js +1 -1
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/nx-cloud/utilities/url-shorten.d.ts +3 -0
- package/src/nx-cloud/utilities/url-shorten.js +3 -0
- package/src/utils/git-utils.d.ts +3 -0
- package/src/utils/git-utils.js +3 -0
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)();
|
package/src/utils/git-utils.d.ts
CHANGED
@@ -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;
|
package/src/utils/git-utils.js
CHANGED
@@ -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', {
|