@tsparticles/cli 3.2.2 → 3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/cli",
3
- "version": "3.2.2",
3
+ "version": "3.3.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "bin": {
@@ -17,18 +17,18 @@
17
17
  "prettier": "@tsparticles/prettier-config",
18
18
  "dependencies": {
19
19
  "@swc/core": "^1.15.18",
20
- "@tsparticles/depcruise-config": "^3.2.0",
21
- "@tsparticles/eslint-config": "^3.2.0",
22
- "@tsparticles/prettier-config": "^3.2.0",
23
- "@tsparticles/tsconfig": "^3.2.0",
24
- "@tsparticles/webpack-plugin": "^3.2.0",
20
+ "@tsparticles/depcruise-config": "^3.3.0",
21
+ "@tsparticles/eslint-config": "^3.3.0",
22
+ "@tsparticles/prettier-config": "^3.3.0",
23
+ "@tsparticles/tsconfig": "^3.3.0",
24
+ "@tsparticles/webpack-plugin": "^3.3.0",
25
25
  "commander": "^14.0.3",
26
- "eslint": "^9.39.3",
26
+ "eslint": "^10.0.3",
27
27
  "eslint-config-prettier": "^10.1.8",
28
28
  "eslint-plugin-jsdoc": "^62.7.1",
29
29
  "eslint-plugin-prettier": "^5.5.5",
30
30
  "eslint-plugin-tsdoc": "^0.5.2",
31
- "fs-extra": "^11.3.3",
31
+ "fs-extra": "^11.3.4",
32
32
  "klaw": "^4.1.0",
33
33
  "lookpath": "^1.2.3",
34
34
  "dependency-cruiser": "^17.3.8",
@@ -40,22 +40,21 @@
40
40
  "swc-loader": "^0.2.7",
41
41
  "typescript": "^5.9.3",
42
42
  "typescript-eslint": "^8.56.1",
43
- "webpack": "^5.105.3"
43
+ "webpack": "^5.105.4"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@tsparticles/cli": "latest",
47
47
  "@tsparticles/engine": "^3.9.1",
48
- "@types/eslint": "^9.6.1",
49
48
  "@types/estree": "^1.0.8",
50
49
  "@types/fs-extra": "^11.0.4",
51
50
  "@types/klaw": "^3.0.7",
52
- "@types/node": "^25.3.3",
51
+ "@types/node": "^25.3.5",
53
52
  "@types/prompts": "^2.4.9",
54
53
  "@types/webpack-env": "^1.18.8",
55
54
  "browserslist": "^4.28.1",
56
55
  "copyfiles": "^2.4.1",
57
56
  "cross-env": "^10.1.0",
58
- "terser-webpack-plugin": "^5.3.16",
57
+ "terser-webpack-plugin": "^5.3.17",
59
58
  "ts-node": "^10.9.2",
60
59
  "vitest": "^4.0.18",
61
60
  "webpack-bundle-analyzer": "^5.2.0",
@@ -79,7 +78,6 @@
79
78
  "test": "vitest run",
80
79
  "build": "pnpm run clear:dist && pnpm run prettify:src && pnpm run lint && pnpm run compile && pnpm run circular-deps && pnpm run prettify:readme && chmod +x dist/cli.js && chmod +x dist/build/build.js && chmod +x dist/create/create.js && chmod +x dist/create/preset/preset.js",
81
80
  "build:ci": "pnpm run clear:dist && pnpm run prettify:ci:src && pnpm run lint:ci && pnpm run compile:ci && pnpm run prettify:ci:readme",
82
- "clear:dist": "rimraf ./dist",
83
- "version": "node scripts/postversion.js && git add files/empty-project/package.json"
81
+ "clear:dist": "rimraf ./dist"
84
82
  }
85
83
  }
package/renovate.json CHANGED
@@ -1,5 +1,8 @@
1
1
  {
2
2
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "baseBranches": [
4
+ "dev"
5
+ ],
3
6
  "extends": [
4
7
  "config:base"
5
8
  ]
@@ -11,7 +11,7 @@ export async function bundle(basePath: string, silent: boolean): Promise<boolean
11
11
  console.log("Bundling started");
12
12
  }
13
13
 
14
- let res = false;
14
+ let res: boolean;
15
15
 
16
16
  try {
17
17
  const options = (await import(path.join(basePath, "webpack.config.js"))) as { default: webpack.Configuration };
@@ -11,7 +11,7 @@ export async function clearDist(basePath: string, silent: boolean): Promise<bool
11
11
  console.log("Clearing dist folder");
12
12
  }
13
13
 
14
- let res = false;
14
+ let res: boolean;
15
15
 
16
16
  try {
17
17
  await rimraf(path.join(basePath, "dist"));
@@ -105,11 +105,11 @@ export async function prettifyPackageJson(basePath: string, ci: boolean, silent:
105
105
 
106
106
  /**
107
107
  * @param basePath -
108
- * @param _ci -
108
+ * @param ci -
109
109
  * @param silent -
110
110
  * @returns true if the prettify package.dist.json process was successful
111
111
  */
112
- export async function prettifyPackageDistJson(basePath: string, _ci: boolean, silent: boolean): Promise<boolean> {
112
+ export async function prettifyPackageDistJson(basePath: string, ci: boolean, silent: boolean): Promise<boolean> {
113
113
  if (!silent) {
114
114
  console.log("Prettier - started on package.dist.json");
115
115
  }
@@ -125,17 +125,15 @@ export async function prettifyPackageDistJson(basePath: string, _ci: boolean, si
125
125
  options.endOfLine = "lf";
126
126
  options.parser = "json";
127
127
 
128
- // TODO: disabled this check until "prettier-plugin-multiline-arrays" package is compatible with Prettier 3.0.0
129
-
130
- /* if (ci) {
131
- if (!(await prettier.check(contents, options))) {
132
- throw new Error(`package.dist.json is not formatted correctly`);
133
- }
134
- } else { */
135
- const formatted = await prettier.format(contents, options);
128
+ if (ci) {
129
+ if (!(await prettier.check(contents, options))) {
130
+ throw new Error(`package.dist.json is not formatted correctly`);
131
+ }
132
+ } else {
133
+ const formatted = await prettier.format(contents, options);
136
134
 
137
- await fs.writeFile("package.dist.json", formatted, "utf8");
138
- // }
135
+ await fs.writeFile("package.dist.json", formatted, "utf8");
136
+ }
139
137
 
140
138
  res = true;
141
139
  } catch (e) {
@@ -1,24 +0,0 @@
1
- import { fileURLToPath } from "url";
2
- import fs from "fs-extra";
3
- import path from "path";
4
-
5
- const __filename = fileURLToPath(import.meta.url),
6
- __dirname = path.dirname(__filename),
7
- emptyProjectPkgPath = path.join(__dirname, "..", "files", "empty-project", "package.json"),
8
- rootPkgPath = path.join(__dirname, "..", "package.json");
9
-
10
- (async () => {
11
- try {
12
- // usa readJson/writeJson di fs-extra per evitare parse manuale e problemi di typing
13
- const pkg = await fs.readJson(rootPkgPath),
14
- obj = await fs.readJson(emptyProjectPkgPath);
15
-
16
- obj["devDependencies"] = obj["devDependencies"] || {};
17
- obj["devDependencies"]["@tsparticles/cli"] = `^${pkg.version}`;
18
-
19
- await fs.writeJson(emptyProjectPkgPath, obj, { spaces: 2 });
20
- }
21
- catch (err) {
22
- console.error(err);
23
- }
24
- })();