@knowcode/doc-builder 1.1.7 ā 1.1.9
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 +18 -0
- package/cli.js +6 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,24 @@ 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.9] - 2025-07-19
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Fixed "outputPath is not defined" error in deploy command
|
|
12
|
+
- Corrected variable scope issue introduced in 1.1.8
|
|
13
|
+
|
|
14
|
+
## [1.1.8] - 2025-07-19
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- Deploy command now always builds documentation first
|
|
18
|
+
- Removed `--no-build` option to ensure fresh builds before deployment
|
|
19
|
+
- Simplified deployment workflow - `deploy` now automatically includes build step
|
|
20
|
+
|
|
21
|
+
### Improved
|
|
22
|
+
- Guaranteed that deployed documentation is always up-to-date
|
|
23
|
+
- Eliminated confusion about when to build vs when to deploy
|
|
24
|
+
- Streamlined user experience with single deploy command
|
|
25
|
+
|
|
8
26
|
## [1.1.7] - 2025-07-19
|
|
9
27
|
|
|
10
28
|
### Fixed
|
package/cli.js
CHANGED
|
@@ -124,13 +124,11 @@ program
|
|
|
124
124
|
.description('Deploy documentation to Vercel production (requires Vercel CLI)')
|
|
125
125
|
.option('-c, --config <path>', 'path to config file (default: doc-builder.config.js)')
|
|
126
126
|
.option('--no-prod', 'deploy as preview instead of production')
|
|
127
|
-
.option('--no-build', 'skip building before deployment')
|
|
128
127
|
.option('--force', 'force deployment without confirmation')
|
|
129
128
|
.addHelpText('after', `
|
|
130
129
|
${chalk.yellow('Examples:')}
|
|
131
130
|
${chalk.gray('$')} doc-builder deploy ${chalk.gray('# Deploy to production')}
|
|
132
131
|
${chalk.gray('$')} doc-builder deploy --no-prod ${chalk.gray('# Deploy preview only')}
|
|
133
|
-
${chalk.gray('$')} doc-builder deploy --no-build ${chalk.gray('# Deploy existing build')}
|
|
134
132
|
|
|
135
133
|
${chalk.yellow('First-time Vercel Setup:')}
|
|
136
134
|
|
|
@@ -269,19 +267,17 @@ ${chalk.yellow('Troubleshooting:')}
|
|
|
269
267
|
process.exit(1);
|
|
270
268
|
}
|
|
271
269
|
|
|
272
|
-
//
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
await build(config);
|
|
278
|
-
spinner.start('Deploying to Vercel...');
|
|
279
|
-
}
|
|
270
|
+
// Always build first
|
|
271
|
+
spinner.stop();
|
|
272
|
+
console.log(chalk.blue('\nš¦ Building documentation first...\n'));
|
|
273
|
+
await build(config);
|
|
274
|
+
spinner.start('Deploying to Vercel...');
|
|
280
275
|
|
|
281
276
|
// Prepare deployment files
|
|
282
277
|
await prepareDeployment(config);
|
|
283
278
|
|
|
284
279
|
// Check if this is the first deployment
|
|
280
|
+
const outputPath = path.join(process.cwd(), config.outputDir || 'html');
|
|
285
281
|
const vercelProjectPath = path.join(outputPath, '.vercel', 'project.json');
|
|
286
282
|
if (!fs.existsSync(vercelProjectPath)) {
|
|
287
283
|
spinner.stop();
|