@tsparticles/cli 1.3.1 → 1.3.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.
@@ -19,7 +19,7 @@ async function getFolderStats(folderPath) {
19
19
  const dir = await fs_extra_1.default.promises.opendir(folderPath);
20
20
  for await (const dirent of dir) {
21
21
  if (dirent.isDirectory()) {
22
- const subDirStats = await getDistStats(path_1.default.join(folderPath, dirent.name));
22
+ const subDirStats = await getFolderStats(path_1.default.join(folderPath, dirent.name));
23
23
  stats.totalFolders += subDirStats.totalFolders + 1;
24
24
  stats.totalFiles += subDirStats.totalFiles;
25
25
  stats.totalSize += subDirStats.totalSize;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/cli",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "tsparticles-cli": "dist/cli.js"
@@ -22,7 +22,7 @@ async function getFolderStats(folderPath: string): Promise<IDistStats> {
22
22
 
23
23
  for await (const dirent of dir) {
24
24
  if (dirent.isDirectory()) {
25
- const subDirStats = await getDistStats(path.join(folderPath, dirent.name));
25
+ const subDirStats = await getFolderStats(path.join(folderPath, dirent.name));
26
26
 
27
27
  stats.totalFolders += subDirStats.totalFolders + 1;
28
28
  stats.totalFiles += subDirStats.totalFiles;