cross-conf-env
Advanced tools
Comparing version 1.0.6 to 1.0.7
# ChangeLog | ||
## 1.0.7 | ||
* Change | ||
* [Using a Config in a Redirect on Mac & Windows](https://github.com/akabekobeko/npm-cross-conf-env/issues/17) | ||
* [Node v7 support](https://github.com/akabekobeko/npm-cross-conf-env/issues/16) | ||
## 1.0.6 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "cross-conf-env", | ||
"description": "To cross-platform the config and root variable reference of package.json in npm-scripts.", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"author": "akabeko", | ||
@@ -49,13 +49,13 @@ "license": "MIT", | ||
"devDependencies": { | ||
"babel-cli": "^6.14.0", | ||
"babel-preset-latest": "^6.14.0", | ||
"babel-cli": "^6.18.0", | ||
"babel-preset-latest": "^6.16.0", | ||
"babel-preset-power-assert": "^1.0.0", | ||
"babel-register": "^6.14.0", | ||
"babel-register": "^6.18.0", | ||
"esdoc": "^0.4.8", | ||
"mocha": "^3.0.2", | ||
"power-assert": "^1.4.1" | ||
"mocha": "^3.2.0", | ||
"power-assert": "^1.4.2" | ||
}, | ||
"dependencies": { | ||
"cross-spawn": "^4.0.0" | ||
"cross-spawn": "^5.0.1" | ||
} | ||
} |
# npm-cross-conf-env | ||
![node v6, v7](https://img.shields.io/badge/node-v6%2C%20v7-green.svg) | ||
[![npm version](https://badge.fury.io/js/cross-conf-env.svg)](https://badge.fury.io/js/cross-conf-env) | ||
@@ -83,2 +84,31 @@ [![Build Status](https://travis-ci.org/akabekobeko/npm-cross-conf-env.svg?branch=master)](https://travis-ci.org/akabekobeko/npm-cross-conf-env) | ||
# Limitations | ||
`cross-conf-env` converts the value specified in `process.env`. | ||
It will not work if run from pipe in npm-scripts. | ||
```json | ||
{ | ||
"config": { | ||
"app": "MyApp", | ||
"test": "Test" | ||
}, | ||
"scripts": { | ||
"pipe": "cross-conf-env echo npm_package_config_var | cross-conf-env echo keep npm_package_config_test", | ||
} | ||
} | ||
``` | ||
results: | ||
``` | ||
$ npm run pipe | ||
Test | ||
echo: write: Broken pipe | ||
``` | ||
If concatenating npm-scripts we recommend [npm-run-all](https://www.npmjs.com/package/npm-run-all) rather than pipe. | ||
If it is `npm-run-all` can concatenate npm-scripts to cross platforms, and `cross-conf-env` will work as well. | ||
# ChangeLog | ||
@@ -85,0 +115,0 @@ |
9933
120
+ Addedcross-spawn@5.1.0(transitive)
+ Addedshebang-command@1.2.0(transitive)
+ Addedshebang-regex@1.0.0(transitive)
- Removedcross-spawn@4.0.2(transitive)
Updatedcross-spawn@^5.0.1