We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae48c0e commit b0417e1Copy full SHA for b0417e1
genkit-tools/cli/src/utils/build-md.js
@@ -44,7 +44,7 @@ if (!fs.existsSync(jsContextPath) || !fs.existsSync(goContextPath)) {
44
async function mdToTs(filePath, target) {
45
try {
46
const data = await fs.promises.readFile(filePath, 'utf8');
47
- const cleaned = JSON.stringify(data.trim());
+ const cleaned = JSON.stringify(data.replace(/\r\n/g, '\n').trim());
48
const final = `${AUTO_GEN_HEADER}\nexport const GENKIT_CONTEXT = ${cleaned}`;
49
fs.writeFileSync(target, final);
50
} catch (err) {
0 commit comments