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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/utils.js +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openkbs",
3
- "version": "0.0.35",
3
+ "version": "0.0.36",
4
4
  "description": "OpenKBS - Command Line Interface",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
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) => {