Skip to content

Commit b0417e1

Browse files
committed
update build
1 parent ae48c0e commit b0417e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

genkit-tools/cli/src/utils/build-md.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ if (!fs.existsSync(jsContextPath) || !fs.existsSync(goContextPath)) {
4444
async function mdToTs(filePath, target) {
4545
try {
4646
const data = await fs.promises.readFile(filePath, 'utf8');
47-
const cleaned = JSON.stringify(data.trim());
47+
const cleaned = JSON.stringify(data.replace(/\r\n/g, '\n').trim());
4848
const final = `${AUTO_GEN_HEADER}\nexport const GENKIT_CONTEXT = ${cleaned}`;
4949
fs.writeFileSync(target, final);
5050
} catch (err) {

0 commit comments

Comments
 (0)