Skip to content

Commit

Permalink
fix(cursor): reference docs instead of copying general.md (#88)
Browse files Browse the repository at this point in the history
Co-Authored-By: wqoy gqle <[email protected]>
  • Loading branch information
devin-ai-integration[bot] and wqoy gqle committed Dec 27, 2024
1 parent 893cb71 commit 3b26019
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/cursor-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@umijs/tnf": patch
---

Replace file copying of general.md with a reference message in generate_cursor.ts for better user experience (#88)
3 changes: 1 addition & 2 deletions src/generate/generate_cursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,5 @@ export async function generateCursor(opts: GenerateCursorOpts) {
fs.existsSync(generalFilePath),
`General file not found at ${generalFilePath}, please run \`tnf sync\` first.`,
);
const general = fs.readFileSync(generalFilePath, 'utf-8');
fs.writeFileSync(cursorRulesPath, general, 'utf-8');
fs.writeFileSync(cursorRulesPath, 'Please follow the docs in ./.tnf/docs/general.md', 'utf-8');
}

0 comments on commit 3b26019

Please sign in to comment.