Skip to content

Commit dc09ce6

Browse files
authored
chore: formatting and improve readability in index.ts
1 parent 451c678 commit dc09ce6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packages/agent-cli/src/copilot/index.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ function findAllNodeModulesDirectories(
1010
}
1111

1212
const entries = fs
13-
.readdirSync(directory, { withFileTypes: true })
14-
.sort((a, b) => a.name.localeCompare(b.name, "en"));
13+
.readdirSync(directory, { withFileTypes: true })
14+
.sort((a, b) => a.name.localeCompare(b.name, 'en'));
1515
for (const entry of entries) {
1616
if (entry.isDirectory()) {
1717
if (entry.name === 'node_modules') {
@@ -100,8 +100,10 @@ export const generateCopilot = (rootPath: string) => {
100100
copilotInstructionsPath,
101101
'utf8'
102102
);
103-
const startMarker = '--- START: DB UX Copilot Instructions – do not edit below ---';
104-
const endMarker = '--- END: DB UX Copilot Instructions – do not edit above ---';
103+
const startMarker =
104+
'--- START: DB UX Copilot Instructions – do not edit below ---';
105+
const endMarker =
106+
'--- END: DB UX Copilot Instructions – do not edit above ---';
105107
const startIndex = copilotFileContent.indexOf(startMarker);
106108
const endIndex = copilotFileContent.indexOf(endMarker);
107109
if (startIndex !== -1 && endIndex !== -1 && endIndex > startIndex) {

0 commit comments

Comments
 (0)