@knowcode/doc-builder 1.0.10 → 1.0.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/CHANGELOG.md +13 -0
- package/cli.js +33 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,19 @@ 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.0.11] - 2025-01-19
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- Comprehensive troubleshooting for "buildCommand" errors in help
|
|
12
|
+
- Troubleshooting for "Project was deleted" errors
|
|
13
|
+
- "Delete and Start Fresh" section in deployment help
|
|
14
|
+
- Enhanced reset-vercel command documentation
|
|
15
|
+
|
|
16
|
+
### Improved
|
|
17
|
+
- Clearer instructions for handling deleted projects
|
|
18
|
+
- Better organization of troubleshooting scenarios
|
|
19
|
+
- Added specific commands for each error type
|
|
20
|
+
|
|
8
21
|
## [1.0.10] - 2025-01-19
|
|
9
22
|
|
|
10
23
|
### Fixed
|
package/cli.js
CHANGED
|
@@ -187,6 +187,17 @@ ${chalk.yellow('Subsequent Deployments:')}
|
|
|
187
187
|
${chalk.gray('$')} npx @knowcode/doc-builder ${chalk.gray('# Deploy preview')}
|
|
188
188
|
${chalk.gray('$')} npx @knowcode/doc-builder deploy --prod ${chalk.gray('# Deploy to production')}
|
|
189
189
|
|
|
190
|
+
${chalk.yellow('When All Else Fails - Delete and Start Fresh:')}
|
|
191
|
+
Sometimes the cleanest solution is to delete the Vercel project:
|
|
192
|
+
|
|
193
|
+
1. Go to your project settings on Vercel
|
|
194
|
+
2. Scroll to bottom and click ${chalk.red('"Delete Project"')}
|
|
195
|
+
3. Run: ${chalk.gray('npx @knowcode/doc-builder reset-vercel')}
|
|
196
|
+
4. Run: ${chalk.gray('npx @knowcode/doc-builder deploy')}
|
|
197
|
+
5. Create a NEW project with correct settings
|
|
198
|
+
|
|
199
|
+
This removes all conflicting configurations!
|
|
200
|
+
|
|
190
201
|
${chalk.yellow('Troubleshooting:')}
|
|
191
202
|
• ${chalk.cyan('Command not found:')} Install Vercel CLI globally
|
|
192
203
|
• ${chalk.cyan('Not authenticated:')} Run ${chalk.gray('vercel login')}
|
|
@@ -209,6 +220,25 @@ ${chalk.yellow('Troubleshooting:')}
|
|
|
209
220
|
2. Run deployment again
|
|
210
221
|
3. When asked "Link to existing project?" say ${chalk.red.bold('NO')}
|
|
211
222
|
4. Create a new project with your actual name
|
|
223
|
+
|
|
224
|
+
${chalk.red.bold('• "buildCommand should be string,null" error:')}
|
|
225
|
+
${chalk.yellow('Your Vercel project has conflicting build settings.')}
|
|
226
|
+
|
|
227
|
+
${chalk.green('Fix:')}
|
|
228
|
+
1. Go to project settings > Build & Development Settings
|
|
229
|
+
2. Clear ALL fields (Build Command, Output Directory, etc.)
|
|
230
|
+
3. Save and try again
|
|
231
|
+
${chalk.gray('OR')}
|
|
232
|
+
Delete the project and start fresh (see below)
|
|
233
|
+
|
|
234
|
+
${chalk.red.bold('• "Project was deleted or you don\'t have access" error:')}
|
|
235
|
+
${chalk.yellow('The Vercel project was deleted but local config remains.')}
|
|
236
|
+
|
|
237
|
+
${chalk.green('Fix:')}
|
|
238
|
+
${chalk.gray('$')} npx @knowcode/doc-builder reset-vercel
|
|
239
|
+
${chalk.gray('$')} npx @knowcode/doc-builder deploy
|
|
240
|
+
|
|
241
|
+
This removes old project references and starts fresh
|
|
212
242
|
`)
|
|
213
243
|
.action(async (options) => {
|
|
214
244
|
const spinner = ora('Deploying to Vercel...').start();
|
|
@@ -307,6 +337,9 @@ ${chalk.yellow('When to use:')}
|
|
|
307
337
|
• After "html/html does not exist" error
|
|
308
338
|
• When linked to wrong project (e.g., username/html)
|
|
309
339
|
• When Root Directory settings are incorrect
|
|
340
|
+
• After deleting a Vercel project
|
|
341
|
+
• When you get "Project was deleted" errors
|
|
342
|
+
• Any time you want to start fresh with deployment
|
|
310
343
|
`)
|
|
311
344
|
.action(async (options) => {
|
|
312
345
|
try {
|