File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 11import path , { dirname } from "node:path" ;
22import { fileURLToPath } from "node:url" ;
3- import { buildVars } from "./buildVars.js" ;
3+ import { buildVars } from "../../scripts /buildVars.js" ;
44
55export function currentDirName ( importMetaUrl ) {
66 return dirname ( fileURLToPath ( importMetaUrl ) ) ;
Original file line number Diff line number Diff line change 11import fs from "node:fs" ;
2- import path from "node:path" ;
2+ import path , { dirname } from "node:path" ;
33import https from "node:https" ;
4+ import { fileURLToPath } from "node:url" ;
45import shell from "shelljs" ;
56import chalk from "chalk" ;
67import 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
1018const builtinPlugins = [ "lowcoder-comps" ] ;
1119const curDirName = currentDirName ( import . meta. url ) ;
File renamed without changes.
You can’t perform that action at this time.
0 commit comments