swagger-editor-live
swagger-editor-live copied to clipboard
Walkaround issue #13
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