browser-extension-manager 1.2.10 → 1.2.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/dist/gulp/tasks/package.js +10 -8
- package/package.json +1 -1
|
@@ -341,18 +341,20 @@ async function packageSource() {
|
|
|
341
341
|
},
|
|
342
342
|
});
|
|
343
343
|
|
|
344
|
-
//
|
|
345
|
-
const
|
|
346
|
-
jetpack.
|
|
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);
|
|
347
350
|
|
|
348
351
|
// Create source zip using git archive (respects .gitignore)
|
|
349
352
|
await execute(`git archive --format=zip --output=${sourceZipPath} HEAD`);
|
|
350
353
|
|
|
351
|
-
//
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
jetpack.remove(instructionsPath);
|
|
354
|
+
// Restore original README.md
|
|
355
|
+
if (readmeBackup) {
|
|
356
|
+
jetpack.write(readmePath, readmeBackup);
|
|
357
|
+
}
|
|
356
358
|
|
|
357
359
|
logger.log(`Source code zip created at ${sourceZipPath}`);
|
|
358
360
|
} catch (e) {
|