Skip to content

Commit 9c5f97b

Browse files
committed
build: updated deps and removed unused umd build
1 parent 07d7d45 commit 9c5f97b

5 files changed

Lines changed: 70 additions & 101 deletions

File tree

files/empty-project/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@
8585
"devDependencies": {
8686
"@swc/core": "^1.15.21",
8787
"@tsparticles/cli": "latest",
88-
"@tsparticles/depcruise-config": "^3.4.2",
89-
"@tsparticles/eslint-config": "^3.4.2",
90-
"@tsparticles/prettier-config": "^3.4.2",
91-
"@tsparticles/tsconfig": "^3.4.2",
92-
"@tsparticles/webpack-plugin": "^3.4.2",
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",
9393
"@types/webpack-env": "^1.18.8",
9494
"browserslist": "^4.28.2",
9595
"copyfiles": "^2.4.1",

files/empty-project/tsconfig.umd.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@
3535
},
3636
"dependencies": {
3737
"@swc/core": "^1.15.21",
38-
"@tsparticles/depcruise-config": "^3.4.2",
39-
"@tsparticles/eslint-config": "^3.4.2",
40-
"@tsparticles/prettier-config": "^3.4.2",
41-
"@tsparticles/tsconfig": "^3.4.2",
42-
"@tsparticles/webpack-plugin": "^3.4.2",
38+
"@tsparticles/depcruise-config": "^3.4.4",
39+
"@tsparticles/eslint-config": "^3.4.4",
40+
"@tsparticles/prettier-config": "^3.4.4",
41+
"@tsparticles/tsconfig": "^3.4.4",
42+
"@tsparticles/webpack-plugin": "^3.4.4",
4343
"commander": "^14.0.3",
4444
"eslint": "^10.1.0",
4545
"eslint-config-prettier": "^10.1.8",
46-
"eslint-plugin-jsdoc": "^62.8.1",
46+
"eslint-plugin-jsdoc": "^62.9.0",
4747
"eslint-plugin-prettier": "^5.5.5",
4848
"eslint-plugin-tsdoc": "^0.5.2",
4949
"klaw": "^4.1.0",

pnpm-lock.yaml

Lines changed: 57 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/build/build-tsc.ts

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ async function readConfig(basePath: string, file: string): Promise<string | unde
3333
* @param silent -
3434
* @returns the exit code
3535
*/
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> {
4137
let options: unknown, data: string | undefined;
4238

4339
switch (type) {
@@ -100,21 +96,6 @@ async function compile(
10096
};
10197
}
10298

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-
11899
break;
119100
}
120101

@@ -181,7 +162,7 @@ export async function buildTS(basePath: string, silent: boolean): Promise<boolea
181162

182163
let res = true;
183164

184-
const types: ("browser" | "cjs" | "esm" | "types" | "umd")[] = ["browser", "cjs", "esm", "types", "umd"];
165+
const types: ("browser" | "cjs" | "esm" | "types")[] = ["browser", "cjs", "esm", "types"];
185166

186167
for (const type of types) {
187168
if (!silent) {

0 commit comments

Comments
 (0)