Skip to content

Commit 03bef68

Browse files
revert some changes
1 parent 7dae7c9 commit 03bef68

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/sys/node/node-copy-tasks.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,7 @@ async function processGlobTask(copyTask: Required<d.CopyTask>, srcDir: string):
6363
function createGlobCopyTask(copyTask: Required<d.CopyTask>, srcDir: string, globRelPath: string): Required<d.CopyTask> {
6464
const dest = path.join(copyTask.dest, copyTask.keepDirStructure ? globRelPath : path.basename(globRelPath));
6565
return {
66-
/**
67-
* If the `src` entry is already an absolute path, we should remove it from the `globRelPath`
68-
*/
69-
src: path.join(srcDir, globRelPath.replace(srcDir, '')),
66+
src: path.join(srcDir, globRelPath),
7067
dest,
7168
ignore: copyTask.ignore,
7269
warn: copyTask.warn,

0 commit comments

Comments
 (0)