@comet/cli 8.0.0-canary-20250120132856 → 8.0.0-canary-20250120134753
Sign up to get free protection for your applications and to get access to all the features.
@@ -162,9 +162,11 @@ var generateBlockTypes = new commander_1.Command("generate-block-types")
|
|
162
162
|
return [4 /*yield*/, (0, prettier_1.resolveConfig)(process.cwd())];
|
163
163
|
case 2:
|
164
164
|
prettierOptions = _a.sent();
|
165
|
-
|
166
|
-
return [4 /*yield*/, (0, promises_1.writeFile)(options.outputFile, content)];
|
165
|
+
return [4 /*yield*/, (0, prettier_1.format)(content, __assign(__assign({}, prettierOptions), { parser: "typescript" }))];
|
167
166
|
case 3:
|
167
|
+
content = _a.sent();
|
168
|
+
return [4 /*yield*/, (0, promises_1.writeFile)(options.outputFile, content)];
|
169
|
+
case 4:
|
168
170
|
_a.sent();
|
169
171
|
return [2 /*return*/];
|
170
172
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@comet/cli",
|
3
|
-
"version": "8.0.0-canary-
|
3
|
+
"version": "8.0.0-canary-20250120134753",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "https://github.com/vivid-planet/comet",
|
@@ -18,10 +18,10 @@
|
|
18
18
|
],
|
19
19
|
"dependencies": {
|
20
20
|
"commander": "^9.5.0",
|
21
|
-
"prettier": "^
|
21
|
+
"prettier": "^3.4.2"
|
22
22
|
},
|
23
23
|
"devDependencies": {
|
24
|
-
"@comet/eslint-config": "8.0.0-canary-
|
24
|
+
"@comet/eslint-config": "8.0.0-canary-20250120134753",
|
25
25
|
"@types/node": "^22.0.0",
|
26
26
|
"eslint": "^8.0.0",
|
27
27
|
"npm-run-all2": "^5.0.2",
|