Skip to content

Commit 6feb158

Browse files
committed
Fix parsing of project path for cli init command
1 parent ef7f112 commit 6feb158

File tree

1 file changed

+4
-1
lines changed
  • packages/cli-v3/src/commands

1 file changed

+4
-1
lines changed

packages/cli-v3/src/commands/init.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,10 @@ async function createTriggerDir(
229229
throw new OutroCommandError();
230230
}
231231

232-
const triggerDir = resolve(process.cwd(), location);
232+
// Ensure that the path is always relative by stripping leading '/' if present
233+
const relativeLocation = location.replace(/^\//, "");
234+
235+
const triggerDir = resolve(process.cwd(), relativeLocation);
233236

234237
logger.debug({ triggerDir });
235238

0 commit comments

Comments
 (0)