Coder Social home page Coder Social logo

Comments (5)

TimothyJones avatar TimothyJones commented on June 21, 2024

Hmm. This is unexpected.

What is the nr command youโ€™re running there? Iโ€™m not familiar with it.

What happens if you remove that tag and commit and do:

npx commit-and-tag-version --dry-run --release-as 1.0.0

(note no double - before the arguments)

Are there any tags in this repository already?

from commit-and-tag-version.

henrikvilhelmberglund avatar henrikvilhelmberglund commented on June 21, 2024

nr is the run alias in https://github.com/antfu/ni so basically the same as npm run.

I tested nr release --dry-run --release-as 1.0.0 and it tagged 1.0.0 as expected so I guess my problem was the extra --. I think I copy pasted those from the README.

Is there a reason for the extra -- or is it safe to omit them?

from commit-and-tag-version.

TimothyJones avatar TimothyJones commented on June 21, 2024

You need those with npm run, so my guess is that nr isnโ€™t really an alias for npm run

from commit-and-tag-version.

henrikvilhelmberglund avatar henrikvilhelmberglund commented on June 21, 2024

You're right, nr isn't just npm run but includes the -- already so it's npm run --. Thus running the command in the screenshot with nr adds extra -- which breaks things. I didn't run npm with arguments before so I had no idea it needed -- at all (for example pnpm doesn't use this syntax)

I copied the -- part of the npm command by mistake, I should've run nr release --release-as 1.0.0 in my case. Makes sense. ๐Ÿ˜Š

Thanks for the help!

from commit-and-tag-version.

TimothyJones avatar TimothyJones commented on June 21, 2024

You're welcome! Glad it got fixed!

from commit-and-tag-version.

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.