openkbs 0.0.35 → 0.0.36
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/package.json +1 -1
- package/src/utils.js +9 -0
package/package.json
CHANGED
package/src/utils.js
CHANGED
|
@@ -1085,6 +1085,15 @@ async function downloadTemplatesFromS3(targetDir) {
|
|
|
1085
1085
|
|
|
1086
1086
|
// Wait for all downloads to complete
|
|
1087
1087
|
await Promise.all(downloadPromises);
|
|
1088
|
+
|
|
1089
|
+
// Add .openkbs/* to .gitignore
|
|
1090
|
+
const gitignorePath = path.join(targetDir, '.gitignore');
|
|
1091
|
+
if (await fs.pathExists(gitignorePath)) {
|
|
1092
|
+
let content = await fs.readFile(gitignorePath, 'utf8');
|
|
1093
|
+
if (!content.includes('.openkbs/*')) {
|
|
1094
|
+
await fs.writeFile(gitignorePath, content.trim() + '\n.openkbs/*\n');
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1088
1097
|
}
|
|
1089
1098
|
|
|
1090
1099
|
const generateKey = (passphrase) => {
|