Skip to content

Commit afd2487

Browse files
committed
chore: lint
1 parent 9e351f6 commit afd2487

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

packages/crawl/src/cli.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { CrawlProgress } from './crawl.ts'
22
import type { CrawlOptions } from './types.ts'
3-
import { readFileSync, writeFileSync, unlinkSync } from 'node:fs'
4-
import { accessSync, constants, mkdirSync } from 'node:fs'
3+
import { accessSync, constants, mkdirSync, readFileSync, unlinkSync, writeFileSync } from 'node:fs'
54
import { fileURLToPath } from 'node:url'
65
import * as p from '@clack/prompts'
76
import { dirname, join, resolve } from 'pathe'
@@ -20,10 +19,10 @@ function checkOutputDirectoryPermissions(outputDir: string): { success: boolean,
2019
try {
2120
// Try to create the directory if it doesn't exist
2221
mkdirSync(outputDir, { recursive: true })
23-
22+
2423
// Check if we can write to the directory
2524
accessSync(outputDir, constants.W_OK)
26-
25+
2726
// Try to create a test file to ensure we can actually write
2827
const testFile = join(outputDir, '.mdream-test')
2928
try {
@@ -33,28 +32,28 @@ function checkOutputDirectoryPermissions(outputDir: string): { success: boolean,
3332
catch (err) {
3433
return {
3534
success: false,
36-
error: `Cannot write to output directory: ${err instanceof Error ? err.message : 'Unknown error'}`
35+
error: `Cannot write to output directory: ${err instanceof Error ? err.message : 'Unknown error'}`,
3736
}
3837
}
39-
38+
4039
return { success: true }
4140
}
4241
catch (err) {
4342
if (err instanceof Error) {
4443
if (err.message.includes('EACCES')) {
4544
return {
4645
success: false,
47-
error: `Permission denied: Cannot write to output directory '${outputDir}'. Please check permissions or run with appropriate privileges.`
46+
error: `Permission denied: Cannot write to output directory '${outputDir}'. Please check permissions or run with appropriate privileges.`,
4847
}
4948
}
5049
return {
5150
success: false,
52-
error: `Failed to access output directory: ${err.message}`
51+
error: `Failed to access output directory: ${err.message}`,
5352
}
5453
}
5554
return {
5655
success: false,
57-
error: 'Failed to access output directory'
56+
error: 'Failed to access output directory',
5857
}
5958
}
6059
}

packages/llms-db/build.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ export default defineBuildConfig({
88
},
99
],
1010
})
11-

0 commit comments

Comments
 (0)