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 +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-CwQ2SU3O.js → src-Ch9nyzRE.js} +1 -5
- package/package.json +1 -1
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -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);
|