Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/symlink.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const askToOverwrite = (targetExists, folder) => {

// Symlink a folder
const createFolder = (folder, serverless) => {
const target = path.join(process.cwd(), folder.replace(/..\//g, ''));
const target = path.join(process.cwd(), path.basename(folder));

// Check if folder/file with symlink name already exists in top level
return askToOverwrite(exists(target) ? [target] : [], folder)
Expand Down