@tsparticles/cli 1.3.0 → 1.3.1
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/build/build.js +2 -2
- package/package.json +1 -1
- package/src/build/build.ts +2 -2
package/dist/build/build.js
CHANGED
|
@@ -29,7 +29,7 @@ buildCommand.argument("[path]", `Path to the project root folder, default is "sr
|
|
|
29
29
|
buildCommand.action(async (argPath) => {
|
|
30
30
|
const opts = buildCommand.opts(), ci = !!opts.ci, all = !!opts.all, doBundle = all || !!opts.bundle, clean = all || !!opts.clean, distfiles = all || !!opts.dist, doLint = all || !!opts.lint, prettier = all || !!opts.prettify, tsc = all || !!opts.tsc;
|
|
31
31
|
const basePath = process.cwd();
|
|
32
|
-
const oldStats = await (0, build_diststats_1.getDistStats)(
|
|
32
|
+
const oldStats = await (0, build_diststats_1.getDistStats)(basePath);
|
|
33
33
|
if (clean) {
|
|
34
34
|
await (0, build_clear_1.clearDist)(basePath);
|
|
35
35
|
}
|
|
@@ -59,7 +59,7 @@ buildCommand.action(async (argPath) => {
|
|
|
59
59
|
if (!canContinue) {
|
|
60
60
|
throw new Error("Build failed");
|
|
61
61
|
}
|
|
62
|
-
const newStats = await (0, build_diststats_1.getDistStats)(
|
|
62
|
+
const newStats = await (0, build_diststats_1.getDistStats)(basePath), diffSize = newStats.totalSize - oldStats.totalSize, texts = [
|
|
63
63
|
`Size changed from ${oldStats.totalSize} to ${newStats.totalSize} (${diffSize}B)`,
|
|
64
64
|
`Files count changed from ${oldStats.totalFiles} to ${newStats.totalFiles} (${newStats.totalFiles - oldStats.totalFiles})`,
|
|
65
65
|
`Folders count changed from ${oldStats.totalFolders} to ${newStats.totalFolders} (${newStats.totalFolders - oldStats.totalFolders})`,
|
package/package.json
CHANGED
package/src/build/build.ts
CHANGED
|
@@ -43,7 +43,7 @@ buildCommand.action(async (argPath: string) => {
|
|
|
43
43
|
|
|
44
44
|
const basePath = process.cwd();
|
|
45
45
|
|
|
46
|
-
const oldStats = await getDistStats(
|
|
46
|
+
const oldStats = await getDistStats(basePath);
|
|
47
47
|
|
|
48
48
|
if (clean) {
|
|
49
49
|
await clearDist(basePath);
|
|
@@ -85,7 +85,7 @@ buildCommand.action(async (argPath: string) => {
|
|
|
85
85
|
throw new Error("Build failed");
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
const newStats = await getDistStats(
|
|
88
|
+
const newStats = await getDistStats(basePath),
|
|
89
89
|
diffSize = newStats.totalSize - oldStats.totalSize,
|
|
90
90
|
texts = [
|
|
91
91
|
`Size changed from ${oldStats.totalSize} to ${newStats.totalSize} (${diffSize}B)`,
|