mesg-foundation / js-sdk

Javascript mono-repo with all the tools to interact with MESG
https://mesg.com
4 stars 4 forks source link

Command dev should be compatible with relative path for services from app folder #240

Closed NicolasMahe closed 4 years ago

NicolasMahe commented 4 years ago

Currently, the command dev is using the path of the current folder (the path of the terminal) to search the source of the services indicated in the process files. But if the terminal is not executed in the same folder as the process files, then the relative path to the services doesn't work. For example: app/process.yml:

name: test
steps:
  - type: trigger
    key: interval
    instance:
      src: services/service-emit-event-interval
    eventKey: every_10_seconds
  - type: task
    instance:
      src: services/service-js-function
    taskKey: execute
    inputs:
      code: "module.export = function(value) { return true }"
      inputs:
        foo: 42

command that doesn't work:

mesg-cli dev ./app

command that work:

cd app
mesg-cli dev ./
antho1404 commented 4 years ago

Issue migrated to liteflow-labs/liteflow-js#13