@whxcctv/create-tony-app 1.0.1 → 1.0.2

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/bin/index.js +5 -3
  2. package/package.json +1 -1
package/bin/index.js CHANGED
@@ -32,8 +32,10 @@ console.log(`📄 Copied config to ${destConfigPath}`);
32
32
 
33
33
  // 进入目录执行生成器
34
34
  process.chdir(targetDir);
35
- const config = (await import(pathToFileURL(destConfigPath).href)).default;
36
35
 
37
- createApp(config);
36
+ async function read_config(){
37
+ const config = (await import(pathToFileURL(destConfigPath).href)).default;
38
+ createApp(config);
39
+ console.log("🎉 Project created successfully!");
40
+ }
38
41
 
39
- console.log("🎉 Project created successfully!");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whxcctv/create-tony-app",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "main": "bin/index.js",
6
6
  "bin": {