File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " rzpack-utils" ,
3
- "version" : " 0.0.5 " ,
3
+ "version" : " 0.0.6 " ,
4
4
"description" : " rzpack工具箱" ,
5
5
"main" : " ./dist/index.js" ,
6
6
"types" : " ./dist/index.d.ts" ,
Original file line number Diff line number Diff line change 1
- import { exec } from 'child_process'
1
+ import { exec } from 'node: child_process'
2
2
3
3
/**
4
4
* 执行命令
Original file line number Diff line number Diff line change 1
- import fs from 'fs'
2
1
import { createHash } from 'node:crypto'
3
- import path from 'path'
2
+ import fs from 'node:fs'
3
+ import path from 'node:path'
4
4
import * as esbuild from 'esbuild'
5
5
import { logError } from './log'
6
6
@@ -9,7 +9,7 @@ import { logError } from './log'
9
9
* @param file 文件路径
10
10
* @returns Promise<boolean>
11
11
*/
12
- export const fileExists = ( file : string ) : boolean => fs . existsSync ( file )
12
+ export const fileExists = ( file ? : string ) : boolean => fs . existsSync ( file )
13
13
/**
14
14
* 加载模块
15
15
* @param module 模块
Original file line number Diff line number Diff line change 1
- import fs from 'fs'
1
+ import fs from 'node: fs'
2
2
import check from 'check-dependencies'
3
3
import { fileExists , pathResolve } from './file'
4
4
You can’t perform that action at this time.
0 commit comments