diff --git a/package.json b/package.json index c594562fc..a8dadc9ad 100644 --- a/package.json +++ b/package.json @@ -20,8 +20,8 @@ "build": "grunt clean:all && grunt build", "build:server": "grunt clean:server && grunt build:server", "build:client": "grunt clean:client && grunt build:client", - "prebuild:docs": "(! command -v swag &> /dev/null) && go get -u github.com/swaggo/swag/cmd/swag", - "build:docs": "cd api && swag init -g ./http/handler/handler.go --markdownFiles ./", + "prebuild:docs": "go install github.com/swaggo/swag/cmd/swag@v1.7.1", + "build:docs": "cd api && swag init -g ./http/handler/handler.go --parseDependency --parseInternal --parseDepth 2 --markdownFiles ./", "clean": "grunt clean:all", "start": "grunt start", "start:clean": "grunt clean:all && grunt start",