yh-pub 2.0.24 → 2.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/vite.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yh-pub",
3
- "version": "2.0.24",
3
+ "version": "2.0.25",
4
4
  "type": "module",
5
5
  "description": "元海 Vue3 基础包",
6
6
  "main": "./index.es.js",
package/vite.js CHANGED
@@ -21,7 +21,7 @@ function resolveYhVersions(cwd) {
21
21
  const result = [];
22
22
 
23
23
  for (const [name, spec] of Object.entries(deps)) {
24
- if (!name.startsWith('yh-') || name != "slw") continue;
24
+ if (!name.startsWith('yh-') && name !== 'slw') continue;
25
25
  const s = String(spec);
26
26
  // file:../packages/xxx -> 解析相对路径读对应 package.json 的 version
27
27
  if (s.startsWith('file:')) {