backstage-cli: remove dependency on js-yaml

Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
This commit is contained in:
MT Lewis
2024-09-10 14:09:04 +01:00
parent 7dbf877e8d
commit ac9dc88477
3 changed files with 2 additions and 4 deletions
-1
View File
@@ -117,7 +117,6 @@
"jest-css-modules": "^2.1.0",
"jest-environment-jsdom": "^29.0.2",
"jest-runtime": "^29.0.2",
"js-yaml": "^4.1.0",
"json-schema": "^0.4.0",
"lodash": "^4.17.21",
"mini-css-extract-plugin": "^2.4.2",
+2 -2
View File
@@ -25,7 +25,7 @@ import chalk from 'chalk';
import ora from 'ora';
import semver from 'semver';
import { OptionValues } from 'commander';
import yaml from 'js-yaml';
import yaml from 'yaml';
import z from 'zod';
import { isError, NotFoundError } from '@backstage/errors';
import { resolve as resolvePath } from 'path';
@@ -483,7 +483,7 @@ async function getHasYarnPlugin() {
return false;
}
const parseResult = yarnRcSchema.safeParse(yaml.load(yarnRcContent));
const parseResult = yarnRcSchema.safeParse(yaml.parse(yarnRcContent));
if (!parseResult.success) {
throw new Error(
-1
View File
@@ -3993,7 +3993,6 @@ __metadata:
jest-css-modules: ^2.1.0
jest-environment-jsdom: ^29.0.2
jest-runtime: ^29.0.2
js-yaml: ^4.1.0
json-schema: ^0.4.0
lodash: ^4.17.21
mini-css-extract-plugin: ^2.4.2