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