Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"exports": {
"./base": "./base.js",
"./next-js": "./next.js",
"./next.js": "./next.js",
"./react-internal": "./react-internal.js"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions packages/mdxai/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ export class CLI {
if ((await fs.stat(targetPath).catch(() => null))?.isDirectory()) {
const mdxFiles = await this.findMdxFiles(targetPath)
for (const file of mdxFiles) {
await processFile(file, { ...mergedOptions, mode: 'generate' })
await processFile(file as string, { ...mergedOptions, mode: 'generate' })
}
} else {
await processFile(targetPath, { ...mergedOptions, mode: 'generate' })
await processFile(targetPath as string, { ...mergedOptions, mode: 'generate' })
}
console.log('Generation completed successfully')
} catch (err) {
Expand All @@ -70,10 +70,10 @@ export class CLI {
if ((await fs.stat(targetPath).catch(() => null))?.isDirectory()) {
const mdxFiles = await this.findMdxFiles(targetPath)
for (const file of mdxFiles) {
await processFile(file, { ...mergedOptions, mode: 'edit' })
await processFile(file as string, { ...mergedOptions, mode: 'edit' })
}
} else {
await processFile(targetPath, { ...mergedOptions, mode: 'edit' })
await processFile(targetPath as string, { ...mergedOptions, mode: 'edit' })
}
console.log('Edit completed successfully')
} catch (err) {
Expand All @@ -100,7 +100,7 @@ export class CLI {

console.log(`Found ${files.length} files to process`)
for (const file of files) {
await processFile(file, mergedOptions)
await processFile(file as string, mergedOptions)
}
console.log('Batch processing completed successfully')
} catch (err) {
Expand Down
Loading