File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -21,5 +21,4 @@ rm src/data/openapi.yaml.bak
21
21
22
22
echo
23
23
echo " ${BLUE} Converting YAML to JSON${NC} "
24
- npm install -g yamljs
25
- yaml2json src/data/openapi.yaml > src/data/spec.json
24
+ ./node_modules/yamljs/bin/yaml2json src/data/openapi.yaml > src/data/spec.json
Original file line number Diff line number Diff line change 67
67
"dotenv" : " ^8.0.0" ,
68
68
"lodash" : " ^4.17.11" ,
69
69
"md5" : " ^2.2.1" ,
70
- "randomstring" : " ^1.1.5"
70
+ "randomstring" : " ^1.1.5" ,
71
+ "yamljs" : " ^0.3.0"
71
72
}
72
73
}
Original file line number Diff line number Diff line change @@ -14400,6 +14400,14 @@ yaml-loader@^0.5.0:
14400
14400
dependencies:
14401
14401
js-yaml "^3.5.2"
14402
14402
14403
+ yamljs@^0.3.0:
14404
+ version "0.3.0"
14405
+ resolved "https://registry.yarnpkg.com/yamljs/-/yamljs-0.3.0.tgz#dc060bf267447b39f7304e9b2bfbe8b5a7ddb03b"
14406
+ integrity sha512-C/FsVVhht4iPQYXOInoxUM/1ELSf9EsgKH34FofQOp6hwCPrW4vG4w5++TED3xRUo8gD7l0P1J1dLlDYzODsTQ==
14407
+ dependencies:
14408
+ argparse "^1.0.7"
14409
+ glob "^7.0.5"
14410
+
14403
14411
yargs-parser@^11.1.1:
14404
14412
version "11.1.1"
14405
14413
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-11.1.1.tgz#879a0865973bca9f6bab5cbdf3b1c67ec7d3bcf4"
You can’t perform that action at this time.
0 commit comments