dashboard
repositories
filestore
activity
search
login
刘苏义
/
ruoyi-api
forked from
ard/ruoyi-api
summary
commits
tree
docs
forks
compare
blame
|
history
|
raw
app光电查询修提交
zhangnaisong
2024-03-12
7b9bb72cd616ddbcb66e7d7384ee512334e64453
[~liusuyi/ruoyi-api.git]
/
ruoyi-ui
/
node_modules
/
@vue
/
cli-shared-utils
/
lib
/
pkg.js
1
2
3
4
5
6
7
8
9
10
const fs = require('fs')
const path = require('path')
const readPkg = require('read-pkg')
exports.resolvePkg = function (context) {
if (fs.existsSync(path.join(context, 'package.json'))) {
return readPkg.sync({ cwd: context })
}
return {}
}