create-nx-workspace 21.3.9 → 21.3.11
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 +1 -1
- package/src/utils/git/git.js +4 -4
- package/src/utils/nx/messages.js +2 -2
package/package.json
CHANGED
package/src/utils/git/git.js
CHANGED
|
@@ -194,18 +194,18 @@ async function pushToGitHub(directory, options) {
|
|
|
194
194
|
const errorMessage = e instanceof Error ? e.message : String(e);
|
|
195
195
|
// Error code 127 means gh wasn't installed
|
|
196
196
|
const title = e instanceof GitHubPushSkippedError || e?.code === 127
|
|
197
|
-
? 'Push your workspace to GitHub'
|
|
198
|
-
: 'Failed to push workspace to GitHub';
|
|
197
|
+
? 'Push your workspace to GitHub.'
|
|
198
|
+
: 'Failed to push workspace to GitHub.';
|
|
199
199
|
const createRepoUrl = `https://github.com/new?name=${encodeURIComponent(options.name)}`;
|
|
200
200
|
output_1.output.log({
|
|
201
201
|
title,
|
|
202
202
|
bodyLines: isVerbose
|
|
203
203
|
? [
|
|
204
|
-
`Please create a repo at ${createRepoUrl} and push this workspace
|
|
204
|
+
`Please create a repo at ${createRepoUrl} and push this workspace.`,
|
|
205
205
|
'Error details:',
|
|
206
206
|
errorMessage,
|
|
207
207
|
]
|
|
208
|
-
: [`Please create a repo at ${createRepoUrl} and push this workspace
|
|
208
|
+
: [`Please create a repo at ${createRepoUrl} and push this workspace.`],
|
|
209
209
|
});
|
|
210
210
|
return VcsPushStatus.FailedToPushToVcs;
|
|
211
211
|
}
|
package/src/utils/nx/messages.js
CHANGED
|
@@ -6,11 +6,11 @@ function getSetupMessage(url, pushedToVcs) {
|
|
|
6
6
|
if (pushedToVcs === git_1.VcsPushStatus.PushedToVcs) {
|
|
7
7
|
return url
|
|
8
8
|
? `Go to Nx Cloud and finish the setup: ${url}`
|
|
9
|
-
: 'Return to Nx Cloud and finish the setup';
|
|
9
|
+
: 'Return to Nx Cloud and finish the setup.';
|
|
10
10
|
}
|
|
11
11
|
// Default case: FailedToPushToVcs
|
|
12
12
|
const action = url ? 'go' : 'return';
|
|
13
|
-
const urlSuffix = url ? `: ${url}` : '';
|
|
13
|
+
const urlSuffix = url ? `: ${url}` : '.';
|
|
14
14
|
return `Push your repo, then ${action} to Nx Cloud and finish the setup${urlSuffix}`;
|
|
15
15
|
}
|
|
16
16
|
const outputMessages = {
|