@dongmingzhixiu/vuexir 0.5.2 → 0.5.3

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/dist/cli.js +3 -0
  2. package/package.json +3 -3
package/dist/cli.js CHANGED
@@ -98,6 +98,9 @@ async function resolveExplicitEntry(input, cfg) {
98
98
  continue;
99
99
  if (c.endsWith('.vue'))
100
100
  return { dir: dirname(c), entry: c, multiPage: false };
101
+ // R140:直接给路由文件(src/router/index.ts 这类非 router.ts 命名)也要认
102
+ if (/\.(ts|js|mts|mjs)$/.test(c))
103
+ return { dir: dirname(c), entry: c, multiPage: true };
101
104
  if (existsSync(join(c, 'router.ts')))
102
105
  return { dir: c, entry: join(c, 'router.ts'), multiPage: true };
103
106
  if (existsSync(join(c, 'App.vue')))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dongmingzhixiu/vuexir",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "vrn 命令行:build ios|android、preview、doctor",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -21,8 +21,8 @@
21
21
  "LICENSE"
22
22
  ],
23
23
  "dependencies": {
24
- "@dongmingzhixiu/vuexir-compiler": "^0.5.2",
25
- "@dongmingzhixiu/vuexir-templates": "^0.5.2"
24
+ "@dongmingzhixiu/vuexir-compiler": "^0.5.3",
25
+ "@dongmingzhixiu/vuexir-templates": "^0.5.3"
26
26
  },
27
27
  "engines": {
28
28
  "node": ">=18"