Git Product home page Git Product logo

Comments (10)

mefellows avatar mefellows commented on September 17, 2024 1

Ah, the pactUrls requires the path to be absolute in the latest version. I'll update the docs accordingly, but for now patching your publish task like this should fix your problem:

var path = require('path');
pactUrls: [path.resolve(process.cwd(), 'pacts')],

from pact-js.

mefellows avatar mefellows commented on September 17, 2024 1

Probably, we'll happily accept a PR if you're willing :)

from pact-js.

jonathanconway avatar jonathanconway commented on September 17, 2024 1

Thanks for the opportunity! Very keen to. Hopefully soon!

from pact-js.

shavo007 avatar shavo007 commented on September 17, 2024

that worked perfectly. thanks.

out of interest, @mefellows why is it absolute now instead of relative?

from pact-js.

shavo007 avatar shavo007 commented on September 17, 2024

i will leave this issue opened for now until the doc has been updated.

from pact-js.

mefellows avatar mefellows commented on September 17, 2024

Thanks @shavo007, I'll follow up on that, short answer is I'm not sure.

from pact-js.

shavo007 avatar shavo007 commented on September 17, 2024

No worries mate

from pact-js.

mefellows avatar mefellows commented on September 17, 2024

Looks like it was an unintended consequence (albeit if you provided it with a directory it needed to be absolute anyway), I'll raise an enhancement request. It seems fairly low priority though.

from pact-js.

shavo007 avatar shavo007 commented on September 17, 2024

👍

from pact-js.

jonathanconway avatar jonathanconway commented on September 17, 2024

Can there not just be some sensible defaults around this kind of stuff? Like make pactUrls optional and just default it to /pacts under your project root?

from pact-js.

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.