@popoverai/dotrequirements 0.20.0 → 0.20.1
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/commands/link.js +2 -0
- package/package.json +1 -1
package/dist/commands/link.js
CHANGED
|
@@ -6,6 +6,7 @@ import { getConvexUrl } from '../config.js';
|
|
|
6
6
|
import { brand } from '../utils/brand.js';
|
|
7
7
|
import { selectTeam, selectProject, getOrCreateProjectSecret, promptExpiryDays } from '../utils/project-selector.js';
|
|
8
8
|
import { findProjectRoot, readProjectSettings, writeProjectSettings, } from '../utils/project-settings.js';
|
|
9
|
+
import { ensureGitignore } from '../utils/gitignore.js';
|
|
9
10
|
/**
|
|
10
11
|
* Link command - connect or reconnect local project to cloud.
|
|
11
12
|
*
|
|
@@ -85,6 +86,7 @@ export async function linkCommand() {
|
|
|
85
86
|
}
|
|
86
87
|
// LINK-6: Write credentials to project-settings.json
|
|
87
88
|
writeProjectSettings(projectRoot, { projectId, projectSecret: secret });
|
|
89
|
+
ensureGitignore(projectRoot);
|
|
88
90
|
console.log('✓ Wrote credentials to .requirements/project-settings.json');
|
|
89
91
|
// LINK-7: Optionally pull requirements
|
|
90
92
|
const shouldPull = await promptConfirm('Pull requirements from cloud now?', true);
|