Giter VIP home page Giter VIP logo

Comments (6)

lukebatchelor avatar lukebatchelor commented on May 18, 2024 1

image

This is fixed in bolt 0.21.1!!

Thanks to @lachlanhunt for the PR.

from bolt.

lukebatchelor avatar lukebatchelor commented on May 18, 2024

Orly? I'll try to take a look today 👌

from bolt.

lukebatchelor avatar lukebatchelor commented on May 18, 2024

Ah okay. This is interesting, just thinking about the best way to resolve it.

Bolt doesn't exit automatically because we handle the errors ourselves in an external script (publish will actually return a list of packages that were successfully published and a list of unsuccessful attempts). That behaviour is probably not super consistent (commands should really use logging and exit codes, functions should return data).

We could either move the publish logic into an exposed function (similar to runWorkspaceTasks, getDependencyGraph, etc) and have the publish command just proxy to that, or we could add a flag to publish to tell it to exit on failure (either opt in or opt out).

Option 2 is probably easier, but option 1 is more correct...

from bolt.

lukebatchelor avatar lukebatchelor commented on May 18, 2024

I think we'll go with option 1.

@bradleyayers how much of a blocker is this for you? You could work around it pretty easily in the meantime (take a look at our script for reference). If it's urgent though, I'm happy to look at it this week?

from bolt.

bradleyayers avatar bradleyayers commented on May 18, 2024

Not a blocker for me, as it’s only happens when the NPM command fails, and that shouldn’t happen. It’s just a gotcha that I felt was worth raising so it can be fixed upstream. Thanks for looking into it!

from bolt.

lukebatchelor avatar lukebatchelor commented on May 18, 2024

Just an FYI, if you DO update to 0.21.1, be aware there was a minor breaking change, only if you were calling bolt.publish from a node script. You'll just need to change it to bolt.publishPackages and you'll be good though.
See #190

from bolt.

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.