Skip to content

Commit

Permalink
log 16
Browse files Browse the repository at this point in the history
  • Loading branch information
quenginedev committed Oct 29, 2022
1 parent b013597 commit 2b7b269
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ const deployPkgMgrMap = {

const deploy = async () => {
log({ message: "Retrieving project's meta data" });
const pkgStr = readFileSync(join(process.cwd(), "package.json"), {
const pkgStr = readFileSync(join(PROJECT_PATH, "package.json"), {
encoding: "utf8",
});
const pkg = JSON.parse(pkgStr);
startGroup(`Deploying project - ${pkg.name}`);
execSync(deployPkgMgrMap[SST_PKG_MANAGER], {
execSync(`cd ${PROJECT_PATH} && ${deployPkgMgrMap[SST_PKG_MANAGER]}`, {
stdio: "inherit",
shell: true,
encoding: "utf-8",
Expand Down

0 comments on commit 2b7b269

Please sign in to comment.