diff --git a/files/empty-project/package.json b/files/empty-project/package.json index aaa1e91..0163d73 100644 --- a/files/empty-project/package.json +++ b/files/empty-project/package.json @@ -85,11 +85,11 @@ "devDependencies": { "@swc/core": "^1.15.21", "@tsparticles/cli": "latest", - "@tsparticles/depcruise-config": "^3.4.2", - "@tsparticles/eslint-config": "^3.4.2", - "@tsparticles/prettier-config": "^3.4.2", - "@tsparticles/tsconfig": "^3.4.2", - "@tsparticles/webpack-plugin": "^3.4.2", + "@tsparticles/depcruise-config": "^3.4.4", + "@tsparticles/eslint-config": "^3.4.4", + "@tsparticles/prettier-config": "^3.4.4", + "@tsparticles/tsconfig": "^3.4.4", + "@tsparticles/webpack-plugin": "^3.4.4", "@types/webpack-env": "^1.18.8", "browserslist": "^4.28.2", "copyfiles": "^2.4.1", diff --git a/files/empty-project/tsconfig.umd.json b/files/empty-project/tsconfig.umd.json deleted file mode 100644 index 5581019..0000000 --- a/files/empty-project/tsconfig.umd.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/dist/tsconfig.umd.json"], - "compilerOptions": { - "outDir": "./dist/umd" - } -} diff --git a/package.json b/package.json index 8007f5b..a0c4572 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tsparticles/cli", - "version": "3.4.0", + "version": "3.4.2", "license": "MIT", "type": "module", "bin": { @@ -35,15 +35,15 @@ }, "dependencies": { "@swc/core": "^1.15.21", - "@tsparticles/depcruise-config": "^3.4.2", - "@tsparticles/eslint-config": "^3.4.2", - "@tsparticles/prettier-config": "^3.4.2", - "@tsparticles/tsconfig": "^3.4.2", - "@tsparticles/webpack-plugin": "^3.4.2", + "@tsparticles/depcruise-config": "^3.4.4", + "@tsparticles/eslint-config": "^3.4.4", + "@tsparticles/prettier-config": "^3.4.4", + "@tsparticles/tsconfig": "^3.4.4", + "@tsparticles/webpack-plugin": "^3.4.4", "commander": "^14.0.3", "eslint": "^10.1.0", "eslint-config-prettier": "^10.1.8", - "eslint-plugin-jsdoc": "^62.8.1", + "eslint-plugin-jsdoc": "^62.9.0", "eslint-plugin-prettier": "^5.5.5", "eslint-plugin-tsdoc": "^0.5.2", "klaw": "^4.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 64e848b..1e63e79 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,20 +12,20 @@ importers: specifier: ^1.15.21 version: 1.15.21 '@tsparticles/depcruise-config': - specifier: ^3.4.2 - version: 3.4.2(dependency-cruiser@17.3.10) + specifier: ^3.4.4 + version: 3.4.4(dependency-cruiser@17.3.10) '@tsparticles/eslint-config': - specifier: ^3.4.2 - version: 3.4.2(@types/eslint@9.6.1)(eslint@10.1.0(jiti@2.6.1)) + specifier: ^3.4.4 + version: 3.4.4(@types/eslint@9.6.1)(eslint@10.1.0(jiti@2.6.1)) '@tsparticles/prettier-config': - specifier: ^3.4.2 - version: 3.4.2(prettier@3.8.1) + specifier: ^3.4.4 + version: 3.4.4(prettier@3.8.1) '@tsparticles/tsconfig': - specifier: ^3.4.2 - version: 3.4.2(typescript@6.0.2) + specifier: ^3.4.4 + version: 3.4.4(typescript@6.0.2) '@tsparticles/webpack-plugin': - specifier: ^3.4.2 - version: 3.4.2(@types/eslint@9.6.1)(jiti@2.6.1) + specifier: ^3.4.4 + version: 3.4.4(@types/eslint@9.6.1)(jiti@2.6.1) commander: specifier: ^14.0.3 version: 14.0.3 @@ -39,8 +39,8 @@ importers: specifier: ^10.1.8 version: 10.1.8(eslint@10.1.0(jiti@2.6.1)) eslint-plugin-jsdoc: - specifier: ^62.8.1 - version: 62.8.1(eslint@10.1.0(jiti@2.6.1)) + specifier: ^62.9.0 + version: 62.9.0(eslint@10.1.0(jiti@2.6.1)) eslint-plugin-prettier: specifier: ^5.5.5 version: 5.5.5(@types/eslint@9.6.1)(eslint-config-prettier@10.1.8(eslint@10.1.0(jiti@2.6.1)))(eslint@10.1.0(jiti@2.6.1))(prettier@3.8.1) @@ -160,8 +160,8 @@ packages: '@epic-web/invariant@1.0.0': resolution: {integrity: sha512-lrTPqgvfFQtR/eY/qkIzp98OGdNJu0m5ji3q/nJI8v3SXkRKEnWiOxMmbvcSoAIzv/cGiuvRy57k4suKQSAdwA==} - '@es-joy/jsdoccomment@0.84.0': - resolution: {integrity: sha512-0xew1CxOam0gV5OMjh2KjFQZsKL2bByX1+q4j3E73MpYIdyUxcZb/xQct9ccUb+ve5KGUYbCUxyPnYB7RbuP+w==} + '@es-joy/jsdoccomment@0.86.0': + resolution: {integrity: sha512-ukZmRQ81WiTpDWO6D/cTBM7XbrNtutHKvAVnZN/8pldAwLoJArGOvkNyxPTBGsPjsoaQBJxlH+tE2TNA/92Qgw==} engines: {node: ^20.19.0 || ^22.13.0 || >=24} '@es-joy/resolve.exports@1.2.0': @@ -675,31 +675,31 @@ packages: resolution: {integrity: sha512-LNOGKvSeD34mTCWr62WCo6kVZqzZmllDH+OMDzCRzz1Dg6RzmJSx1qi1/sdqveIdtRP+YxEZPva6XswUBw3zRw==} hasBin: true - '@tsparticles/depcruise-config@3.4.2': - resolution: {integrity: sha512-SC5LZ5t47WzqwBYxU/2EIQXAThlTELUdJ2LdlqtG5mGTomkcYMwaQfSXrRF4sIHASa66Z364OatIKPXTl3dYOQ==} + '@tsparticles/depcruise-config@3.4.4': + resolution: {integrity: sha512-om49iFp9BnsKbNiQUeT6tQAByZqZ7ge29dy0YB4hxvlbbSzrgoHYkUJGK4y1dW3YIIM4iW64hSOM03VXgPyLnw==} peerDependencies: dependency-cruiser: ^17 '@tsparticles/engine@3.9.1': resolution: {integrity: sha512-DpdgAhWMZ3Eh2gyxik8FXS6BKZ8vyea+Eu5BC4epsahqTGY9V3JGGJcXC6lRJx6cPMAx1A0FaQAojPF3v6rkmQ==} - '@tsparticles/eslint-config@3.4.2': - resolution: {integrity: sha512-39NNzaU0sKPz1o6tzlvszTcu9NHFUVYw0wWlbxiKQ7kX2iGaL+P5wCbPe4yYp+XYHj6CHcmqmyWXorbgXt3QOg==} + '@tsparticles/eslint-config@3.4.4': + resolution: {integrity: sha512-SVHyqCN+NSZ5c0LF6NJPf58LvewKpRkwENKmOx7yKkz6HODMhxsxgas60uPcOuoR0HrewNR489C11SQGimsvyQ==} peerDependencies: eslint: ^10 - '@tsparticles/prettier-config@3.4.2': - resolution: {integrity: sha512-V8ewouJDDxZ85D4M0cc9Ief98fN7hDTZMpo+n4qaWW8gHCcVuyf/SyvfsD+v+s+Jt+sU5ljqx6Xj7ceTcGSDfg==} + '@tsparticles/prettier-config@3.4.4': + resolution: {integrity: sha512-np0oLkGnGm2Q2ibMIUgtctcYnqfOVzJCXSsMl25wBlqcqrnG1ZTOQPTN1iVhHJcnTLPNUNdIHhWMBaIbcG9nDA==} peerDependencies: prettier: ^3 - '@tsparticles/tsconfig@3.4.2': - resolution: {integrity: sha512-03MXJ/wO1RGO85BXt298wbAnzuh+eI7tUhSfchk87N1qMEb97+8/YEJ945ZObxhJlO1DkTlVm0ysXNhvTCTFWw==} + '@tsparticles/tsconfig@3.4.4': + resolution: {integrity: sha512-mjVflXVP2Da9Xv44EGOub4/KuPZmu14/ltlU12/38om0hEkQ9SgkKWayO9Zq4aZBv3vVfOguQUqEXc5TnYARpQ==} peerDependencies: typescript: ^6 - '@tsparticles/webpack-plugin@3.4.2': - resolution: {integrity: sha512-i87JvepkGYqg+w8IE/IkH4y4r+7pxepIrgCvyFnWL3iKWRvcQzMrytLu+uyhaHEAKxuZh9htcR791LIQts+wVg==} + '@tsparticles/webpack-plugin@3.4.4': + resolution: {integrity: sha512-TpRNzYrke9DyfIJSykASx7oddUcR3LqGWgAcqxE00Gx0D07tU5NqfDaG2IazeCJ2pK+ZfWcG4zq2wOVw+hSksw==} '@types/chai@5.2.3': resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} @@ -795,10 +795,6 @@ packages: resolution: {integrity: sha512-dbMkdIUkIkchgGDIv7KLUpa0Mda4IYjo4IAMJUZ+3xNoUXxMsk9YtKpTHSChRS85o+H9ftm51gsK1dZReY9CVw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/types@8.57.2': - resolution: {integrity: sha512-/iZM6FnM4tnx9csuTxspMW4BOSegshwX5oBDznJ7S4WggL7Vczz5d2W11ecc4vRrQMQHXRSxzrCsyG5EsPPTbA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/types@8.58.0': resolution: {integrity: sha512-O9CjxypDT89fbHxRfETNoAnHj/i6IpRK0CvbVN3qibxlLdo5p5hcLmUuCCrHMpxiWSwKyI8mCP7qRNYuOJ0Uww==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -1061,8 +1057,8 @@ packages: commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} - comment-parser@1.4.5: - resolution: {integrity: sha512-aRDkn3uyIlCFfk5NUA+VdwMmMsh8JGhc4hapfV4yxymHGQ3BVskMQfoXGpCo5IoBuQ9tS5iiVKhCpTcB4pW4qw==} + comment-parser@1.4.6: + resolution: {integrity: sha512-ObxuY6vnbWTN6Od72xfwN9DbzC7Y2vv8u1Soi9ahRKL37gb6y1qk6/dgjs+3JWuXJHWvsg3BXIwzd/rkmAwavg==} engines: {node: '>= 12.0.0'} concat-map@0.0.1: @@ -1172,8 +1168,8 @@ packages: peerDependencies: eslint: '>=7.0.0' - eslint-plugin-jsdoc@62.8.1: - resolution: {integrity: sha512-e9358PdHgvcMF98foNd3L7hVCw70Lt+YcSL7JzlJebB8eT5oRJtW6bHMQKoAwJtw6q0q0w/fRIr2kwnHdFDI6A==} + eslint-plugin-jsdoc@62.9.0: + resolution: {integrity: sha512-PY7/X4jrVgoIDncUmITlUqK546Ltmx/Pd4Hdsu4CvSjryQZJI2mEV4vrdMufyTetMiZ5taNSqvK//BTgVUlNkA==} engines: {node: ^20.19.0 || ^22.13.0 || >=24} peerDependencies: eslint: ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 @@ -1457,8 +1453,8 @@ packages: jju@1.4.0: resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==} - jsdoc-type-pratt-parser@7.1.1: - resolution: {integrity: sha512-/2uqY7x6bsrpi3i9LVU6J89352C0rpMk0as8trXxCtvd4kPk1ke/Eyif6wqfSLvoNJqcDG9Vk4UsXgygzCt2xA==} + jsdoc-type-pratt-parser@7.2.0: + resolution: {integrity: sha512-dh140MMgjyg3JhJZY/+iEzW+NO5xR2gpbDFKHqotCmexElVntw7GjWjt511+C/Ef02RU5TKYrJo/Xlzk+OLaTw==} engines: {node: '>=20.0.0'} json-buffer@3.0.1: @@ -2229,13 +2225,13 @@ snapshots: '@epic-web/invariant@1.0.0': {} - '@es-joy/jsdoccomment@0.84.0': + '@es-joy/jsdoccomment@0.86.0': dependencies: '@types/estree': 1.0.8 - '@typescript-eslint/types': 8.57.2 - comment-parser: 1.4.5 + '@typescript-eslint/types': 8.58.0 + comment-parser: 1.4.6 esquery: 1.7.0 - jsdoc-type-pratt-parser: 7.1.1 + jsdoc-type-pratt-parser: 7.2.0 '@es-joy/resolve.exports@1.2.0': {} @@ -2483,7 +2479,7 @@ snapshots: '@stylistic/eslint-plugin@5.10.0(eslint@10.1.0(jiti@2.6.1))': dependencies: '@eslint-community/eslint-utils': 4.9.1(eslint@10.1.0(jiti@2.6.1)) - '@typescript-eslint/types': 8.57.2 + '@typescript-eslint/types': 8.58.0 eslint: 10.1.0(jiti@2.6.1) eslint-visitor-keys: 4.2.1 espree: 10.4.0 @@ -2561,16 +2557,16 @@ snapshots: '@tsparticles/cli@3.3.8(@types/eslint@9.6.1)(jiti@2.6.1)(webpack-cli@7.0.2)': dependencies: '@swc/core': 1.15.21 - '@tsparticles/depcruise-config': 3.4.2(dependency-cruiser@17.3.10) - '@tsparticles/eslint-config': 3.4.2(@types/eslint@9.6.1)(eslint@10.1.0(jiti@2.6.1)) - '@tsparticles/prettier-config': 3.4.2(prettier@3.8.1) - '@tsparticles/tsconfig': 3.4.2(typescript@5.9.3) - '@tsparticles/webpack-plugin': 3.4.2(@types/eslint@9.6.1)(jiti@2.6.1) + '@tsparticles/depcruise-config': 3.4.4(dependency-cruiser@17.3.10) + '@tsparticles/eslint-config': 3.4.4(@types/eslint@9.6.1)(eslint@10.1.0(jiti@2.6.1)) + '@tsparticles/prettier-config': 3.4.4(prettier@3.8.1) + '@tsparticles/tsconfig': 3.4.4(typescript@5.9.3) + '@tsparticles/webpack-plugin': 3.4.4(@types/eslint@9.6.1)(jiti@2.6.1) commander: 14.0.3 dependency-cruiser: 17.3.10 eslint: 10.1.0(jiti@2.6.1) eslint-config-prettier: 10.1.8(eslint@10.1.0(jiti@2.6.1)) - eslint-plugin-jsdoc: 62.8.1(eslint@10.1.0(jiti@2.6.1)) + eslint-plugin-jsdoc: 62.9.0(eslint@10.1.0(jiti@2.6.1)) eslint-plugin-prettier: 5.5.5(@types/eslint@9.6.1)(eslint-config-prettier@10.1.8(eslint@10.1.0(jiti@2.6.1)))(eslint@10.1.0(jiti@2.6.1))(prettier@3.8.1) eslint-plugin-tsdoc: 0.5.2(eslint@10.1.0(jiti@2.6.1))(typescript@5.9.3) klaw: 4.1.0 @@ -2596,20 +2592,20 @@ snapshots: - webpack-cli - webpack-dev-server - '@tsparticles/depcruise-config@3.4.2(dependency-cruiser@17.3.10)': + '@tsparticles/depcruise-config@3.4.4(dependency-cruiser@17.3.10)': dependencies: dependency-cruiser: 17.3.10 '@tsparticles/engine@3.9.1': {} - '@tsparticles/eslint-config@3.4.2(@types/eslint@9.6.1)(eslint@10.1.0(jiti@2.6.1))': + '@tsparticles/eslint-config@3.4.4(@types/eslint@9.6.1)(eslint@10.1.0(jiti@2.6.1))': dependencies: '@eslint/js': 10.0.1(eslint@10.1.0(jiti@2.6.1)) '@stylistic/eslint-plugin': 5.10.0(eslint@10.1.0(jiti@2.6.1)) - '@tsparticles/prettier-config': 3.4.2(prettier@3.8.1) + '@tsparticles/prettier-config': 3.4.4(prettier@3.8.1) eslint: 10.1.0(jiti@2.6.1) eslint-config-prettier: 10.1.8(eslint@10.1.0(jiti@2.6.1)) - eslint-plugin-jsdoc: 62.8.1(eslint@10.1.0(jiti@2.6.1)) + eslint-plugin-jsdoc: 62.9.0(eslint@10.1.0(jiti@2.6.1)) eslint-plugin-prettier: 5.5.5(@types/eslint@9.6.1)(eslint-config-prettier@10.1.8(eslint@10.1.0(jiti@2.6.1)))(eslint@10.1.0(jiti@2.6.1))(prettier@3.8.1) eslint-plugin-tsdoc: 0.5.2(eslint@10.1.0(jiti@2.6.1))(typescript@6.0.2) jiti: 2.6.1 @@ -2621,29 +2617,29 @@ snapshots: - '@types/eslint' - supports-color - '@tsparticles/prettier-config@3.4.2(prettier@3.8.1)': + '@tsparticles/prettier-config@3.4.4(prettier@3.8.1)': dependencies: prettier: 3.8.1 prettier-plugin-multiline-arrays: 4.1.5(prettier@3.8.1) - '@tsparticles/tsconfig@3.4.2(typescript@5.9.3)': + '@tsparticles/tsconfig@3.4.4(typescript@5.9.3)': dependencies: typescript: 5.9.3 - '@tsparticles/tsconfig@3.4.2(typescript@6.0.2)': + '@tsparticles/tsconfig@3.4.4(typescript@6.0.2)': dependencies: typescript: 6.0.2 - '@tsparticles/webpack-plugin@3.4.2(@types/eslint@9.6.1)(jiti@2.6.1)': + '@tsparticles/webpack-plugin@3.4.4(@types/eslint@9.6.1)(jiti@2.6.1)': dependencies: '@stylistic/eslint-plugin': 5.10.0(eslint@10.1.0(jiti@2.6.1)) '@swc/core': 1.15.21 - '@tsparticles/eslint-config': 3.4.2(@types/eslint@9.6.1)(eslint@10.1.0(jiti@2.6.1)) - '@tsparticles/prettier-config': 3.4.2(prettier@3.8.1) + '@tsparticles/eslint-config': 3.4.4(@types/eslint@9.6.1)(eslint@10.1.0(jiti@2.6.1)) + '@tsparticles/prettier-config': 3.4.4(prettier@3.8.1) browserslist: 4.28.2 eslint: 10.1.0(jiti@2.6.1) eslint-config-prettier: 10.1.8(eslint@10.1.0(jiti@2.6.1)) - eslint-plugin-jsdoc: 62.8.1(eslint@10.1.0(jiti@2.6.1)) + eslint-plugin-jsdoc: 62.9.0(eslint@10.1.0(jiti@2.6.1)) eslint-plugin-tsdoc: 0.5.2(eslint@10.1.0(jiti@2.6.1))(typescript@6.0.2) prettier: 3.8.1 prettier-plugin-multiline-arrays: 4.1.5(prettier@3.8.1) @@ -2849,8 +2845,6 @@ snapshots: '@typescript-eslint/types@8.56.1': {} - '@typescript-eslint/types@8.57.2': {} - '@typescript-eslint/types@8.58.0': {} '@typescript-eslint/typescript-estree@8.56.1(typescript@5.9.3)': @@ -3209,7 +3203,7 @@ snapshots: commander@2.20.3: {} - comment-parser@1.4.5: {} + comment-parser@1.4.6: {} concat-map@0.0.1: {} @@ -3334,12 +3328,12 @@ snapshots: dependencies: eslint: 10.1.0(jiti@2.6.1) - eslint-plugin-jsdoc@62.8.1(eslint@10.1.0(jiti@2.6.1)): + eslint-plugin-jsdoc@62.9.0(eslint@10.1.0(jiti@2.6.1)): dependencies: - '@es-joy/jsdoccomment': 0.84.0 + '@es-joy/jsdoccomment': 0.86.0 '@es-joy/resolve.exports': 1.2.0 are-docs-informative: 0.0.2 - comment-parser: 1.4.5 + comment-parser: 1.4.6 debug: 4.4.3 escape-string-regexp: 4.0.0 eslint: 10.1.0(jiti@2.6.1) @@ -3629,7 +3623,7 @@ snapshots: jju@1.4.0: {} - jsdoc-type-pratt-parser@7.1.1: {} + jsdoc-type-pratt-parser@7.2.0: {} json-buffer@3.0.1: {} diff --git a/src/build/build-distfiles.ts b/src/build/build-distfiles.ts index cf55b3c..9319162 100644 --- a/src/build/build-distfiles.ts +++ b/src/build/build-distfiles.ts @@ -32,7 +32,9 @@ export async function buildDistFiles(basePath: string, silent: boolean): Promise if (pkgInfo.dependencies) { libObj["dependencies"] = JSON.parse(JSON.stringify(pkgInfo.dependencies).replaceAll("workspace:", "")); - } else if (pkgInfo.peerDependencies) { + } + + if (pkgInfo.peerDependencies) { libObj["peerDependencies"] = JSON.parse(JSON.stringify(pkgInfo.peerDependencies).replaceAll("workspace:", "")); } diff --git a/src/build/build-tsc.ts b/src/build/build-tsc.ts index aa648b7..1dadf48 100644 --- a/src/build/build-tsc.ts +++ b/src/build/build-tsc.ts @@ -33,11 +33,7 @@ async function readConfig(basePath: string, file: string): Promise { +async function compile(basePath: string, type: "browser" | "cjs" | "esm" | "types", silent: boolean): Promise { let options: unknown, data: string | undefined; switch (type) { @@ -100,21 +96,6 @@ async function compile( }; } - break; - case "umd": - data = await readConfig(basePath, "tsconfig.umd.json"); - - if (!data) { - options = { - extends: "@tsparticles/tsconfig/dist/tsconfig.umd.json", - compilerOptions: { - rootDir: "./src", - outDir: "./dist/umd", - }, - include: ["./src"], - }; - } - break; } @@ -181,7 +162,7 @@ export async function buildTS(basePath: string, silent: boolean): Promise