Skip to content

Commit 62bd1d4

Browse files
committed
fix create-env
1 parent ba4f01f commit 62bd1d4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bin/commands/config/create-env.js

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
import fs from 'fs';
2+
import path from 'path';
3+
import { fileURLToPath } from 'url';
4+
import { formatSuccess } from '../../utils/formatting.js'; // Add the .js extension
5+
6+
const __filename = fileURLToPath(import.meta.url);
7+
const __dirname = path.dirname(__filename);
8+
19
export async function createEnvFile() {
210
try {
311
// Check if .mongodb-rag.json exists

0 commit comments

Comments
 (0)