coursecode 0.1.22 → 0.1.23
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/cloud.js +6 -6
- package/package.json +1 -1
package/lib/cloud.js
CHANGED
|
@@ -1007,7 +1007,7 @@ export async function deploy(options = {}) {
|
|
|
1007
1007
|
log(' ℹ️ GitHub-linked course — deploying preview only.\n');
|
|
1008
1008
|
} else {
|
|
1009
1009
|
const repo = rcConfig.githubRepo || 'unknown';
|
|
1010
|
-
logErr(
|
|
1010
|
+
logErr('\n❌ This course deploys to production via GitHub, not CLI.');
|
|
1011
1011
|
logErr(` Repo: ${repo}`);
|
|
1012
1012
|
logErr(' Push to your repo to trigger a production deploy.');
|
|
1013
1013
|
logErr(' Use --preview to deploy a preview build via CLI.\n');
|
|
@@ -1128,11 +1128,11 @@ export async function deploy(options = {}) {
|
|
|
1128
1128
|
const previewTag = result.previewPromoted ? ' + preview' : '';
|
|
1129
1129
|
console.log(`✓ Deployed (${result.fileCount} files) — ${prodTag}${previewTag}`);
|
|
1130
1130
|
if (!result.promoted) {
|
|
1131
|
-
console.log(
|
|
1132
|
-
console.log(
|
|
1131
|
+
console.log(' Production pointer not updated. Promote from Deploy History or run:');
|
|
1132
|
+
console.log(' coursecode promote --production');
|
|
1133
1133
|
}
|
|
1134
1134
|
if (result.previewPromoted) {
|
|
1135
|
-
console.log(
|
|
1135
|
+
console.log(' Preview pointer updated.');
|
|
1136
1136
|
}
|
|
1137
1137
|
console.log(` Dashboard: ${result.dashboardUrl}`);
|
|
1138
1138
|
}
|
|
@@ -1639,8 +1639,8 @@ export async function deleteCourse(options = {}) {
|
|
|
1639
1639
|
console.log(`✓ "${slug}" deleted from CourseCode Cloud.`);
|
|
1640
1640
|
if (result.source_type === 'github' && result.github_repo) {
|
|
1641
1641
|
console.log(`\n ⚠️ This course was linked to GitHub (${result.github_repo}).`);
|
|
1642
|
-
console.log(
|
|
1643
|
-
console.log(
|
|
1642
|
+
console.log(' The GitHub integration has been disconnected.');
|
|
1643
|
+
console.log(' Your repository and its files are unaffected.');
|
|
1644
1644
|
}
|
|
1645
1645
|
console.log('');
|
|
1646
1646
|
}
|