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.
- package/dist/gulp/tasks/package.js +9 -11
- package/package.json +1 -1
|
@@ -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
|
-
//
|
|
355
|
-
|
|
356
|
-
|
|
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) {
|