Refactor OpenAPI plugin: remove unused index.ts, update package.json with author info, enhance file detection logic, and add comprehensive tests for OpenAPI file detection.

This commit is contained in:
Luke Hagar
2025-09-25 16:32:08 +00:00
parent 61b49e4616
commit 8ffbcc25fa
10 changed files with 424 additions and 758 deletions

View File

@@ -2,11 +2,19 @@
"name": "prettier-plugin-openapi",
"version": "1.0.0",
"description": "A Prettier plugin for formatting OpenAPI/Swagger JSON and YAML files",
"author": {
"name": "Luke Hagar",
"email": "lukeslakemail@gmail.com",
"url": "https://LukeHagar.com/"
},
"license": "MIT",
"main": "dist/index.js",
"module": "dist/index.js",
"type": "module",
"files": [
"dist"
"dist",
"README.md",
"LICENSE"
],
"scripts": {
"build": "tsc",
@@ -23,8 +31,6 @@
"json",
"formatting"
],
"author": "",
"license": "MIT",
"peerDependencies": {
"prettier": "^3.0.0"
},