prr-kit 2.0.6 → 2.0.8
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
CHANGED
|
@@ -65,7 +65,10 @@ class Installer {
|
|
|
65
65
|
|
|
66
66
|
// Update .gitignore
|
|
67
67
|
const ideGitignorePatterns = selectedIdes.flatMap((ide) =>
|
|
68
|
-
this.ideManager.getTargetDirs(ide).
|
|
68
|
+
this.ideManager.getTargetDirs(ide).flatMap((dir) => [
|
|
69
|
+
`${dir}/prr-*`,
|
|
70
|
+
`${dir}/.prr-installed.json`,
|
|
71
|
+
])
|
|
69
72
|
);
|
|
70
73
|
await this.updateGitignore(projectDir, config.outputFolder || '_prr-output', ideGitignorePatterns);
|
|
71
74
|
|
|
@@ -154,7 +157,7 @@ class Installer {
|
|
|
154
157
|
if (toAdd.length === 0) return;
|
|
155
158
|
|
|
156
159
|
const separator = content.endsWith('\n') ? '' : '\n';
|
|
157
|
-
await fs.appendFile(gitignorePath, `${separator}${toAdd.join('\n')}\n`, 'utf8');
|
|
160
|
+
await fs.appendFile(gitignorePath, `${separator}# PR Review Kit\n${toAdd.join('\n')}\n`, 'utf8');
|
|
158
161
|
await prompts.log.info(` ✓ .gitignore updated (${toAdd.join(', ')})`);
|
|
159
162
|
}
|
|
160
163
|
|