diff --git a/modules/node_modules/@knit/knit/tasks/publish.js b/modules/node_modules/@knit/knit/tasks/publish.js index 83a6ea0f..3ca68e91 100644 --- a/modules/node_modules/@knit/knit/tasks/publish.js +++ b/modules/node_modules/@knit/knit/tasks/publish.js @@ -10,16 +10,21 @@ const knit = require('@knit/knit'); const createPublishTask = (m) => ({ title: m, - task: ctx => execa('yarn', [ - 'publish', path.join(needle.paths.modules, m) - ]) + task: ctx => { + const moduleDir = path.join(needle.paths.modules, m); + return execa('yarn', [ + 'publish', moduleDir, + ], { + cwd: moduleDir, + }); + }, }); const tasks = [ { - title: "publishing updated modules", - task: ctx => new Listr(ctx.updated.map(createPublishTask), {concurrent: true}) + title: 'publishing updated modules', + task: ctx => new Listr(ctx.updated.map(createPublishTask), { concurrent: true }), }, -] +]; module.exports = tasks;