Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Commit f017658

Browse files
committed
fix(archive): fix archive.directory dont have link
1 parent d1438a0 commit f017658

4 files changed

Lines changed: 20 additions & 4 deletions

File tree

packages/cloudbase-next-builder/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,11 @@ export class NextBuilder extends Builder {
135135
});
136136
output.on('close', resolve);
137137
archive.on('error', reject);
138-
archive.directory(src, false);
138+
archive.glob('**/*', {
139+
cwd: src,
140+
dot: true,
141+
follow: true,
142+
});
139143
archive.pipe(output);
140144
archive.finalize();
141145
});

packages/cloudbase-node-builder/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@ export class NodeBuilder extends Builder {
9999
});
100100
output.on('close', resolve);
101101
archive.on('error', reject);
102-
archive.directory(src, false);
102+
archive.glob('**/*', {
103+
cwd: src,
104+
dot: true,
105+
follow: true,
106+
});
103107
archive.pipe(output);
104108
archive.finalize();
105109
});

packages/cloudbase-nuxt-builder/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,11 @@ export class NuxtBuilder extends Builder {
137137
});
138138
output.on('close', resolve);
139139
archive.on('error', reject);
140-
archive.directory(src, false);
140+
archive.glob('**/*', {
141+
cwd: src,
142+
dot: true,
143+
follow: true,
144+
});
141145
archive.pipe(output);
142146
archive.finalize();
143147
});

packages/framework-plugin-container/src/builder.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ export class ContainerBuilder extends Builder {
7474
});
7575
output.on('close', resolve);
7676
archive.on('error', reject);
77-
archive.directory(src, false);
77+
archive.glob('**/*', {
78+
cwd: src,
79+
dot: true,
80+
follow: true,
81+
});
7882
archive.pipe(output);
7983
archive.finalize();
8084
});

0 commit comments

Comments
 (0)