@blocklet/component-studio-cli 0.4.147 → 0.4.148
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/utils/helper.js +2 -2
- package/package.json +1 -1
package/dist/utils/helper.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import { execSync, spawn } from 'child_process';
|
|
3
|
-
import
|
|
3
|
+
import fs from 'fs-extra';
|
|
4
4
|
import { glob } from 'glob';
|
|
5
5
|
import inquirer from 'inquirer';
|
|
6
6
|
import { existsSync, readFileSync, readdirSync } from 'node:fs';
|
|
@@ -381,7 +381,7 @@ export async function replaceInDirectoryFileNameWithExample(dirPath) {
|
|
|
381
381
|
for (const entry of entries) {
|
|
382
382
|
if (entry.isFile() && entry.name.endsWith('_example')) {
|
|
383
383
|
const newName = entry.name.replace('_example', '');
|
|
384
|
-
await rename(join(dirPath, entry.name), join(dirPath, newName));
|
|
384
|
+
await fs.rename(join(dirPath, entry.name), join(dirPath, newName));
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
387
|
}
|