@tsparticles/cli 3.4.1 → 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
- else if (pkgInfo.peerDependencies) {
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/cli",
3
- "version": "3.4.1",
3
+ "version": "3.4.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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
- } else if (pkgInfo.peerDependencies) {
35
+ }
36
+
37
+ if (pkgInfo.peerDependencies) {
36
38
  libObj["peerDependencies"] = JSON.parse(JSON.stringify(pkgInfo.peerDependencies).replaceAll("workspace:", ""));
37
39
  }
38
40