Skip to content

Commit d79f541

Browse files
committed
Switch from js-yaml to yaml
1 parent c2d8e57 commit d79f541

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async function actualLoad(configFile) {
7777
return require('./load-esm')(configFile);
7878
case '.yml':
7979
case '.yaml':
80-
return require('js-yaml').load(await readFile(configFile, 'utf8'));
80+
return require('yaml').parse(await readFile(configFile, 'utf8'));
8181
default:
8282
return JSON.parse(await readFile(configFile, 'utf8'));
8383
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"camelcase": "^5.3.1",
2626
"find-up": "^4.1.0",
2727
"get-package-type": "^0.1.0",
28-
"js-yaml": "^3.13.1",
29-
"resolve-from": "^5.0.0"
28+
"resolve-from": "^5.0.0",
29+
"yaml": "^2.8.1"
3030
},
3131
"devDependencies": {
3232
"semver": "^6.3.0",

0 commit comments

Comments
 (0)