Comments (11)
Odd, I was able to download and install it immediately after publishing, though I did have to specify it in the install npm i [email protected]
Yes and no about the semver thing. Technically it maybe should have been 10.0.0
since the change is not backwards compatible, but if you look at my note in the changelog, I justify the non-major version number change because --
was undocumented and unintended functionality. Think of it like using a private API of a library. No semver major/minor version is required for changing a private API since itβs undocumented and not intended for public use. --
was not intended for public use and it was definitely undocumented. (I didnβt even know about it!)
from env-cmd.
This has been implemented in the new 9.0.0
release π
from env-cmd.
Just updated to v9, one thing I ran into is passing args to the command that env-cmd
runs
Before
"start": "env-cmd ./config/.env.dev webpack-dev-server --config webpack.dev.js",
After
"start": "env-cmd -f ./config/.env.dev webpack-dev-server -- --config webpack.dev.js",
Notice the extra --
I had to pass to webpack
It makes sense now that env-cmd
is reading first level flags we need to tell --
, maybe we can add an example to the readme section?
from env-cmd.
I will try to install again in a few hours
hmmm..makes sense. Thanks for the explanation
from env-cmd.
Can confirm, issue has been resolved in 9.0.1. --
no longer needed to pass args
from env-cmd.
Moving to production soon so π€this was the only π
It's a very useful π¦ I'm more than happy to help.
from env-cmd.
You have found a good bug. My intent was to not have to use --
, but somehow my tests missed that. I have fixed my tests to catch the error, now I just need to fix the bug. Thank you so much for catching this so quickly!
from env-cmd.
Glad I could be of help.
from env-cmd.
9.0.1
has been published which should hopefully fix this issue π
from env-cmd.
Nice!
- How long do I have to wait for it to become available? (
npm install [email protected]
is resulting in npm ERR! notarget No matching version found for [email protected]) - I'm not very familiar with semver but should it have been 9.1.0 instead (since it's a potential breakage change)?
from env-cmd.
Great to hear! If you come across any other issues, let me know so I can get them resolved. I figured with such a large rewrite there would be issues, but hopefully that was the only one. I appreciate you reporting this issue and helping me resolve it too π
from env-cmd.
Related Issues (20)
- After build how to change .env file value? its possible to inject the value in proudction build without rebulding?
- env-cmd crashes HOT 1
- Is it possible to use env-cmd with docker?
- .env-cmdrc syntax error but prompts 'Error: Failed to find .rc file at default paths' HOT 1
- env-cmd -x is not working on Windows HOT 1
- .env-cmdrc return an error while working with Docker run command HOT 1
- Failed to find .env file if options are not in correct order
- Concatenation not working HOT 3
- Using -f is not using a local file, throwing error. HOT 3
- fails to run 'nyc mocha'
- Add a SetEnvVars API method
- dollar sign substitution is not working if the .env file is located in a custom path
- the function of _terminateProcess returns abnormal value
- Windows Git Bash + zsh without WSL
- Better errors if the JSON file is invalid
- Allow setting default env files locations
- How to launch app into launch.json
- This is driving me crazy: Error: Failed to find .env file at path: ./devOps/env/env.js HOT 5
- Looking for help maintaining project
- `environments` and `file` options may be mutually exclusive
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from env-cmd.