@tsparticles/cli 3.3.8 → 3.4.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.
@@ -3,9 +3,11 @@ on:
3
3
  push:
4
4
  branches:
5
5
  - main
6
+ - dev
6
7
  pull_request:
7
8
  branches:
8
9
  - main
10
+ - dev
9
11
 
10
12
  jobs:
11
13
  main:
@@ -19,7 +21,7 @@ jobs:
19
21
  - uses: actions/setup-node@v6
20
22
  with:
21
23
  node-version: "24"
22
- - uses: pnpm/action-setup@v4
24
+ - uses: pnpm/action-setup@v5
23
25
  name: Install pnpm
24
26
  id: pnpm-install
25
27
  with:
@@ -59,7 +61,7 @@ jobs:
59
61
  - uses: actions/setup-node@v6
60
62
  with:
61
63
  node-version: "24"
62
- - uses: pnpm/action-setup@v4
64
+ - uses: pnpm/action-setup@v5
63
65
  name: Install pnpm
64
66
  id: pnpm-install
65
67
  with:
@@ -25,7 +25,7 @@ jobs:
25
25
  node-version: 24
26
26
  registry-url: https://registry.npmjs.org
27
27
 
28
- - uses: pnpm/action-setup@v4.3.0
28
+ - uses: pnpm/action-setup@v5.0.0
29
29
  name: Install pnpm
30
30
  with:
31
31
  run_install: false
@@ -83,19 +83,6 @@ async function compile(basePath, type, silent) {
83
83
  };
84
84
  }
85
85
  break;
86
- case "umd":
87
- data = await readConfig(basePath, "tsconfig.umd.json");
88
- if (!data) {
89
- options = {
90
- extends: "@tsparticles/tsconfig/dist/tsconfig.umd.json",
91
- compilerOptions: {
92
- rootDir: "./src",
93
- outDir: "./dist/umd",
94
- },
95
- include: ["./src"],
96
- };
97
- }
98
- break;
99
86
  }
