Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
ae8b753a
U
uni-app
项目概览
DCloud
/
uni-app
14 天 前同步成功
通知
751
Star
38709
Fork
3642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
8
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
8
Issue
8
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
ae8b753a
编写于
9月 26, 2022
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: update checkVersion.js
上级
f256d633
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
42 addition
and
32 deletion
+42
-32
packages/uni-cli-shared/package.json
packages/uni-cli-shared/package.json
+4
-4
packages/uni-mp-compiler/package.json
packages/uni-mp-compiler/package.json
+2
-2
packages/uni-mp-vite/package.json
packages/uni-mp-vite/package.json
+1
-1
packages/vite-plugin-uni/package.json
packages/vite-plugin-uni/package.json
+2
-2
packages/vite-plugin-uni/script.js
packages/vite-plugin-uni/script.js
+22
-0
pnpm-lock.yaml
pnpm-lock.yaml
+10
-10
scripts/checkVersion.js
scripts/checkVersion.js
+1
-13
未找到文件。
packages/uni-cli-shared/package.json
浏览文件 @
ae8b753a
...
...
@@ -22,8 +22,8 @@
},
"dependencies"
:
{
"@ampproject/remapping"
:
"^2.1.2"
,
"@babel/core"
:
"^7.1
7.9
"
,
"@babel/parser"
:
"^7.1
7.9
"
,
"@babel/core"
:
"^7.1
8.13
"
,
"@babel/parser"
:
"^7.1
8.13
"
,
"@babel/types"
:
"^7.17.0"
,
"@dcloudio/uni-i18n"
:
"3.0.0-alpha-3060420220922001"
,
"@dcloudio/uni-shared"
:
"3.0.0-alpha-3060420220922001"
,
...
...
@@ -48,7 +48,7 @@
"fs-extra"
:
"^10.0.0"
,
"hash-sum"
:
"^2.0.0"
,
"jsonc-parser"
:
"^3.0.0"
,
"magic-string"
:
"^0.26.
1
"
,
"magic-string"
:
"^0.26.
3
"
,
"merge"
:
"^2.1.1"
,
"mime"
:
"^3.0.0"
,
"module-alias"
:
"^2.2.2"
,
...
...
@@ -58,7 +58,7 @@
"postcss-load-config"
:
"^3.1.1"
,
"postcss-modules"
:
"^4.3.0"
,
"postcss-selector-parser"
:
"^6.0.6"
,
"resolve"
:
"^1.22.
0
"
,
"resolve"
:
"^1.22.
1
"
,
"tapable"
:
"^2.2.0"
,
"xregexp"
:
"3.1.0"
},
...
...
packages/uni-mp-compiler/package.json
浏览文件 @
ae8b753a
...
...
@@ -19,8 +19,8 @@
"license"
:
"Apache-2.0"
,
"gitHead"
:
"33e807d66e1fe47e2ee08ad9c59247e37b8884da"
,
"dependencies"
:
{
"@babel/generator"
:
"^7.1
7.9
"
,
"@babel/parser"
:
"^7.1
7.9
"
,
"@babel/generator"
:
"^7.1
8.13
"
,
"@babel/parser"
:
"^7.1
8.13
"
,
"@babel/types"
:
"^7.17.0"
,
"@dcloudio/uni-cli-shared"
:
"3.0.0-alpha-3060420220922001"
,
"@dcloudio/uni-shared"
:
"3.0.0-alpha-3060420220922001"
,
...
...
packages/uni-mp-vite/package.json
浏览文件 @
ae8b753a
...
...
@@ -25,7 +25,7 @@
"@vue/compiler-sfc"
:
"3.2.39"
,
"@vue/shared"
:
"3.2.39"
,
"debug"
:
"^4.3.3"
,
"magic-string"
:
"^0.26.
1
"
"magic-string"
:
"^0.26.
3
"
},
"gitHead"
:
"33e807d66e1fe47e2ee08ad9c59247e37b8884da"
,
"devDependencies"
:
{
...
...
packages/vite-plugin-uni/package.json
浏览文件 @
ae8b753a
...
...
@@ -25,9 +25,9 @@
},
"license"
:
"Apache-2.0"
,
"dependencies"
:
{
"@babel/core"
:
"^7.1
7.9
"
,
"@babel/core"
:
"^7.1
8.13
"
,
"@babel/plugin-syntax-import-meta"
:
"^7.10.4"
,
"@babel/plugin-transform-typescript"
:
"^7.1
6.8
"
,
"@babel/plugin-transform-typescript"
:
"^7.1
8.12
"
,
"@dcloudio/uni-cli-shared"
:
"3.0.0-alpha-3060420220922001"
,
"@dcloudio/uni-shared"
:
"3.0.0-alpha-3060420220922001"
,
"@rollup/pluginutils"
:
"^4.2.0"
,
...
...
packages/vite-plugin-uni/script.js
0 → 100644
浏览文件 @
ae8b753a
const
fs
=
require
(
'
fs
'
)
const
path
=
require
(
'
path
'
)
function
resolvePkgPath
(
pkg
)
{
const
pkgPath
=
path
.
resolve
(
require
.
resolve
(
pkg
),
'
../../package.json
'
)
if
(
fs
.
existsSync
(
pkgPath
))
{
return
pkgPath
}
throw
`
${
pkgPath
}
not found`
}
module
.
exports
=
{
vuePkgs
:
[
require
.
resolve
(
'
vite/package.json
'
),
resolvePkgPath
(
'
@vitejs/plugin-vue
'
),
resolvePkgPath
(
'
@vitejs/plugin-vue-jsx
'
),
resolvePkgPath
(
'
@vitejs/plugin-legacy
'
),
require
.
resolve
(
'
@vue/compiler-core/package.json
'
),
require
.
resolve
(
'
@vue/compiler-dom/package.json
'
),
require
.
resolve
(
'
@vue/compiler-sfc/package.json
'
),
],
}
pnpm-lock.yaml
浏览文件 @
ae8b753a
...
...
@@ -299,8 +299,8 @@ importers:
packages/uni-cli-shared
:
specifiers
:
'
@ampproject/remapping'
:
^2.1.2
'
@babel/core'
:
^7.1
7.9
'
@babel/parser'
:
^7.1
7.9
'
@babel/core'
:
^7.1
8.13
'
@babel/parser'
:
^7.1
8.13
'
@babel/types'
:
^7.17.0
'
@dcloudio/uni-i18n'
:
3.0.0-alpha-3060420220922001
'
@dcloudio/uni-shared'
:
3.0.0-alpha-3060420220922001
...
...
@@ -336,7 +336,7 @@ importers:
fs-extra
:
^10.0.0
hash-sum
:
^2.0.0
jsonc-parser
:
^3.0.0
magic-string
:
^0.26.
1
magic-string
:
^0.26.
3
merge
:
^2.1.1
mime
:
^3.0.0
module-alias
:
^2.2.2
...
...
@@ -347,7 +347,7 @@ importers:
postcss-load-config
:
^3.1.1
postcss-modules
:
^4.3.0
postcss-selector-parser
:
^6.0.6
resolve
:
^1.22.
0
resolve
:
^1.22.
1
tapable
:
^2.2.0
vue
:
3.2.39
xregexp
:
3.1.0
...
...
@@ -570,8 +570,8 @@ importers:
packages/uni-mp-compiler
:
specifiers
:
'
@babel/generator'
:
^7.1
7.9
'
@babel/parser'
:
^7.1
7.9
'
@babel/generator'
:
^7.1
8.13
'
@babel/parser'
:
^7.1
8.13
'
@babel/types'
:
^7.17.0
'
@dcloudio/uni-cli-shared'
:
3.0.0-alpha-3060420220922001
'
@dcloudio/uni-shared'
:
3.0.0-alpha-3060420220922001
...
...
@@ -692,7 +692,7 @@ importers:
'
@vue/compiler-sfc'
:
3.2.39
'
@vue/shared'
:
3.2.39
debug
:
^4.3.3
magic-string
:
^0.26.
1
magic-string
:
^0.26.
3
dependencies
:
'
@dcloudio/uni-cli-shared'
:
link:../uni-cli-shared
'
@dcloudio/uni-i18n'
:
link:../uni-i18n
...
...
@@ -866,9 +866,9 @@ importers:
packages/vite-plugin-uni
:
specifiers
:
'
@babel/core'
:
^7.1
7.9
'
@babel/core'
:
^7.1
8.13
'
@babel/plugin-syntax-import-meta'
:
^7.10.4
'
@babel/plugin-transform-typescript'
:
^7.1
6.8
'
@babel/plugin-transform-typescript'
:
^7.1
8.12
'
@dcloudio/uni-cli-shared'
:
3.0.0-alpha-3060420220922001
'
@dcloudio/uni-shared'
:
3.0.0-alpha-3060420220922001
'
@rollup/pluginutils'
:
^4.2.0
...
...
@@ -3084,7 +3084,7 @@ packages:
'
@babel/plugin-syntax-import-meta'
:
7.10.4_@babel+core@7.19.1
'
@babel/plugin-transform-typescript'
:
7.19.1_@babel+core@7.19.1
'
@vue/babel-plugin-jsx'
:
1.1.1_@babel+core@7.19.1
vite
:
3.1.3
_terser@5.15.0
vite
:
3.1.3
vue
:
3.2.39
transitivePeerDependencies
:
-
supports-color
...
...
scripts/checkVersion.js
浏览文件 @
ae8b753a
...
...
@@ -106,19 +106,7 @@ function resolvePkgDeps(pkgPath) {
resolveDeps
(
name
,
peerDependencies
)
}
const
paths
=
[
path
.
resolve
(
__dirname
,
'
../packages/vite-plugin-uni/node_modules
'
),
]
const
vuePkgs
=
[
require
.
resolve
(
'
vite/package.json
'
),
require
.
resolve
(
'
@vitejs/plugin-vue/package.json
'
),
require
.
resolve
(
'
@vitejs/plugin-vue-jsx/package.json
'
),
require
.
resolve
(
'
@vitejs/plugin-legacy/package.json
'
,
{
paths
}),
require
.
resolve
(
'
@vue/compiler-core/package.json
'
,
{
paths
}),
require
.
resolve
(
'
@vue/compiler-dom/package.json
'
,
{
paths
}),
require
.
resolve
(
'
@vue/compiler-sfc/package.json
'
,
{
paths
}),
]
const
{
vuePkgs
}
=
require
(
'
../packages/vite-plugin-uni/script.js
'
)
function
checkDeps
()
{
vuePkgs
.
forEach
((
pkg
)
=>
resolvePkgDeps
(
pkg
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录