diff --git a/package.json b/package.json index f2f19f3..d07805d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@winglibs/containers", - "version": "0.0.4", + "version": "0.0.5", "description": "Wing container support", "publishConfig": { "access": "public", diff --git a/utils.js b/utils.js index 35fe609..01212db 100644 --- a/utils.js +++ b/utils.js @@ -19,12 +19,11 @@ exports.shell = async function (command, args, cwd) { }; exports.entrypointDir = function (scope) { - const entrypoint = wingsdk.core.App.of(scope).entrypointDir; - if (!entrypoint) { - throw new Error('Entrypoint directory not found'); + if (typeof(scope.entrypointDir) == "string") { + return scope.entrypointDir; } - return entrypoint; + return exports.entrypointDir(scope.node.scope); }; exports.dirname = function() {