We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be7790b commit 84b6495Copy full SHA for 84b6495
packages/cli-v3/src/commands/init.ts
@@ -229,7 +229,10 @@ async function createTriggerDir(
229
throw new OutroCommandError();
230
}
231
232
- const triggerDir = resolve(process.cwd(), location);
+ // 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);
236
237
logger.debug({ triggerDir });
238
0 commit comments