@knowcode/doc-builder 1.1.7 → 1.1.8

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/cli.js +5 -10
  3. 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.8] - 2025-07-19
9
+
10
+ ### Changed
11
+ - Deploy command now always builds documentation first
12
+ - Removed `--no-build` option to ensure fresh builds before deployment
13
+ - Simplified deployment workflow - `deploy` now automatically includes build step
14
+
15
+ ### Improved
16
+ - Guaranteed that deployed documentation is always up-to-date
17
+ - Eliminated confusion about when to build vs when to deploy
18
+ - Streamlined user experience with single deploy command
19
+
8
20
  ## [1.1.7] - 2025-07-19
9
21
 
10
22
  ### 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,14 +267,11 @@ ${chalk.yellow('Troubleshooting:')}
269
267
  process.exit(1);
270
268
  }
271
269
 
272
- // Check if we need to build first
273
- const outputPath = path.join(process.cwd(), config.outputDir || 'html');
274
- if (!fs.existsSync(outputPath) || !options.noBuild) {
275
- spinner.stop();
276
- console.log(chalk.blue('\nšŸ“¦ Building documentation first...\n'));
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowcode/doc-builder",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "Reusable documentation builder for markdown-based sites with Vercel deployment support",
5
5
  "main": "index.js",
6
6
  "bin": {