progga 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/index.js +11 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  /**
4
4
  * Project Documentation Generator
@@ -275,6 +275,16 @@ function generateDocumentation(projectPath, outputFile) {
275
275
  console.log(`Generating documentation for: ${absProjectPath}`);
276
276
  console.log(`Output file: ${outputFile}`);
277
277
 
278
+ // Delete existing output file if it exists
279
+ if (fs.existsSync(outputFile)) {
280
+ try {
281
+ fs.unlinkSync(outputFile);
282
+ console.log(`✓ Deleted existing file: ${outputFile}`);
283
+ } catch (err) {
284
+ console.warn(`Warning: Could not delete existing file: ${err.message}`);
285
+ }
286
+ }
287
+
278
288
  const projectName = path.basename(absProjectPath);
279
289
  let output = '';
280
290
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "progga",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Generate comprehensive project documentation for AI assistants - Share your entire codebase context in one markdown file",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -38,4 +38,4 @@
38
38
  "url": "https://github.com/Yousuf-Basir/progga/issues"
39
39
  },
40
40
  "homepage": "https://github.com/Yousuf-Basir/progga#readme"
41
- }
41
+ }