Update dependency swagger-ui to v4 (#25)

* Update dependency swagger-ui to v4

* Update dependency swagger-ui to v4

* Disable sed step in build.js

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Pavel Popov <popoffpavel@yandex.ru>
This commit is contained in:
renovate[bot] 2022-04-05 13:30:10 +03:00 committed by GitHub
parent 8eabda3649
commit b18abbde69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1830 additions and 23 deletions

1849
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -12,7 +12,7 @@
"portfinder": "1.0.28", "portfinder": "1.0.28",
"shelljs": "0.8.5", "shelljs": "0.8.5",
"swagger-repo": "1.5.1", "swagger-repo": "1.5.1",
"swagger-ui": "2.2.10" "swagger-ui": "4.10.3"
}, },
"private": true, "private": true,
"scripts": { "scripts": {

View File

@ -29,4 +29,4 @@ APIS.forEach(function (api) {
var SWAGGER_UI_DIST = Path.dirname(require.resolve('swagger-ui')); var SWAGGER_UI_DIST = Path.dirname(require.resolve('swagger-ui'));
rm('-rf', TARGET_DIR + '/swagger-ui/') rm('-rf', TARGET_DIR + '/swagger-ui/')
cp('-R', SWAGGER_UI_DIST, TARGET_DIR + '/swagger-ui/') cp('-R', SWAGGER_UI_DIST, TARGET_DIR + '/swagger-ui/')
sed('-i', 'http://petstore.swagger.io/v2/swagger.json', '../swagger.json', TARGET_DIR + '/swagger-ui/index.html') // sed('-i', 'http://petstore.swagger.io/v2/swagger.json', '../swagger.json', TARGET_DIR + '/swagger-ui/index.html')