@tsparticles/cli 2.0.0-beta.4 → 2.0.0-beta.5

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.
@@ -63,12 +63,12 @@ async function prettifyPackageJson(basePath, ci) {
63
63
  options.parser = "json";
64
64
  if (ci) {
65
65
  if (!(await prettier_1.default.check(contents, options))) {
66
- throw new Error(`pacakge.json is not formatted correctly`);
66
+ throw new Error(`package.json is not formatted correctly`);
67
67
  }
68
68
  }
69
69
  else {
70
70
  const formatted = await prettier_1.default.format(contents, options);
71
- await fs_extra_1.default.writeFile("pacakge.json", formatted, "utf8");
71
+ await fs_extra_1.default.writeFile("package.json", formatted, "utf8");
72
72
  }
73
73
  res = true;
74
74
  }
@@ -76,7 +76,7 @@ async function prettifyPackageJson(basePath, ci) {
76
76
  console.error(e);
77
77
  res = false;
78
78
  }
79
- console.log("Prettier - done on pacakge.json");
79
+ console.log("Prettier - done on package.json");
80
80
  return res;
81
81
  }
82
82
  exports.prettifyPackageJson = prettifyPackageJson;
@@ -101,7 +101,7 @@ async function prettifyPackageDistJson(basePath, ci) {
101
101
  }
102
102
  else {
103
103
  const formatted = await prettier_1.default.format(contents, options);
104
- await fs_extra_1.default.writeFile("pacakge.dist.json", formatted, "utf8");
104
+ await fs_extra_1.default.writeFile("package.dist.json", formatted, "utf8");
105
105
  }
106
106
  res = true;
107
107
  }
@@ -109,7 +109,7 @@ async function prettifyPackageDistJson(basePath, ci) {
109
109
  console.error(e);
110
110
  res = false;
111
111
  }
112
- console.log("Prettier - done on pacakge.dist.json");
112
+ console.log("Prettier - done on package.dist.json");
113
113
  return res;
114
114
  }
115
115
  exports.prettifyPackageDistJson = prettifyPackageDistJson;
@@ -83,7 +83,7 @@
83
83
  "prettier": "@tsparticles/prettier-config",
84
84
  "devDependencies": {
85
85
  "@babel/core": "^7.22.9",
86
- "@tsparticles/cli": "^2.0.0-beta.4",
86
+ "@tsparticles/cli": "^2.0.0-beta.5",
87
87
  "@tsparticles/eslint-config": "^1.19.0",
88
88
  "@tsparticles/prettier-config": "^1.12.0",
89
89
  "@tsparticles/tsconfig": "^1.14.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/cli",
3
- "version": "2.0.0-beta.4",
3
+ "version": "2.0.0-beta.5",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "tsparticles-cli": "dist/cli.js"
@@ -72,12 +72,12 @@ export async function prettifyPackageJson(basePath: string, ci: boolean): Promis
72
72
 
73
73
  if (ci) {
74
74
  if (!(await prettier.check(contents, options))) {
75
- throw new Error(`pacakge.json is not formatted correctly`);
75
+ throw new Error(`package.json is not formatted correctly`);
76
76
  }
77
77
  } else {
78
78
  const formatted = await prettier.format(contents, options);
79
79
 
80
- await fs.writeFile("pacakge.json", formatted, "utf8");
80
+ await fs.writeFile("package.json", formatted, "utf8");
81
81
  }
82
82
 
83
83
  res = true;
@@ -87,7 +87,7 @@ export async function prettifyPackageJson(basePath: string, ci: boolean): Promis
87
87
  res = false;
88
88
  }
89
89
 
90
- console.log("Prettier - done on pacakge.json");
90
+ console.log("Prettier - done on package.json");
91
91
 
92
92
  return res;
93
93
  }
@@ -118,7 +118,7 @@ export async function prettifyPackageDistJson(basePath: string, ci: boolean): Pr
118
118
  } else {
119
119
  const formatted = await prettier.format(contents, options);
120
120
 
121
- await fs.writeFile("pacakge.dist.json", formatted, "utf8");
121
+ await fs.writeFile("package.dist.json", formatted, "utf8");
122
122
  }
123
123
 
124
124
  res = true;
@@ -128,7 +128,7 @@ export async function prettifyPackageDistJson(basePath: string, ci: boolean): Pr
128
128
  res = false;
129
129
  }
130
130
 
131
- console.log("Prettier - done on pacakge.dist.json");
131
+ console.log("Prettier - done on package.dist.json");
132
132
 
133
133
  return res;
134
134
  }