swagger-editor-live icon indicating copy to clipboard operation
swagger-editor-live copied to clipboard

Walkaround issue #13

Open Rickaro opened this issue 4 years ago • 1 comments

For local package installation, swagger-editor-dist folder should be set 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
  |   | - 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

Rickaro avatar Apr 06 '20 09:04 Rickaro

similar issue #13

Rickaro avatar Apr 06 '20 09:04 Rickaro