Skip to content

Commit 8094f71

Browse files
copy the swift-docc-render build instead of using --dest
1 parent 220b397 commit 8094f71

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/build_swift_docc_render.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414
/* eslint-disable no-console */
15-
import { mkdir, readdir, rm, stat } from "fs/promises";
15+
import { cp, readdir, rm, stat } from "fs/promises";
1616
import * as path from "path";
1717
import * as semver from "semver";
1818
import simpleGit, { ResetMode } from "simple-git";
@@ -69,16 +69,16 @@ main(async () => {
6969
}
7070
checkNodeVersion();
7171
await rm(outputDirectory, { force: true, recursive: true });
72-
await mkdir(outputDirectory, { recursive: true });
73-
await withTemporaryDirectory("build-swift-docc-render_", async buildDirectory => {
72+
await withTemporaryDirectory("update-swift-docc-render_", async buildDirectory => {
7473
const swiftDocCRenderDirectory = await cloneSwiftDocCRender(buildDirectory);
7574
await exec("npm", ["install"], { cwd: swiftDocCRenderDirectory });
76-
await exec("npx", ["vue-cli-service", "build", "--dest", outputDirectory], {
75+
await exec("npx", ["vue-cli-service", "build"], {
7776
cwd: swiftDocCRenderDirectory,
7877
env: {
7978
...process.env,
8079
VUE_APP_TARGET: "ide",
8180
},
8281
});
82+
await cp(path.join(swiftDocCRenderDirectory, "dist"), outputDirectory, { recursive: true });
8383
});
8484
});

0 commit comments

Comments
 (0)