Path to swagger-editor-dist

For local package installation, swagger-editor-dist folder should be checked for existence, not only node_modules.

Currently, if new version of dependent module was installed globally, e.g. commander, then sub-node_modules will contain that folder only, and swagger-editor-dist will be installed in upper level

- package.json
  | - node_modules
  |   | - commander (v5.0)
  |   | - swagger-editor-dist
  |   | - openapi-swagger-editor-live 
  |   |   | - node_modules
  |   |   |  | - commander (v2.9.0)

in that case, npm swagger-editor-live file.yaml will fail with Error: ENOENT: no such file or directory

This path check should walk around that situation

if (!fs.existsSync(nodeModules + "/swagger-editor-dist")) {

swagger-editor-dist-path.patch

Edited by Rickaro
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information