Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Change from __dirname to process.cwd() #442

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Change from __dirname to process.cwd() #442

wants to merge 1 commit into from

Commits on Sep 28, 2016

  1. Change from __dirname to process.cwd()

    We're using swagger-node from Docker and are using a local copy of the swagger script from `./node_modules/.bin/swagger` to run `./node_modules/.bin/swagger project edit`. This doesn't serve `swagger-editor` correctly as `__dirname` resolves to `./node_modules/swagger` as this is where the script is running. We've made the above change to use `process.cwd()` so that we can reference swagger-editor correctly.
    andrewshawcare authored Sep 28, 2016
    Configuration menu
    Copy the full SHA
    bcf6dd9 View commit details
    Browse the repository at this point in the history