更新脚本修改,福利应用删除
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"),
|
||||
|
||||
Reference in New Issue
Block a user