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 c2d8e57 commit d79f541Copy full SHA for d79f541
index.js
@@ -77,7 +77,7 @@ async function actualLoad(configFile) {
77
return require('./load-esm')(configFile);
78
case '.yml':
79
case '.yaml':
80
- return require('js-yaml').load(await readFile(configFile, 'utf8'));
+ return require('yaml').parse(await readFile(configFile, 'utf8'));
81
default:
82
return JSON.parse(await readFile(configFile, 'utf8'));
83
}
package.json
@@ -25,8 +25,8 @@
25
"camelcase": "^5.3.1",
26
"find-up": "^4.1.0",
27
"get-package-type": "^0.1.0",
28
- "js-yaml": "^3.13.1",
29
- "resolve-from": "^5.0.0"
+ "resolve-from": "^5.0.0",
+ "yaml": "^2.8.1"
30
},
31
"devDependencies": {
32
"semver": "^6.3.0",
0 commit comments