Skip to content

Relative paths #2

Open
Open

Description

@blackxored

This seems to be a common issue with babel plugins, we're doing relative reads (or dotenv ends up doing relative read), so a path with something like '../../.env' (lerna setup, I know :() starts failing.
Solved in a fork but wondering how to handle or whether to relay upstream.

Activity

  1. brysgo commented on Sep 8, 2017

    @brysgo
    Owner

    Thanks for the heads up, you can always open a PR with WIP in the title and we can discuss. In the meantime I will look at your branch and think about it.

  2. brysgo commented on Sep 10, 2017

    @brysgo
    Owner

    Just looked at your patch, I will merge it if you submit a PR.

  3. blackxored commented on Sep 10, 2017

    @blackxored
    Author
  4. brysgo commented on Sep 11, 2017

    @brysgo
    Owner

    Not sure I understand the scenario you are thinking of. If I recall correctly, what you've done is check for .. in the path and resolve it using the node API if it has dots. Did I miss read your solution?

  5. blackxored commented on Sep 12, 2017

    @blackxored
    Author
  6. brysgo commented on Sep 12, 2017

    @brysgo
    Owner

    You are right, I made some faulty assumptions about the adoption of this package. If you think it is a broader question of babel plugins, it may be worth asking @hzoo.

  7. brysgo commented on Sep 16, 2017

    @brysgo
    Owner

    @blackxored - I just added a test suite with a simple test, obviously it will need more test cases, but now at least it is there and running in CI. You made me realize this has wider adoption than I thought, so I am going to put a little effort into cleaning it up a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions