@dcloudio/uni-cli-shared 3.0.0-alpha-3030020211201002 → 3.0.0-alpha-3030020211201003

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.
@@ -46,7 +46,10 @@ function findChangedJsonFiles() {
46
46
  const usingComponents = newJson.usingComponents;
47
47
  // 格式化为相对路径,这样作为分包也可以直接运行
48
48
  Object.keys(usingComponents).forEach((name) => {
49
- usingComponents[name] = (0, resolve_1.relativeFile)(filename, usingComponents[name].slice(1));
49
+ const componentFilename = usingComponents[name];
50
+ if (componentFilename.startsWith('/')) {
51
+ usingComponents[name] = (0, resolve_1.relativeFile)(filename, componentFilename.slice(1));
52
+ }
50
53
  });
51
54
  const jsonStr = JSON.stringify(newJson, null, 2);
52
55
  if (jsonFilesCache.get(filename) !== jsonStr) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-cli-shared",
3
- "version": "3.0.0-alpha-3030020211201002",
3
+ "version": "3.0.0-alpha-3030020211201003",
4
4
  "description": "@dcloudio/uni-cli-shared",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,8 +20,8 @@
20
20
  "dependencies": {
21
21
  "@babel/parser": "^7.15.0",
22
22
  "@babel/types": "^7.15.0",
23
- "@dcloudio/uni-i18n": "3.0.0-alpha-3030020211201002",
24
- "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201002",
23
+ "@dcloudio/uni-i18n": "3.0.0-alpha-3030020211201003",
24
+ "@dcloudio/uni-shared": "3.0.0-alpha-3030020211201003",
25
25
  "@rollup/pluginutils": "^4.1.1",
26
26
  "@vue/compiler-core": "3.2.23",
27
27
  "@vue/compiler-dom": "3.2.23",