Skip to content

Commit

Permalink
Merge pull request #1090 from samchon/feature/editor
Browse files Browse the repository at this point in the history
Fix `@nestia/editor`'s prettier bug
  • Loading branch information
samchon authored Oct 29, 2024
2 parents 5729342 + c3439bc commit 2c1ddc8
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 111 deletions.
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,5 @@
"prettier": "^3.2.4",
"rimraf": "^5.0.1",
"sloc": "^0.3.0"
},
"dependencies": {
"@nestia/migrate": "^0.18.2",
"@stackblitz/sdk": "^1.11.0"
}
}
2 changes: 1 addition & 1 deletion packages/editor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestia/editor",
"version": "0.5.0",
"version": "0.5.1",
"typings": "lib/index.d.ts",
"main": "lib/index.js",
"module": "lib/index.mjs",
Expand Down
8 changes: 5 additions & 3 deletions packages/editor/src/internal/NestiaEditorComposer.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MigrateApplication } from "@nestia/migrate";
import { OpenApiV3, OpenApiV3_1, SwaggerV2 } from "@samchon/openapi";
import prettierEsTreePlugin from "prettier/plugins/estree";
import prettierTsPlugin from "prettier/plugins/typescript";
import * as prettierEsTreePlugin from "prettier/plugins/estree";
import * as prettierTsPlugin from "prettier/plugins/typescript";
import { format } from "prettier/standalone";
import { IValidation } from "typia";

Expand Down Expand Up @@ -67,7 +67,9 @@ export namespace NestiaEditorComposer {
parser: "typescript",
plugins: [prettierEsTreePlugin, prettierTsPlugin],
});
} catch {}
} catch (exp) {
console.log(exp);
}
return {
success: true,
data: {
Expand Down
80 changes: 76 additions & 4 deletions website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@mui/icons-material": "5.15.6",
"@mui/material": "5.15.6",
"@mui/system": "5.15.6",
"@nestia/editor": "0.5.0",
"@nestia/editor": "^0.5.1",
"jszip": "^3.10.1",
"next": "14.2.13",
"nextra": "^2.13.4",
Expand Down
98 changes: 0 additions & 98 deletions website/src/functional/EditorComposer.ts

This file was deleted.

0 comments on commit 2c1ddc8

Please sign in to comment.