@tsparticles/cli 2.2.0 → 2.2.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.
|
@@ -17,13 +17,21 @@ async function buildCircularDeps(basePath) {
|
|
|
17
17
|
const madgeRes = await (0, madge_1.default)(path_1.default.join(basePath, "src"), {
|
|
18
18
|
fileExtensions: ["ts"],
|
|
19
19
|
detectiveOptions: {
|
|
20
|
-
|
|
20
|
+
ts: {
|
|
21
|
+
skipTypeImports: true,
|
|
22
|
+
},
|
|
21
23
|
},
|
|
22
24
|
}), circularDeps = madgeRes.circular();
|
|
23
25
|
if (circularDeps.length) {
|
|
24
|
-
|
|
26
|
+
console.error("Circular dependencies found!");
|
|
27
|
+
for (const dep of circularDeps) {
|
|
28
|
+
console.error(`${dep.join(" > ")}`);
|
|
29
|
+
}
|
|
30
|
+
res = false;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
res = true;
|
|
25
34
|
}
|
|
26
|
-
res = true;
|
|
27
35
|
}
|
|
28
36
|
catch (e) {
|
|
29
37
|
console.error(e);
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"prettier": "@tsparticles/prettier-config",
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@babel/core": "^7.23.9",
|
|
86
|
-
"@tsparticles/cli": "^2.2.
|
|
86
|
+
"@tsparticles/cli": "^2.2.2",
|
|
87
87
|
"@tsparticles/eslint-config": "^2.1.4",
|
|
88
88
|
"@tsparticles/prettier-config": "^2.1.0",
|
|
89
89
|
"@tsparticles/tsconfig": "^2.0.1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/cli",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bin": {
|
|
6
6
|
"tsparticles-cli": "dist/cli.js"
|
|
@@ -12,38 +12,38 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@tsparticles/eslint-config": "^2.1.4",
|
|
14
14
|
"@tsparticles/prettier-config": "^2.1.0",
|
|
15
|
-
"@tsparticles/tsconfig": "^2.
|
|
16
|
-
"@tsparticles/webpack-plugin": "^2.1.
|
|
17
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
18
|
-
"@typescript-eslint/parser": "^
|
|
19
|
-
"commander": "^
|
|
20
|
-
"eslint": "^8.
|
|
15
|
+
"@tsparticles/tsconfig": "^2.1.6",
|
|
16
|
+
"@tsparticles/webpack-plugin": "^2.1.6",
|
|
17
|
+
"@typescript-eslint/eslint-plugin": "^7.1.0",
|
|
18
|
+
"@typescript-eslint/parser": "^7.1.0",
|
|
19
|
+
"commander": "^12.0.0",
|
|
20
|
+
"eslint": "^8.57.0",
|
|
21
21
|
"eslint-config-prettier": "^9.1.0",
|
|
22
|
-
"eslint-plugin-jsdoc": "^48.0
|
|
22
|
+
"eslint-plugin-jsdoc": "^48.2.0",
|
|
23
23
|
"eslint-plugin-tsdoc": "^0.2.17",
|
|
24
24
|
"fs-extra": "^11.2.0",
|
|
25
25
|
"klaw": "^4.1.0",
|
|
26
26
|
"lookpath": "^1.2.2",
|
|
27
27
|
"madge": "^6.1.0",
|
|
28
28
|
"path-scurry": "^1.10.1",
|
|
29
|
-
"prettier": "^3.2.
|
|
30
|
-
"prettier-plugin-multiline-arrays": "^3.0.
|
|
29
|
+
"prettier": "^3.2.5",
|
|
30
|
+
"prettier-plugin-multiline-arrays": "^3.0.4",
|
|
31
31
|
"prompts": "^2.4.2",
|
|
32
32
|
"rimraf": "^5.0.5",
|
|
33
33
|
"typescript": "^5.3.3",
|
|
34
|
-
"webpack": "^5.90.
|
|
34
|
+
"webpack": "^5.90.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@types/chai": "^4.3.
|
|
37
|
+
"@types/chai": "^4.3.12",
|
|
38
38
|
"@types/fs-extra": "^11.0.4",
|
|
39
39
|
"@types/klaw": "^3.0.6",
|
|
40
40
|
"@types/madge": "^5.0.3",
|
|
41
41
|
"@types/mocha": "^10.0.6",
|
|
42
|
-
"@types/node": "^20.11.
|
|
42
|
+
"@types/node": "^20.11.20",
|
|
43
43
|
"@types/prompts": "^2.4.9",
|
|
44
|
-
"chai": "^4.4.
|
|
44
|
+
"chai": "^4.4.1",
|
|
45
45
|
"cross-env": "^7.0.3",
|
|
46
|
-
"mocha": "^10.
|
|
46
|
+
"mocha": "^10.3.0",
|
|
47
47
|
"nyc": "^15.1.0",
|
|
48
48
|
"ts-node": "^10.9.2"
|
|
49
49
|
},
|
|
@@ -13,16 +13,24 @@ export async function buildCircularDeps(basePath: string): Promise<boolean> {
|
|
|
13
13
|
const madgeRes = await madge(path.join(basePath, "src"), {
|
|
14
14
|
fileExtensions: ["ts"],
|
|
15
15
|
detectiveOptions: {
|
|
16
|
-
|
|
16
|
+
ts: {
|
|
17
|
+
skipTypeImports: true,
|
|
18
|
+
},
|
|
17
19
|
},
|
|
18
20
|
}),
|
|
19
21
|
circularDeps = madgeRes.circular();
|
|
20
22
|
|
|
21
23
|
if (circularDeps.length) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
console.error("Circular dependencies found!");
|
|
25
|
+
|
|
26
|
+
for (const dep of circularDeps) {
|
|
27
|
+
console.error(`${dep.join(" > ")}`);
|
|
28
|
+
}
|
|
24
29
|
|
|
25
|
-
|
|
30
|
+
res = false;
|
|
31
|
+
} else {
|
|
32
|
+
res = true;
|
|
33
|
+
}
|
|
26
34
|
} catch (e) {
|
|
27
35
|
console.error(e);
|
|
28
36
|
}
|
package/src/tsconfig.json
CHANGED
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
/* Ensure that casing is correct in imports. */
|
|
86
86
|
|
|
87
87
|
/* Type Checking */
|
|
88
|
-
"strict": true
|
|
88
|
+
"strict": true
|
|
89
89
|
/* Enable all strict type-checking options. */
|
|
90
90
|
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
|
91
91
|
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
// "skipLibCheck": true
|
|
112
112
|
/* Skip type checking all .d.ts files. */
|
|
113
113
|
},
|
|
114
|
-
"references": [{ "path": "../" }]
|
|
114
|
+
"references": [{ "path": "../" }]
|
|
115
115
|
}
|