Skip to content

Commit 67a599e

Browse files
authored
🐛 FIX: execAsync windows path (#122)
1 parent b7e1893 commit 67a599e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/baseai/src/build/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const buildMemory = async ({
109109
const displayName = path.dirname(file); // This is the last directory name
110110
try {
111111
const { stdout } = await execAsync(
112-
`npx tsx -e "import memoryConfig from '${inputFile}'; console.log(JSON.stringify(memoryConfig()))"`
112+
`npx tsx -e "import memoryConfig from '${JSON.stringify(inputFile)}'; console.log(JSON.stringify(memoryConfig()))"`
113113
);
114114

115115
await fs.writeFile(outputFile, stdout);
@@ -160,7 +160,7 @@ const buildTypeScriptFiles = async (
160160

161161
try {
162162
const { stdout } = await execAsync(
163-
`npx tsx -e "import config from '${inputFile}'; console.log(JSON.stringify(config()))"`
163+
`npx tsx -e "import config from '${JSON.stringify(inputFile)}'; console.log(JSON.stringify(config()))"`
164164
);
165165

166166
// Parse the JSON output

0 commit comments

Comments
 (0)