Skip to content

Tags: kentcdodds/cross-env

Tags

v5.1.1

Toggle v5.1.1's commit message
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

v5.1.0

Toggle v5.1.0's commit message
feat: introduce dollar sign escaping (#147)

* Introduce dollar sign escaping

* Fix typo in README.md

v5.0.5

Toggle v5.0.5's commit message
fix(docs): add malware warning to README

Also add codesponsor to README

v5.0.4

Toggle v5.0.4's commit message
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

v5.0.3

Toggle v5.0.3's commit message
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

v5.0.2

Toggle v5.0.2's commit message
fix: Handle relative path in cmd on windows (#130)

* fix: Normalize command to handle relative path on windows

* test: Normalize command for embedded env variable conversion test

* docs(contributors): Add @sudo-suhas

Closes #127

v5.0.1

Toggle v5.0.1's commit message
fix: Change splitter regex to use .* instead of .+ (#117)

The regex was using .+, which meant that it wasn't possible to unset variables.

Closes #114, Closes #116

v5.0.0

Toggle v5.0.0's commit message
fix(bin): add a bin entry for cross-env-shell

v4.0.0

Toggle v4.0.0's commit message
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`).

v3.2.4

Toggle v3.2.4's commit message
fix(args): make args conversion stateless (#85)

* fix(args): make args conversion stateless

* docs(args): replace short url by full url

* docs(contributors): add @hgwood