100
87
  if (!data && !options) {
101
88
  return ExitCodes.NoDataOrOptions;
@@ -138,7 +125,7 @@ export async function buildTS(basePath, silent) {
138
125
  console.log("Building TS files");
139
126
  }
140
127
  let res = true;
141
- const types = ["browser", "cjs", "esm", "types", "umd"];
128
+ const types = ["browser", "cjs", "esm", "types"];
142
129
  for (const type of types) {
143
130
  if (!silent) {
144
131
  console.log(`Building TS files for ${type} configuration`);
@@ -83,26 +83,26 @@
83
83
  "types": "dist/types/index.d.ts",
84
84
  "prettier": "@tsparticles/prettier-config",
85
85
  "devDependencies": {
86
- "@swc/core": "^1.15.18",
86
+ "@swc/core": "^1.15.21",
87
87
  "@tsparticles/cli": "latest",
88
- "@tsparticles/depcruise-config": "^3.3.5",
89
- "@tsparticles/eslint-config": "^3.3.5",
90
- "@tsparticles/prettier-config": "^3.3.5",
91
- "@tsparticles/tsconfig": "^3.3.5",
92
- "@tsparticles/webpack-plugin": "^3.3.5",
88
+ "@tsparticles/depcruise-config": "^3.4.4",
89
+ "@tsparticles/eslint-config": "^3.4.4",
90
+ "@tsparticles/prettier-config": "^3.4.4",
91
+ "@tsparticles/tsconfig": "^3.4.4",
92
+ "@tsparticles/webpack-plugin": "^3.4.4",
93
93
  "@types/webpack-env": "^1.18.8",
94
- "browserslist": "^4.28.1",
94
+ "browserslist": "^4.28.2",
95
95
  "copyfiles": "^2.4.1",
96
- "eslint": "^10.0.3",
96
+ "eslint": "^10.1.0",
97
97
  "eslint-config-prettier": "^10.1.8",
98
98
  "prettier": "^3.8.1",
99
99
  "rimraf": "^6.1.3",
100
100
  "swc-loader": "^0.2.7",
101
101
  "terser-webpack-plugin": "^5.4.0",
102
- "typescript": "^5.9.3",
103
- "typescript-eslint": "^8.57.1",
102
+ "typescript": "^6.0.2",
103
+ "typescript-eslint": "^8.58.0",
104
104
  "webpack": "^5.105.4",
105
- "webpack-bundle-analyzer": "^5.2.0",
105
+ "webpack-bundle-analyzer": "^5.3.0",
106
106
  "webpack-cli": "^7.0.2"
107
107
  },
108
108
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/cli",
3
- "version": "3.3.8",
3
+ "version": "3.4.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "bin": {
@@ -16,29 +16,29 @@
16
16
  },
17
17
  "prettier": "@tsparticles/prettier-config",
18
18
  "dependencies": {
19
- "@swc/core": "^1.15.18",
20
- "@tsparticles/depcruise-config": "^3.3.5",
21
- "@tsparticles/eslint-config": "^3.3.5",
22
- "@tsparticles/prettier-config": "^3.3.5",
23
- "@tsparticles/tsconfig": "^3.3.5",
24
- "@tsparticles/webpack-plugin": "^3.3.5",
19
+ "@swc/core": "^1.15.21",
20
+ "@tsparticles/depcruise-config": "^3.4.4",
21
+ "@tsparticles/eslint-config": "^3.4.4",
22
+ "@tsparticles/prettier-config": "^3.4.4",
23
+ "@tsparticles/tsconfig": "^3.4.4",
24
+ "@tsparticles/webpack-plugin": "^3.4.4",
25
25
  "commander": "^14.0.3",
26
- "eslint": "^10.0.3",
26
+ "eslint": "^10.1.0",
27
27
  "eslint-config-prettier": "^10.1.8",
28
- "eslint-plugin-jsdoc": "^62.8.0",
28
+ "eslint-plugin-jsdoc": "^62.9.0",
29
29
  "eslint-plugin-prettier": "^5.5.5",
30
30
  "eslint-plugin-tsdoc": "^0.5.2",
31
31
  "klaw": "^4.1.0",
32
32
  "lookpath": "^1.2.3",
33
- "dependency-cruiser": "^17.3.9",
33
+ "dependency-cruiser": "^17.3.10",
34
34
  "path-scurry": "^2.0.2",
35
35
  "prettier": "^3.8.1",
36
36
  "prettier-plugin-multiline-arrays": "^4.1.5",
37
37
  "prompts": "^2.4.2",
38
38
  "rimraf": "^6.1.3",
39
39
  "swc-loader": "^0.2.7",
40
- "typescript": "^5.9.3",
41
- "typescript-eslint": "^8.57.1",
40
+ "typescript": "^6.0.2",
41
+ "typescript-eslint": "^8.58.0",
42
42
  "webpack": "^5.105.4"
43
43
  },
44
44
  "devDependencies": {
@@ -49,13 +49,13 @@
49
49
  "@types/node": "^25.5.0",
50
50
  "@types/prompts": "^2.4.9",
51
51
  "@types/webpack-env": "^1.18.8",
52
- "browserslist": "^4.28.1",
52
+ "browserslist": "^4.28.2",
53
53
  "copyfiles": "^2.4.1",
54
54
  "cross-env": "^10.1.0",
55
55
  "terser-webpack-plugin": "^5.4.0",
56
56
  "ts-node": "^10.9.2",
57
- "vitest": "^4.1.0",
58
- "webpack-bundle-analyzer": "^5.2.0",
57
+ "vitest": "^4.1.2",
58
+ "webpack-bundle-analyzer": "^5.3.0",
59
59
  "webpack-cli": "^7.0.2"
60
60
  },
61
61
  "description": "tsParticles CLI",
@@ -33,11 +33,7 @@ async function readConfig(basePath: string, file: string): Promise<string | unde
33
33
  * @param silent -
34
34
  * @returns the exit code
35
35
  */
36
- async function compile(
37
- basePath: string,
38
- type: "browser" | "cjs" | "esm" | "types" | "umd",
39
- silent: boolean,
40
- ): Promise<number> {
36
+ async function compile(basePath: string, type: "browser" | "cjs" | "esm" | "types", silent: boolean): Promise<number> {
41
37
  let options: unknown, data: string | undefined;
42
38
 
43
39
  switch (type) {
@@ -100,21 +96,6 @@ async function compile(
100
96
  };
101
97
  }
102
98
 
103
- break;
104
- case "umd":
105
- data = await readConfig(basePath, "tsconfig.umd.json");
106
-
107
- if (!data) {
108
- options = {
109
- extends: "@tsparticles/tsconfig/dist/tsconfig.umd.json",
110
- compilerOptions: {
111
- rootDir: "./src",
112
- outDir: "./dist/umd",
113
- },
114
- include: ["./src"],
115
- };
116
- }
117
-
118
99
  break;
119
100
  }
120
101
 
@@ -181,7 +162,7 @@ export async function buildTS(basePath: string, silent: boolean): Promise<boolea
181
162
 
182
163
  let res = true;
183
164
 
184
- const types: ("browser" | "cjs" | "esm" | "types" | "umd")[] = ["browser", "cjs", "esm", "types", "umd"];
165
+ const types: ("browser" | "cjs" | "esm" | "types")[] = ["browser", "cjs", "esm", "types"];
185
166
 
186
167
  for (const type of types) {
187
168
  if (!silent) {
@@ -1,6 +0,0 @@
1
- {
2
- "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/dist/tsconfig.umd.json"],
3
- "compilerOptions": {
4
- "outDir": "./dist/umd"
5
- }
6
- }