@spfn/cli 0.0.5 → 0.0.6
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/lib/login.js +4 -4
- package/package.json +1 -1
package/lib/login.js
CHANGED
@@ -47,7 +47,7 @@ function installGitCredentials(
|
|
47
47
|
console.log(`✔️ Stored credentials for git.superfunctions.ai/${repoPath}`);
|
48
48
|
}
|
49
49
|
|
50
|
-
function mergeGradleInit()
|
50
|
+
function mergeGradleInit(username, token)
|
51
51
|
{
|
52
52
|
const dir = path.join(os.homedir(), ".gradle");
|
53
53
|
const file = path.join(dir, "init.gradle");
|
@@ -70,8 +70,8 @@ function mergeGradleInit()
|
|
70
70
|
" name = 'Gitea'",
|
71
71
|
" url = uri('https://git.superfunctions.ai/api/packages/sf/maven')",
|
72
72
|
" credentials {",
|
73
|
-
|
74
|
-
|
73
|
+
` username = '${username}'`,
|
74
|
+
` password = '${token}'`,
|
75
75
|
" }",
|
76
76
|
" }",
|
77
77
|
" mavenCentral()",
|
@@ -118,7 +118,7 @@ export function login()
|
|
118
118
|
return;
|
119
119
|
}
|
120
120
|
|
121
|
-
mergeGradleInit();
|
121
|
+
mergeGradleInit(username, token);
|
122
122
|
|
123
123
|
// npm registry 설정 (생략)
|
124
124
|
try
|