@tsparticles/cli 3.4.0 → 3.4.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.
|
@@ -18,7 +18,7 @@ export async function buildDistFiles(basePath, silent) {
|
|
|
18
18
|
if (pkgInfo.dependencies) {
|
|
19
19
|
libObj["dependencies"] = JSON.parse(JSON.stringify(pkgInfo.dependencies).replaceAll("workspace:", ""));
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
if (pkgInfo.peerDependencies) {
|
|
22
22
|
libObj["peerDependencies"] = JSON.parse(JSON.stringify(pkgInfo.peerDependencies).replaceAll("workspace:", ""));
|
|
23
23
|
}
|
|
24
24
|
const jsonIndent = 2, newLibPackageContents = `${JSON.stringify(libObj, undefined, jsonIndent)}\n`;
|
package/dist/build/build-tsc.js
CHANGED
|
@@ -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"
|
|
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`);
|
|
@@ -85,11 +85,11 @@
|
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@swc/core": "^1.15.21",
|
|
87
87
|
"@tsparticles/cli": "latest",
|
|
88
|
-
"@tsparticles/depcruise-config": "^3.4.
|
|
89
|
-
"@tsparticles/eslint-config": "^3.4.
|
|
90
|
-
"@tsparticles/prettier-config": "^3.4.
|
|
91
|
-
"@tsparticles/tsconfig": "^3.4.
|
|
92
|
-
"@tsparticles/webpack-plugin": "^3.4.
|
|
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
94
|
"browserslist": "^4.28.2",
|
|
95
95
|
"copyfiles": "^2.4.1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/cli",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
"prettier": "@tsparticles/prettier-config",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@swc/core": "^1.15.21",
|
|
20
|
-
"@tsparticles/depcruise-config": "^3.4.
|
|
21
|
-
"@tsparticles/eslint-config": "^3.4.
|
|
22
|
-
"@tsparticles/prettier-config": "^3.4.
|
|
23
|
-
"@tsparticles/tsconfig": "^3.4.
|
|
24
|
-
"@tsparticles/webpack-plugin": "^3.4.
|
|
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
26
|
"eslint": "^10.1.0",
|
|
27
27
|
"eslint-config-prettier": "^10.1.8",
|
|
28
|
-
"eslint-plugin-jsdoc": "^62.
|
|
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,7 +32,9 @@ export async function buildDistFiles(basePath: string, silent: boolean): Promise
|
|
|
32
32
|
|
|
33
33
|
if (pkgInfo.dependencies) {
|
|
34
34
|
libObj["dependencies"] = JSON.parse(JSON.stringify(pkgInfo.dependencies).replaceAll("workspace:", ""));
|
|
35
|
-
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
if (pkgInfo.peerDependencies) {
|
|
36
38
|
libObj["peerDependencies"] = JSON.parse(JSON.stringify(pkgInfo.peerDependencies).replaceAll("workspace:", ""));
|
|
37
39
|
}
|
|
38
40
|
|
package/src/build/build-tsc.ts
CHANGED
|
@@ -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"
|
|
165
|
+
const types: ("browser" | "cjs" | "esm" | "types")[] = ["browser", "cjs", "esm", "types"];
|
|
185
166
|
|
|
186
167
|
for (const type of types) {
|
|
187
168
|
if (!silent) {
|