Files
prettier-plugin-openapi/package.json
2025-11-10 16:45:57 +00:00

90 lines
2.5 KiB
JSON

{
"name": "prettier-plugin-openapi",
"version": "1.0.12",
"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",
"files": [
"dist/index.js",
"dist/index.js.map",
"dist/browser.js",
"dist/index.d.ts"
],
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./browser": "./dist/browser.js",
"./package.json": "./package.json"
},
"engines": {
"node": ">=18.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/LukeHagar/prettier-plugin-openapi"
},
"bugs": {
"url": "https://github.com/lukehagar/prettier-plugin-openapi/issues"
},
"homepage": "https://github.com/lukehagar/prettier-plugin-openapi#readme",
"scripts": {
"build": "rollup -c && tsc --emitDeclarationOnly",
"dev": "rollup -c --watch",
"pretest": "bun run build",
"test": "bun test",
"test:coverage": "bun test --coverage",
"test:watch": "bun test --watch",
"test:ci": "bun test --reporter=verbose",
"lint": "biome lint src/ test/",
"lint:fix": "biome lint --write src/ test/",
"check": "tsc --noEmit",
"check:watch": "tsc --noEmit --watch",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"*.{json,md,yml,yaml}\"",
"format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\" \"*.{json,md,yml,yaml}\"",
"clean": "rm -rf dist coverage",
"prebuild": "bun run clean",
"prepublishOnly": "bun run build && bun run test && bun run lint",
"publish:package": "npm publish",
"version:patch": "npm version patch",
"version:minor": "npm version minor",
"version:major": "npm version major",
"validate": "bun run type-check && bun run lint && bun run test"
},
"keywords": [
"prettier",
"prettier-plugin",
"openapi",
"swagger",
"yaml",
"json",
"formatting"
],
"peerDependencies": {
"prettier": "^3.0.0"
},
"devDependencies": {
"@biomejs/biome": "^2.3.2",
"@rollup/plugin-alias": "^6.0.0",
"@rollup/plugin-commonjs": "^29.0.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@types/bun": "^1.3.1",
"@types/node": "^24.9.2",
"prettier": "^3.6.2",
"rollup": "^4.52.5",
"rollup-plugin-typescript": "^1.0.1",
"typescript": "^5.9.3"
},
"dependencies": {
"@types/js-yaml": "^4.0.9",
"js-yaml": "^4.1.0"
}
}