mirror of
https://github.com/bmad-code-org/BMAD-METHOD.git
synced 2026-01-30 04:32:02 +00:00
we only need one yaml lib
This commit is contained in:
@@ -269,7 +269,7 @@ The validation is integrated into the GitHub Actions workflow:
|
||||
## Dependencies
|
||||
|
||||
- **zod**: Schema validation library
|
||||
- **js-yaml**: YAML parsing
|
||||
- **yaml**: YAML parsing
|
||||
- **glob**: File pattern matching
|
||||
- **c8**: Code coverage reporting
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
const yaml = require('js-yaml');
|
||||
const yaml = require('yaml');
|
||||
const { validateAgentFile } = require('../tools/schema/agent.js');
|
||||
const { glob } = require('glob');
|
||||
|
||||
@@ -182,7 +182,7 @@ function runTest(filePath) {
|
||||
let agentData;
|
||||
|
||||
try {
|
||||
agentData = yaml.load(fileContent);
|
||||
agentData = yaml.parse(fileContent);
|
||||
} catch (parseError) {
|
||||
// YAML parse error
|
||||
if (shouldPass) {
|
||||
|
||||
Reference in New Issue
Block a user