Skip to content

Commit 8130928

Browse files
fix build issues
1 parent 757d772 commit 8130928

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

client/config/test/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path, { dirname } from "node:path";
22
import { fileURLToPath } from "node:url";
3-
import { buildVars } from "./buildVars.js";
3+
import { buildVars } from "../../scripts/buildVars.js";
44

55
export function currentDirName(importMetaUrl) {
66
return dirname(fileURLToPath(importMetaUrl));

client/scripts/build.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
import fs from "node:fs";
2-
import path from "node:path";
2+
import path, { dirname } from "node:path";
33
import https from "node:https";
4+
import { fileURLToPath } from "node:url";
45
import shell from "shelljs";
56
import chalk from "chalk";
67
import axios from "axios";
7-
import { buildVars } from "../dev-utils/buildVars.js";
8-
import { currentDirName, readJson } from "../dev-utils/util.js";
8+
import { buildVars } from "./buildVars.js";
9+
10+
export function readJson(file) {
11+
return JSON.parse(fs.readFileSync(file).toString());
12+
}
13+
14+
export function currentDirName(importMetaUrl) {
15+
return dirname(fileURLToPath(importMetaUrl));
16+
}
917

1018
const builtinPlugins = ["lowcoder-comps"];
1119
const curDirName = currentDirName(import.meta.url);
File renamed without changes.

0 commit comments

Comments
 (0)