Tags: kentcdodds/cross-env
Tags
fix: remove env variables that don't exist from the converted commandβ¦ β¦s in Windows. (#149) * Remove trailing comma on arguments list (unsupported in Node v6 LTS) * Remove non-defined env variables from the command (and command args), since those have a different behaviour in Windows. * Fixed tests * Added new test cases * Fixed lint error
fix: Don't pass fn reference(`commandConvert`) to `commandArgs.map` (#β¦ β¦135) If a function reference is passed directly to `Array#map`, it is invoked with the array item, index, and the array. Instead of passing the function reference, invoke it explicitly with just the array item. See https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-fn-reference-in-iterator.md
fix: Normalize command only and not command args(windows) (#134) * fix: Normalize command only and not command args(windows) Command arguments can have URLs which should not be normalized. Add optional parameter `commandConvert`(default `false`) and normalize only the command, not the command arguments * test: Add tests for cmd normalization on windows index.test.js - should normalize command on windows - should not normalize command arguments on windows command.test.js - normalizes command on windows
fix: Resolve value of env variables before invoking cross-spawn (#95) * fix: Resolve value of env variables before invoking cross-spawn #90 * Refactored the main parsing loop BREAKING CHANGE: This is unlikely to break anyone, but now if you assign a variable to a variable (like `FOO=$BAR` with the value `$BAR` being assigned to `hello`, the command will be converted to `FOO=hello` whereas before it was `FOO=$BAR`).