create-egg 4.1.0-beta.26 → 4.1.0-beta.27

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/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { init } from "./src-CwQ2SU3O.js";
2
+ import { init } from "./src-Ch9nyzRE.js";
3
3
 
4
4
  //#region src/cli.ts
5
5
  init().catch((err) => {
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { init } from "./src-CwQ2SU3O.js";
1
+ import { init } from "./src-Ch9nyzRE.js";
2
2
 
3
3
  export { init };
@@ -207,11 +207,7 @@ function toValidPackageName(projectName) {
207
207
  }
208
208
  function copyDir(srcDir, destDir) {
209
209
  fs.mkdirSync(destDir, { recursive: true });
210
- for (const file of fs.readdirSync(srcDir)) {
211
- const srcFile = path.resolve(srcDir, file);
212
- const destFile = path.resolve(destDir, file);
213
- copy(srcFile, destFile);
214
- }
210
+ for (const file of fs.readdirSync(srcDir)) copy(path.resolve(srcDir, file), path.resolve(destDir, file));
215
211
  }
216
212
  function isEmpty(path$1) {
217
213
  const files = fs.readdirSync(path$1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-egg",
3
- "version": "4.1.0-beta.26",
3
+ "version": "4.1.0-beta.27",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },