仪表盘
版本库
文件存储
活动
搜索
登录
main
/
testApp
在线考试教育APP
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
提交
马宇豪
2024-08-29
893ff90c6e21fa3a5241a8ae9b33836037cd5912
[testApp.git]
/
node_modules
/
npm
/
node_modules
/
@npmcli
/
run-script
/
lib
/
is-server-package.js
1
2
3
4
5
6
7
8
9
10
11
const { stat } = require('node:fs/promises')
const { resolve } = require('node:path')
module.exports = async path => {
try {
const st = await stat(resolve(path, 'server.js'))
return st.isFile()
} catch (er) {
return false
}
}