mirror of
https://github.com/bmadcode/BMAD-METHOD.git
synced 2025-12-29 16:14:59 +00:00
we only need one yaml lib
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
|
||||
const { glob } = require('glob');
|
||||
const yaml = require('js-yaml');
|
||||
const yaml = require('yaml');
|
||||
const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
const { validateAgentFile } = require('./schema/agent.js');
|
||||
@@ -49,7 +49,7 @@ async function main(customProjectRoot) {
|
||||
|
||||
try {
|
||||
const fileContent = fs.readFileSync(filePath, 'utf8');
|
||||
const agentData = yaml.load(fileContent);
|
||||
const agentData = yaml.parse(fileContent);
|
||||
|
||||
// Convert absolute path to relative src/ path for module detection
|
||||
const srcRelativePath = relativePath.startsWith('src/') ? relativePath : path.relative(project_root, filePath).replaceAll('\\', '/');
|
||||
|
||||
Reference in New Issue
Block a user