UNPKG

openapi-tree-shaker

Version:

A tool to tree-shake OpenAPI specifications by removing unused paths and components

81 lines (80 loc) 2.15 kB
{ "name": "openapi-tree-shaker", "private": false, "version": "1.1.1", "type": "module", "scripts": { "dev": "vite", "build": "tsc && vite build", "lint": "eslint . --fix", "format": "prettier --write .", "preview": "vite preview", "tree-shake": "tsx src/cli.ts", "build:cli": "tsc --project tsconfig.node.json && vite build", "test": "vitest", "test:coverage": "vitest run --coverage", "prepublishOnly": "npm run lint && npm run format && npm run test && npm run build:cli" }, "bin": { "openapi-tree-shake": "./dist/cli.js" }, "files": [ "dist", "README.md", "CHANGELOG.md" ], "dependencies": { "js-yaml": "^4.1.0", "lucide-react": "^0.359.0", "openapi-schema-validator": "^12.1.3", "openapi-types": "^12.1.3", "react": "^18.2.0", "react-dom": "^18.2.0" }, "devDependencies": { "@eslint/js": "^8.57.0", "@types/js-yaml": "^4.0.9", "@types/node": "^20.11.30", "@types/react": "^18.2.67", "@types/react-dom": "^18.2.22", "@vitejs/plugin-react": "^4.2.1", "@vitest/coverage-v8": "^3.1.1", "autoprefixer": "^10.4.18", "eslint": "^8.57.0", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.5", "globals": "^13.24.0", "postcss": "^8.4.35", "prettier": "^3.2.5", "rimraf": "^5.0.5", "tailwindcss": "^3.4.1", "tsx": "^4.7.1", "typescript": "~5.3.3", "typescript-eslint": "^7.2.0", "vite": "^6.2.4", "vitest": "^3.1.1" }, "description": "A tool to tree-shake OpenAPI specifications by removing unused paths and components", "keywords": [ "openapi", "swagger", "tree-shake", "optimization" ], "author": { "name": "Guy Frimerman", "url": "https://github.com/GuyFrimerman" }, "license": "MIT", "repository": { "type": "git", "url": "https://github.com/GuyFrimerman/openapi-tree-shaker" }, "bugs": { "url": "https://github.com/GuyFrimerman/openapi-tree-shaker/issues" }, "homepage": "https://github.com/GuyFrimerman/openapi-tree-shaker#readme", "engines": { "node": ">=18" } }