@widget-js/cli 1.2.9-rc.4 → 1.2.9-rc.5

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.
package/lib/index.js CHANGED
@@ -20,7 +20,7 @@ program.command("dependencies").description("Set @widget-js dependencies to loca
20
20
  await dependencies.default(options);
21
21
  });
22
22
  program.command("init").description("Initialize widget-js project").action(async () => {
23
- const init = await import("./init-UTMWSRE4.js");
23
+ const init = await import("./init-RLKWBXN2.js");
24
24
  await init.init();
25
25
  });
26
26
  var typeOption = new Option("-t, --type <type>").choices(["ftp", "oss"]);
@@ -92,7 +92,7 @@ async function createRouter() {
92
92
  const widgetRouterPath = path.join(rootDir, "widget-router.ts");
93
93
  const routerContent = fs.readFileSync(path.join(__dirname, "../template/widget-router.ts"), "utf8");
94
94
  fs.writeFileSync(widgetRouterPath, routerContent);
95
- const vueRouterPath = path.join(process.cwd(), "./router/index.ts");
95
+ const vueRouterPath = path.join(process.cwd(), "./src/router/index.ts");
96
96
  spinner.info("\u4FEE\u6539VueRouter\u914D\u7F6E");
97
97
  if (fs.existsSync(vueRouterPath)) {
98
98
  let vueRouterContent = fs.readFileSync(vueRouterPath, "utf8");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widget-js/cli",
3
- "version": "1.2.9-rc.4",
3
+ "version": "1.2.9-rc.5",
4
4
  "main": "lib/index.js",
5
5
  "author": "Neo Fu",
6
6
  "license": "MIT",
package/src/init/init.ts CHANGED
@@ -98,7 +98,7 @@ async function createRouter() {
98
98
  const routerContent = fs.readFileSync(path.join(__dirname, '../template/widget-router.ts'), 'utf8')
99
99
  fs.writeFileSync(widgetRouterPath, routerContent)
100
100
 
101
- const vueRouterPath = path.join(process.cwd(), './router/index.ts')
101
+ const vueRouterPath = path.join(process.cwd(), './src/router/index.ts')
102
102
  spinner.info('修改VueRouter配置')
103
103
  if (fs.existsSync(vueRouterPath)) {
104
104
  let vueRouterContent = fs.readFileSync(vueRouterPath, 'utf8')