Giter VIP home page Giter VIP logo

Comments (11)

toddbluhm avatar toddbluhm commented on May 23, 2024 2

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.

toddbluhm avatar toddbluhm commented on May 23, 2024 1

This has been implemented in the new 9.0.0 release πŸŽ‰

from env-cmd.

mwmcode avatar mwmcode commented on May 23, 2024 1

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.

mwmcode avatar mwmcode commented on May 23, 2024 1

I will try to install again in a few hours

hmmm..makes sense. Thanks for the explanation

from env-cmd.

mwmcode avatar mwmcode commented on May 23, 2024 1

Can confirm, issue has been resolved in 9.0.1. -- no longer needed to pass args

from env-cmd.

mwmcode avatar mwmcode commented on May 23, 2024 1

Moving to production soon so 🀞this was the only πŸ›
It's a very useful πŸ“¦ I'm more than happy to help.

from env-cmd.

toddbluhm avatar toddbluhm commented on May 23, 2024

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.

mwmcode avatar mwmcode commented on May 23, 2024

Glad I could be of help.

from env-cmd.

toddbluhm avatar toddbluhm commented on May 23, 2024

9.0.1 has been published which should hopefully fix this issue πŸŽ‰

from env-cmd.

mwmcode avatar mwmcode commented on May 23, 2024

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.

toddbluhm avatar toddbluhm commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.