@knowcode/doc-builder 1.1.1 → 1.1.2
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/CHANGELOG.md +12 -0
- package/lib/deploy.js +3 -29
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ All notable changes to @knowcode/doc-builder will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.1.2] - 2025-01-19
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- Simplified deployment output - removed Root Directory warnings
|
|
12
|
+
- Cleaner deployment experience with just essential information
|
|
13
|
+
- Shows simple "Starting deployment" message instead of warnings
|
|
14
|
+
|
|
15
|
+
### Removed
|
|
16
|
+
- Pre-deployment Root Directory check and warnings
|
|
17
|
+
- Project ID display during deployment
|
|
18
|
+
- Verbose deployment preparation messages
|
|
19
|
+
|
|
8
20
|
## [1.1.1] - 2025-01-19
|
|
9
21
|
|
|
10
22
|
### Added
|
package/lib/deploy.js
CHANGED
|
@@ -164,35 +164,9 @@ async function deployToVercel(config, isProd = false) {
|
|
|
164
164
|
throw new Error(`Output directory ${outputPath} does not exist. Run 'doc-builder build' first.`);
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
//
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
try {
|
|
171
|
-
const projectInfo = fs.readJsonSync(vercelProjectPath);
|
|
172
|
-
const projectId = projectInfo.projectId || 'unknown';
|
|
173
|
-
|
|
174
|
-
console.log(chalk.blue('\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'));
|
|
175
|
-
console.log(chalk.yellow('📦 Deploying to existing Vercel project'));
|
|
176
|
-
console.log(chalk.blue('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n'));
|
|
177
|
-
|
|
178
|
-
console.log(chalk.white('Project ID: ') + chalk.cyan(projectId));
|
|
179
|
-
|
|
180
|
-
// Check if .vercel/project.json has rootDirectory set
|
|
181
|
-
if (projectInfo.settings && projectInfo.settings.rootDirectory) {
|
|
182
|
-
console.log(chalk.red.bold('\n⚠️ WARNING: Root Directory is set to: ') + chalk.yellow(projectInfo.settings.rootDirectory));
|
|
183
|
-
console.log(chalk.red('This may cause deployment to fail!\n'));
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
console.log(chalk.yellow.bold('\n⚡ BEFORE CONTINUING:'));
|
|
187
|
-
console.log(chalk.white('1. Check your Root Directory setting at:'));
|
|
188
|
-
console.log(chalk.cyan(` https://vercel.com/dashboard/project/${projectId}`));
|
|
189
|
-
console.log(chalk.white('2. Root Directory should be ') + chalk.green.bold('EMPTY (blank)'));
|
|
190
|
-
console.log(chalk.white('3. If it says "html", ') + chalk.red.bold('DELETE IT NOW!\n'));
|
|
191
|
-
|
|
192
|
-
} catch (e) {
|
|
193
|
-
// Ignore read errors
|
|
194
|
-
}
|
|
195
|
-
}
|
|
167
|
+
// Simple deployment message
|
|
168
|
+
console.log(chalk.blue('\n🚀 Starting deployment to Vercel...'));
|
|
169
|
+
console.log(chalk.gray('This will take a few seconds...\n'));
|
|
196
170
|
|
|
197
171
|
// Create vercel.json in output directory for deployment
|
|
198
172
|
const vercelConfigPath = path.join(outputPath, 'vercel.json');
|