@tsparticles/cli 2.0.0-beta.5 → 2.0.0-beta.7

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.
@@ -17,7 +17,7 @@ const path_1 = __importDefault(require("path"));
17
17
  const buildCommand = new commander_1.Command("build");
18
18
  exports.buildCommand = buildCommand;
19
19
  buildCommand.description("Build the tsParticles library using TypeScript");
20
- buildCommand.option("-a, --all", "Do all build steps (default if no flags are specified) (same as -b -c -d -l -p -t)", true);
20
+ buildCommand.option("-a, --all", "Do all build steps (default if no flags are specified) (same as -b -c -d -l -p -t)", false);
21
21
  buildCommand.option("-b, --bundle", "Bundle the library using Webpack", false);
22
22
  buildCommand.option("-c, --clean", "Clean the dist folder", false);
23
23
  buildCommand.option("--ci", "Do all build steps for CI, no fixing files, only checking if they are formatted correctly", false);
@@ -27,7 +27,7 @@ buildCommand.option("-p, --prettify", "Prettify the source files", false);
27
27
  buildCommand.option("-t, --tsc", "Build the library using TypeScript", false);
28
28
  buildCommand.argument("[path]", `Path to the project root folder, default is "src"`, "src");
29
29
  buildCommand.action(async (argPath) => {
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;
30
+ const opts = buildCommand.opts(), ci = !!opts.ci, all = !!opts.all || (!opts.bundle && !opts.clean && !opts.dist && !opts.lint && !opts.prettify && !opts.tsc), 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(), oldStats = await (0, build_diststats_1.getDistStats)(basePath);
32
32
  if (clean) {
33
33
  await (0, build_clear_1.clearDist)(basePath);
@@ -83,7 +83,7 @@
83
83
  "prettier": "@tsparticles/prettier-config",
84
84
  "devDependencies": {
85
85
  "@babel/core": "^7.22.9",
86
- "@tsparticles/cli": "^2.0.0-beta.5",
86
+ "@tsparticles/cli": "^2.0.0-beta.7",
87
87
  "@tsparticles/eslint-config": "^1.19.0",
88
88
  "@tsparticles/prettier-config": "^1.12.0",
89
89
  "@tsparticles/tsconfig": "^1.14.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/cli",
3
- "version": "2.0.0-beta.5",
3
+ "version": "2.0.0-beta.7",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "tsparticles-cli": "dist/cli.js"
@@ -10,14 +10,14 @@
10
10
  },
11
11
  "prettier": "@tsparticles/prettier-config",
12
12
  "dependencies": {
13
- "@tsparticles/eslint-config": "^2.0.0-beta.0",
14
- "@tsparticles/prettier-config": "^2.0.0-beta.0",
15
- "@tsparticles/tsconfig": "^2.0.0-beta.0",
16
- "@tsparticles/webpack-plugin": "^2.0.0-beta.0",
13
+ "@tsparticles/eslint-config": "^2.0.0-beta.1",
14
+ "@tsparticles/prettier-config": "^2.0.0-beta.1",
15
+ "@tsparticles/tsconfig": "^2.0.0-beta.1",
16
+ "@tsparticles/webpack-plugin": "^2.0.0-beta.1",
17
17
  "@typescript-eslint/eslint-plugin": "^6.4.1",
18
18
  "@typescript-eslint/parser": "^6.4.1",
19
19
  "commander": "^11.0.0",
20
- "eslint": "^8.47.0",
20
+ "eslint": "^8.48.0",
21
21
  "eslint-config-prettier": "^9.0.0",
22
22
  "eslint-plugin-jsdoc": "^46.5.0",
23
23
  "eslint-plugin-tsdoc": "^0.2.17",
@@ -27,7 +27,7 @@
27
27
  "prettier": "^3.0.2",
28
28
  "prompts": "^2.4.2",
29
29
  "rimraf": "^5.0.1",
30
- "typescript": "^5.1.6",
30
+ "typescript": "^5.2.2",
31
31
  "webpack": "^5.88.2"
32
32
  },
33
33
  "devDependencies": {
@@ -15,7 +15,7 @@ buildCommand.description("Build the tsParticles library using TypeScript");
15
15
  buildCommand.option(
16
16
  "-a, --all",
17
17
  "Do all build steps (default if no flags are specified) (same as -b -c -d -l -p -t)",
18
- true,
18
+ false,
19
19
  );
20
20
  buildCommand.option("-b, --bundle", "Bundle the library using Webpack", false);
21
21
  buildCommand.option("-c, --clean", "Clean the dist folder", false);
@@ -33,7 +33,7 @@ buildCommand.argument("[path]", `Path to the project root folder, default is "sr
33
33
  buildCommand.action(async (argPath: string) => {
34
34
  const opts = buildCommand.opts(),
35
35
  ci = !!opts.ci,
36
- all = !!opts.all,
36
+ all = !!opts.all || (!opts.bundle && !opts.clean && !opts.dist && !opts.lint && !opts.prettify && !opts.tsc),
37
37
  doBundle = all || !!opts.bundle,
38
38
  clean = all || !!opts.clean,
39
39
  distfiles = all || !!opts.dist,