Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.

feat: Convert list delimiters for PATH-style env variables #93

Merged
merged 3 commits into from
Mar 23, 2017

Commits on Mar 22, 2017

  1. feat: Convert list delimiters for PATH-style env variables

    In Windows, env variables that represent a list (such as PATH or NODE_PATH) separate their elements
    using a semicolon(;), but in UNIX they're separated using a colon (:).
    
    This commit adds a conversion layer, so regardless of how the delimiter is written when calling
    cross-env, it will be converted to the correct platform delimiter at runtime. To interpret a colon/semicolon
    literally instead, preced it with a backslash, like this: "cross-env VAR=semi\\;colon\\:"
    
    BREAKING CHANGE: If an env variable has : or ; in its value, it will be converted to : on UNIX
    systems or ; on Windows systems. To keep the old functionality, you will need to escape those
    characters with a backslash.
    
    kentcdodds#80
    Daniel Rey Lopez committed Mar 22, 2017
    Configuration menu
    Copy the full SHA
    028d9c1 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2017

  1. chore: Add myself (DanReyLop) to the contributors list

    Daniel Rey Lopez committed Mar 23, 2017
    Configuration menu
    Copy the full SHA
    03ec006 View commit details
    Browse the repository at this point in the history
  2. Simplified logic. Now only : (UNIX-style) are converted to ; (Windows…

    …-style), not the other way around
    Daniel Rey Lopez committed Mar 23, 2017
    Configuration menu
    Copy the full SHA
    021e1df View commit details
    Browse the repository at this point in the history