browser-extension-manager 1.2.11 → 1.2.12

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.
@@ -341,20 +341,18 @@ async function packageSource() {
341
341
  },
342
342
  });
343
343
 
344
- // Backup existing README.md if it exists
345
- const readmePath = path.join(process.cwd(), 'README.md');
346
- const readmeBackup = jetpack.read(readmePath);
347
-
348
- // Replace README.md with build instructions temporarily
349
- jetpack.write(readmePath, instructions);
350
-
351
344
  // Create source zip using git archive (respects .gitignore)
352
345
  await execute(`git archive --format=zip --output=${sourceZipPath} HEAD`);
353
346
 
354
- // Restore original README.md
355
- if (readmeBackup) {
356
- jetpack.write(readmePath, readmeBackup);
357
- }
347
+ // Write build instructions to .temp/README.md
348
+ const tempReadmePath = path.join(process.cwd(), '.temp', 'README.md');
349
+ jetpack.write(tempReadmePath, instructions);
350
+
351
+ // Update the zip - replace README.md with build instructions
352
+ await execute(`cd .temp && zip -u ../${sourceZipPath} README.md`);
353
+
354
+ // Clean up temp file
355
+ jetpack.remove(tempReadmePath);
358
356
 
359
357
  logger.log(`Source code zip created at ${sourceZipPath}`);
360
358
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-extension-manager",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
4
4
  "description": "Browser Extension Manager dependency manager",
5
5
  "main": "dist/index.js",
6
6
  "exports": {