Skip to content

Commit

Permalink
Fix website build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Jan 21, 2025
1 parent 9d190bb commit 1f2f704
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
4 changes: 2 additions & 2 deletions website/build/deploy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const cp = require("child_process");
const deploy = require("gh-pages");
import cp from "child_process";
import deploy from "gh-pages";

cp.execSync("npm run build", { stdio: "inherit" });

Expand Down
11 changes: 8 additions & 3 deletions website/build/editor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
const cp = require("child_process");
const fs = require("fs");
const JsZip = require("jszip");
import cp from "child_process";
import fs from "fs";
import JsZip from "jszip";
import path from "path";
import { fileURLToPath } from "url";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

const MIGRATE = `${__dirname}/../../packages/migrate`;
const EDITOR = `${__dirname}/../../packages/editor`;
Expand Down
9 changes: 7 additions & 2 deletions website/build/sitemap.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
const cp = require("child_process");
const fs = require("fs");
import cp from "child_process";
import fs from "fs";
import path from "path";
import { fileURLToPath } from "url";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

cp.execSync("next-sitemap", {
stdio: "inherit",
Expand Down
9 changes: 7 additions & 2 deletions website/build/typedoc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
const cp = require("child_process");
const fs = require("fs");
import cp from "child_process";
import fs from "fs";
import path from "path";
import { fileURLToPath } from "url";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

for (const pack of ["benchmark", "core", "e2e", "fetcher"]) {
const location = `${__dirname}/../../packages/${pack}`;
Expand Down

0 comments on commit 1f2f704

Please sign in to comment.