1 Star 0 Fork 2

f1818/naive-ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.pnpmfile.cjs 878 Bytes
一键复制 编辑 原始数据 按行查看 历史
07akioni 提交于 2022-07-07 01:43 . chore: fix typo
// We will lock vue version if there's regression
const lockVueVersion = false
const vueVersion = '3.2.36'
const isSameVersionVuePackage = (pkgName) =>
[
'vue',
'@vue/shared',
'@vue/compiler-sfc',
'@vue/server-renderer',
'@vue/reactivity',
'@vue/reactivity-transform',
'@vue/compiler-dom',
'@vue/compiler-ssr',
'@vue/compiler-core'
].some((name) => name === pkgName)
function readPackage(pkg) {
if (isSameVersionVuePackage(pkg.name)) {
pkg.version = vueVersion
}
;['dependencies', 'peerDependencies'].forEach((depsType) => {
const deps = { ...pkg[depsType] }
for (dep in pkg[depsType]) {
if (isSameVersionVuePackage(dep)) {
deps[dep] = vueVersion
}
}
pkg[depsType] = deps
})
return pkg
}
module.exports = lockVueVersion
? {
hooks: {
readPackage
}
}
: {}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/f1818/naive-ui.git
git@gitee.com:f1818/naive-ui.git
f1818
naive-ui
naive-ui
main

搜索帮助