{"_id":"@7nohe/vite-plugin-openapi-typescript-codegen","_rev":"3-fe898481895dc786b2c41ff6a68b91e1","name":"@7nohe/vite-plugin-openapi-typescript-codegen","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@7nohe/vite-plugin-openapi-typescript-codegen","version":"0.1.0","keywords":["openapi","typescript","vite","node","yaml","json","swagger"],"author":{"name":"7nohe"},"license":"MIT","_id":"@7nohe/vite-plugin-openapi-typescript-codegen@0.1.0","maintainers":[{"name":"7nohe","email":"7nohe.urata@gmail.com"}],"homepage":"https://github.com/7nohe/vite-plugin-openapi-typescript-codegen","bugs":{"url":"https://github.com/7nohe/vite-plugin-openapi-typescript-codegen/issues"},"dist":{"shasum":"42a3230c30bea596c0be2ae86e8c6500f403603c","tarball":"https://registry.npmjs.org/@7nohe/vite-plugin-openapi-typescript-codegen/-/vite-plugin-openapi-typescript-codegen-0.1.0.tgz","fileCount":8,"integrity":"sha512-6Sz2QZkTrJBY4N6zGWWfsQbb8VxtqDwTgXnErtMN2nsCBTYFon48nLfv2PmsN82S/Q5ydok/GMvP/JOvEgR5pA==","signatures":[{"sig":"MEUCIQCjBAABsUnlIZAw03jXdoCvW0XnZTw0LX61EkHJS08DTQIgc/nH/CQO/4p3Y8sT7eqY7tUBi6AkJaX+TVqt17u849w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1583531,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0sWwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpvvg/+Ol7gabAT7Le0/wkcSw4NawkpjqTXJn2aTeTg3N/A20p/h3Do\r\nRkX0iDhWz/RiH4m88fGqSbGSYk51V1Ox9vnnLdQQ/wge199frN2d2B6j5StR\r\nTb9yn+ksBMRt1UB/3WMY2QEEmjFb6CS+Zm0hjXqrhqobknR0fmTKvqxkpGIk\r\ntrp5/lV/7K2R2nNYaFThZEll56y1SNx3/YUie4u8sfiB7MSGUSrwyrULXxAT\r\nsCnPDXaoKfh5V8HqETLCq+iKja4NadBHWgGP0kARZ2Xzuyjfou0ppR/1AUjY\r\naJXeaqZs1RYRhjDRZKwWBHlV8W1fjhkFOf9FKqq1Ou78acKQRYu/r8g9xVVm\r\nso8ZVCsKNaYH1qR3Z5ewL/yigfGx3dxIiSYA5pqqp1tMsgYo6Xxh00gVf4sP\r\ntbvUtEN3urgulZ+RHHSj3KLeQ0mw2CAFynEZzxvVBwqAzoafoarKHUYAzycJ\r\n9LjxUkc13plNxsbI7qv3sW+SUsXAYStORGeqX4PLMDHLkrF9lqrOHNOgbC+H\r\nvu71whS+a8/BEGXchFywMdZQP/+sgWHSFXcztbo7toge8wPdpJZT1B5I6GHH\r\nhs6/md9IgVpM8e/zUEIx/GdpkgD78MBu2ruVX4n0bsCPbpO1Qbffa9LYQl72\r\nowaqwdw4yo1ppk/ZE4NYjpL3dS4LYTOixl0=\r\n=hZv1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","gitHead":"936be0367c75d4d2256853dd624088f8db097d27","scripts":{"dev":"npm run build -- --watch","build":"tsup src/index.ts --dts --format cjs,esm","preview":"tsup src/index.ts --dts --format cjs,esm && npm -C example run dev","release":"npx git-ensure -a && npx bumpp --commit --tag --push","prepublishOnly":"npm run build"},"_npmUser":{"name":"7nohe","email":"7nohe.urata@gmail.com"},"repository":{"url":"git+https://github.com/7nohe/vite-plugin-openapi-typescript-codegen.git","type":"git"},"_npmVersion":"8.13.1","description":"OpenAPI Typescript Codegen for Vite","directories":{},"_nodeVersion":"16.14.2","_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.1.3","vite":"^3.0.0","eslint":"^8.19.0","chokidar":"^3.5.3","typescript":"^4.7.4","@types/node":"^18.0.4","@antfu/eslint-config":"^0.25.2","openapi-typescript-codegen":"^0.23.0"},"peerDependencies":{"vite":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-openapi-typescript-codegen_0.1.0_1657980336492_0.4996983871681644","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@7nohe/vite-plugin-openapi-typescript-codegen","version":"0.1.1","keywords":["openapi","typescript","vite","node","yaml","json","swagger"],"author":{"name":"7nohe"},"license":"MIT","_id":"@7nohe/vite-plugin-openapi-typescript-codegen@0.1.1","maintainers":[{"name":"7nohe","email":"7nohe.urata@gmail.com"}],"homepage":"https://github.com/7nohe/vite-plugin-openapi-typescript-codegen","bugs":{"url":"https://github.com/7nohe/vite-plugin-openapi-typescript-codegen/issues"},"dist":{"shasum":"4598259acd8582d090a7cff5bdb8b9dc9fae9b86","tarball":"https://registry.npmjs.org/@7nohe/vite-plugin-openapi-typescript-codegen/-/vite-plugin-openapi-typescript-codegen-0.1.1.tgz","fileCount":8,"integrity":"sha512-zAxvQnh8EgPfpLgITKQNHhy5m5dljM6OowStVi7KrM1/0UWH41XdcimuJ12gbgXApifvR2iNHpyZugTILSYmlg==","signatures":[{"sig":"MEQCIE999UkP83gyT5SQ4oz0nRQLqvvu5cbzfIcnmtMGw71WAiBupBDW+ar/dBYdTYK7DmKUJ8vCrXOERxOriref4rurHw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1585038,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2BtfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrauA//WVnY9FxFvlIoUAYNelE+hG3EbhpuRW+zzBTTaJ4Jo7GCzYxd\r\nHylLQv8GbXqbcGF3Okq+RgBrxly+H086sEVHDUklsC514o0lZIWPdkjFh6y5\r\nMfSgaeTXXeMtciI9Z8A7GJxlL6KU6+KZ+nkbSbVvEY4L526guLVMWx9MjMFh\r\nJBJmV+c+5bLqeADQYOfVYDkOKkvHHxnZuSkpeh1bmhkXI8JKu8sfMAB3Bewp\r\n1iE95axcnAs4cff/gPWsX/qZcv2On7/MHVsVQsWq8LXiZRVRTMuGMuJDyQsJ\r\nBRAXhlbLmk3Is4g6fjnqE5FcvG42dogbsFf31VGl353X9MhBCf1DF0ZjpYp0\r\nDMcjHBx0M+Ly3EXeSUcaSPL6RUkCmcHZCZdUUdpRKyw09Y8Ed0RzEK3b6ZBx\r\n6fYh57KEGE6jXrGFLdBoj7xKAGFyl2RPmtHhtjbGD7SURUPnxbFij3KJIUIc\r\nrUHg+V1D0e9sCAB/1t+WyozlxI0rWnN4l2zzDA1Q0N9fL+iSiKCChOhRT9IT\r\nkJ6rc+eHBDCNeBxJREhw5sJWwiy/duHpRL+2WflyFHeLo/OM1WWZcIr5pw64\r\nGix75OlDaLSgiaCRf+o9pzbhi5WjZQOsrZTnT4ekT7f1HhX0ikKF7fkZ2VgH\r\nD7WmG+Zhv51evQgeXpyiGOLjgx8WKFaM5OI=\r\n=EPdN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:7nohe-vite-plugin-openapi-typescript-codegen-0.1.1.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","scripts":{"dev":"npm run build -- --watch","build":"tsup src/index.ts --dts --format cjs,esm","preview":"tsup src/index.ts --dts --format cjs,esm && npm -C example run dev","release":"npx git-ensure -a && npx bumpp --commit --tag --push"},"_npmUser":{"name":"7nohe","email":"7nohe.urata@gmail.com"},"_resolved":"/private/var/folders/hw/1qtf_mjj1fb6b1f6674k_y980000gn/T/63c78c3f8c7842e2db7bca82c7ba8a6e/7nohe-vite-plugin-openapi-typescript-codegen-0.1.1.tgz","_integrity":"sha512-zAxvQnh8EgPfpLgITKQNHhy5m5dljM6OowStVi7KrM1/0UWH41XdcimuJ12gbgXApifvR2iNHpyZugTILSYmlg==","repository":{"url":"git+https://github.com/7nohe/vite-plugin-openapi-typescript-codegen.git","type":"git"},"_npmVersion":"8.13.1","description":"OpenAPI Typescript Codegen for Vite","directories":{},"_nodeVersion":"16.14.2","_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.1.3","vite":"^3.0.0","eslint":"^8.19.0","chokidar":"^3.5.3","typescript":"^4.7.4","@types/node":"^18.0.4","@antfu/eslint-config":"^0.25.2","openapi-typescript-codegen":"^0.23.0"},"peerDependencies":{"vite":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-openapi-typescript-codegen_0.1.1_1658329951092_0.09107278564753751","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@7nohe/vite-plugin-openapi-typescript-codegen","version":"0.1.2","keywords":["openapi","typescript","vite","node","yaml","json","swagger"],"author":{"name":"7nohe"},"license":"MIT","_id":"@7nohe/vite-plugin-openapi-typescript-codegen@0.1.2","maintainers":[{"name":"7nohe","email":"7nohe.urata@gmail.com"}],"homepage":"https://github.com/7nohe/vite-plugin-openapi-typescript-codegen","bugs":{"url":"https://github.com/7nohe/vite-plugin-openapi-typescript-codegen/issues"},"dist":{"shasum":"8454ee0ece2705491d0ec65021d80c9d327fcd63","tarball":"https://registry.npmjs.org/@7nohe/vite-plugin-openapi-typescript-codegen/-/vite-plugin-openapi-typescript-codegen-0.1.2.tgz","fileCount":8,"integrity":"sha512-V6M5xgHfqF4gSuDg7QkmDyY9eadXXOf6xEDoEGAgJnClG3RF4TGL3UobZrCM8sJAZ3MTG5YlWouR3GfiEXRsAw==","signatures":[{"sig":"MEUCIAPmLxnwHC/jePsLfVZO5k14ZOTG5KrcPhoerZfBLpqAAiEA9Ep86IIbmpzaFDWqYUC5rXWFly+2iLoiYtNHVAYJ73I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1587757,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjF1QbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpUARAAmn62FNka9V4uvyhbCvZ2MGbZy/Sm2oc7ZxCrMwQPsJsK8MOB\r\nsyiMKvt9gigtl3GRzpdGGx4wOqvVtOLpoNWtgKROPSXG8addexhFBrKzckOP\r\nI7lq7iG8IAVaFAuCnriiITRJe3pKcA47QKBwxN8TyJXLjQs8Bxqt3IKYoS1z\r\nlGqOPxM9roPLkM2grcdGpi9pUlsqyX/AIWae3nu3yBowwyKryVnSDTstL4iD\r\n+6bD2qqYHCY/5J8YbYrLgVebUiytTrwxyFewDZotWW12nxUVABJDVmmDwlQ1\r\nhmEQM0lvIcp6hQgkXVtynECB+dX9NAGB6eW2dk9fIe23u3TnSae4ONfAIO/S\r\nfFk5PvNutXS2zohCWj2ygwtOzpFbjF3AJo7xyrmdegR9FwYhZb2OThXZmq3Q\r\nQZPSFAT4JOEjZCQp/cPh34T9awJbOi13xCnJxy2BT0aeatgf5oPGsNEWzBb9\r\n6HuqfZ2PqG9qsk/ABeylrl5xb8yKtynY1ykIZnJxdxFoOhh/U/j/YG+cVgxE\r\nmkV3CniycfPnV0EP0p6BnB7YDqukB8ZUSR0ROcngWrNxljaAEiOiKlsPIzG+\r\nFbeD7ykSSOGPq2eCnTK/3Jga28gq2NAM7criJL04lVFouY6K4nOVvOlHy5yj\r\nlzXid/Wm1eoyExSRhc3QT9aZVcE7BU1Kbfk=\r\n=OReX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:7nohe-vite-plugin-openapi-typescript-codegen-0.1.2.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","scripts":{"dev":"pnpm run build -- --watch","lint":"eslint src/**/*.ts","build":"tsup src/index.ts --dts --format cjs,esm","preview":"tsup src/index.ts --dts --format cjs,esm && pnpm --filter @7nohe/example run dev","release":"npx git-ensure -a && npx bumpp --commit --tag --push"},"_npmUser":{"name":"7nohe","email":"7nohe.urata@gmail.com"},"_resolved":"/private/var/folders/w5/gdgp75rs48742wn5mt359rjw0000gn/T/7545a4c9117d3ca10107b90b0525a301/7nohe-vite-plugin-openapi-typescript-codegen-0.1.2.tgz","_integrity":"sha512-V6M5xgHfqF4gSuDg7QkmDyY9eadXXOf6xEDoEGAgJnClG3RF4TGL3UobZrCM8sJAZ3MTG5YlWouR3GfiEXRsAw==","repository":{"url":"git+https://github.com/7nohe/vite-plugin-openapi-typescript-codegen.git","type":"git"},"_npmVersion":"8.11.0","description":"OpenAPI Typescript Codegen for Vite","directories":{},"_nodeVersion":"16.16.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.2.3","vite":"^3.1.0","eslint":"^8.23.0","chokidar":"^3.5.3","typescript":"^4.8.2","@types/node":"^18.7.15","@antfu/eslint-config":"^0.26.3","openapi-typescript-codegen":"^0.23.0"},"peerDependencies":{"vite":"3.x"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-openapi-typescript-codegen_0.1.2_1662473243597_0.5613849618252151","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@7nohe/vite-plugin-openapi-typescript-codegen","version":"0.2.0","description":"OpenAPI Typescript Codegen for Vite","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/7nohe/vite-plugin-openapi-typescript-codegen.git"},"homepage":"https://github.com/7nohe/vite-plugin-openapi-typescript-codegen","bugs":{"url":"https://github.com/7nohe/vite-plugin-openapi-typescript-codegen/issues"},"keywords":["openapi","typescript","vite","node","yaml","json","swagger"],"author":{"name":"7nohe"},"license":"MIT","peerDependencies":{"vite":"5.x"},"devDependencies":{"@antfu/eslint-config":"^0.26.3","@types/node":"^18.7.15","chokidar":"^3.5.3","eslint":"^8.23.0","openapi-typescript-codegen":"^0.23.0","tsup":"^6.2.3","typescript":"^4.8.2","vite":"^5.0.0"},"scripts":{"dev":"pnpm run build -- --watch","build":"tsup src/index.ts --dts --format esm,cjs","release":"npx git-ensure -a && npx bumpp --commit --tag --push","lint":"eslint src/**/*.ts","preview":"tsup src/index.ts --dts --format cjs,esm && pnpm --filter @7nohe/example run dev"},"_id":"@7nohe/vite-plugin-openapi-typescript-codegen@0.2.0","_integrity":"sha512-xjMKAKF9rOhDk2Vh93SsP/NOafT7vkzTe0tKv3O9d9y/8KDVgtaOKqX8nKx5XxQwcLhSf9zs4jDsnI3TFrz2iQ==","_resolved":"/private/var/folders/w5/gdgp75rs48742wn5mt359rjw0000gn/T/136a602641501a4e268d1adf4a6f47b0/7nohe-vite-plugin-openapi-typescript-codegen-0.2.0.tgz","_from":"file:7nohe-vite-plugin-openapi-typescript-codegen-0.2.0.tgz","_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-xjMKAKF9rOhDk2Vh93SsP/NOafT7vkzTe0tKv3O9d9y/8KDVgtaOKqX8nKx5XxQwcLhSf9zs4jDsnI3TFrz2iQ==","shasum":"c2ba4f22cc80fc16c4c84bb51f257f079c524e0b","tarball":"https://registry.npmjs.org/@7nohe/vite-plugin-openapi-typescript-codegen/-/vite-plugin-openapi-typescript-codegen-0.2.0.tgz","fileCount":11,"unpackedSize":2349455,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIG72IXWaSU7Ks2cZ8Pow8qd5OjJrUPyyC+XiHkdvXp/KAiA0PPyBAk0fWAD21NiqC60aV1htgwFVpaCIJqszdJxz0w=="}]},"_npmUser":{"name":"7nohe","email":"7nohe.urata@gmail.com"},"directories":{},"maintainers":[{"name":"7nohe","email":"7nohe.urata@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vite-plugin-openapi-typescript-codegen_0.2.0_1740381294644_0.8540385610092582"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-16T14:05:36.403Z","modified":"2025-02-24T07:14:55.059Z","0.1.0":"2022-07-16T14:05:36.709Z","0.1.1":"2022-07-20T15:12:31.313Z","0.1.2":"2022-09-06T14:07:23.825Z","0.2.0":"2025-02-24T07:14:54.909Z"},"bugs":{"url":"https://github.com/7nohe/vite-plugin-openapi-typescript-codegen/issues"},"author":{"name":"7nohe"},"license":"MIT","homepage":"https://github.com/7nohe/vite-plugin-openapi-typescript-codegen","keywords":["openapi","typescript","vite","node","yaml","json","swagger"],"repository":{"type":"git","url":"git+https://github.com/7nohe/vite-plugin-openapi-typescript-codegen.git"},"description":"OpenAPI Typescript Codegen for Vite","maintainers":[{"name":"7nohe","email":"7nohe.urata@gmail.com"}],"readme":"> [!IMPORTANT]\n> This library has been archived.\n> This library is no longer maintained because [OpenAPI Typescript Codegen](https://github.com/ferdikoomen/openapi-typescript-codegen?tab=readme-ov-file#important-announcement) is no longer maintained.\n\n# vite-plugin-openapi-typescript-codegen\n\n[OpenAPI Typescript Codegen](https://github.com/ferdikoomen/openapi-typescript-codegen) for Vite\n\n## Install\n\n```bash\nnpm install -D @7nohe/vite-plugin-openapi-typescript-codegen\n```\n\n## Usage\n\nAdd to your `vite.config.ts`\n\n```ts\nimport { defineConfig } from \"vite\";\nimport openApiTypescriptCodegen from \"@7nohe/vite-plugin-openapi-typescript-codegen\";\n\nexport default defineConfig({\n  plugins: [\n    openApiTypescriptCodegen({\n      input: \"./petstore.yaml\",\n      output: \"./openapi\",\n      watch: {\n        interval: 500,\n        disabled: process.env.NODE_ENV === \"production\",\n      },\n    }),\n  ],\n});\n```\n\n`petstore.yaml` is the schema file based on OpenAPI specification.\n\nThis plugin generates TypeScript clients by running `vite`/`vite build`.\n\nIt also detects changes in the schema file and regenerates the client files.\n\n## Options\n\n| name           | type    | describe                                    |\n| -------------- | ------- | ------------------------------------------- |\n| input          | string  | OpenAPI specification file (required)       |\n| output         | string  | Output directory (default: `openapi`)       |\n| watch.interval | number  | Interval of file watching (default: `1000`) |\n| watch.disabled | boolean | Disable file watching (default: `false`)    |\n\n[OpenAPI Typescript Codegen options](https://github.com/ferdikoomen/openapi-typescript-codegen#usage) are also available.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}