更新脚本修改,福利应用删除
This commit is contained in:
@@ -80,7 +80,8 @@ if (!buildId) throw new Error(`${buildDirectory}/BUILD_ID 为空,请先 pnpm b
|
||||
|
||||
await rm(destination, { recursive: true, force: true });
|
||||
await mkdir(destination, { recursive: true });
|
||||
await cp(resolve(buildDirectory, "standalone"), destination, { recursive: true });
|
||||
// verbatimSymlinks:保留 pnpm 的相对软链;默认 cp 会改写成本机绝对路径,上传到服务器后软链失效
|
||||
await cp(resolve(buildDirectory, "standalone"), destination, { recursive: true, verbatimSymlinks: true });
|
||||
await cp(resolve("public"), resolve(destination, "public"), { recursive: true });
|
||||
await cp(
|
||||
resolve(buildDirectory, "static"),
|
||||
|
||||
@@ -108,8 +108,10 @@ for (const entry of packages) {
|
||||
|
||||
await rm(target, { recursive: true, force: true });
|
||||
// 必须保留 standalone/pnpm 软链布局;dereference 会拆掉 @swc/helpers 等嵌套路径
|
||||
// verbatimSymlinks:软链保持相对路径,否则会被改写成本机绝对路径
|
||||
await cp(source, target, {
|
||||
recursive: true,
|
||||
verbatimSymlinks: true,
|
||||
filter: (path) => {
|
||||
const name = basename(path);
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user