{"_id":"@bunchtogether/vite-plugin-flow","_rev":"3-3bebdee4958be60f7e01ad3a4a128430","name":"@bunchtogether/vite-plugin-flow","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@bunchtogether/vite-plugin-flow","version":"1.0.0","main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/bunchtogether/vite-plugin-flow.git"},"author":{"name":"johnwehr@bunchtogether.com"},"scripts":{"build":"rm -rf ./dist; flow-remove-types ./src --out-dir ./dist && flow-copy-source ./src ./dist","flow-typed":"flow-typed install --overwrite","lint":"npm run lint:js && npm run lint:flow","lint:js":"eslint -c ./.eslintrc --no-eslintrc --fix --cache .","lint:flow":"flow --show-all-errors","documentation":"documentation readme src/index.js --section='API'","prepare":"husky install"},"devDependencies":{"babel-eslint":"^10.1.0","cross-env":"^7.0.3","documentation":"^13.2.5","eslint":"^7.28.0","eslint-config-bunchtogether":"^1.1.6","eslint-plugin-flowtype":"^5.7.2","eslint-plugin-flowtype-errors":"^4.4.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-jsx-a11y":"^6.4.1","eslint-plugin-react":"^7.24.0","flow-bin":"^0.153.0","flow-copy-source":"^2.0.9","flow-typed":"^3.3.1","husky":"^6.0.0"},"dependencies":{"flow-remove-types":"^2.153.0","rollup-pluginutils":"^2.8.2"},"gitHead":"292e8c7d7da00c6ffdde8a88520fa8978c824416","description":"Support [Flow static type checking](https://flow.org/) in [Vite](https://vitejs.dev/)","bugs":{"url":"https://github.com/bunchtogether/vite-plugin-flow/issues"},"homepage":"https://github.com/bunchtogether/vite-plugin-flow#readme","_id":"@bunchtogether/vite-plugin-flow@1.0.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-UhiZL72JHQf7XaCBK8sltl8N3jORjTwD2QEUtj7IQCtRLMoouq1YT/dIDUy52jMJGIzHhKciVbe5nB8emXITaA==","shasum":"2f7b8fc691c07182743787d77ed23f13e90343da","tarball":"https://registry.npmjs.org/@bunchtogether/vite-plugin-flow/-/vite-plugin-flow-1.0.0.tgz","fileCount":10,"unpackedSize":27554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgy4W6CRA9TVsSAnZWagAAuqoQAJWCdC/wDwjrifEm+CkA\nxjpjjyh2iJS56uSTxGtXAdOPUoP72u65KFLk6BE4teJRWTgHpUJ4JopDewqz\n94TFqgHLlKaukV+Q3IKUEoe4+mhUdSDo+vTv1KAdaLgxpuvsSwVGNnSjbAB9\n1bKm1kPb3hIKy17UVqmVnTjmMEbndTazWzeWwlUV5NDHJrEMKO3gigRrZ8Gh\nmQWqtkLU0UcNQoqJfZdpH1t1r9kAGCuLZ25wuUHP7c25XFh706n3D3QuIYl9\nPPkNBB1vOHqvTeY3gpANMr+wbxVCyhrWIc8T0rb5zemlifEnul0UvEDRTkji\nYPo0ke5DkEklvp+FNd1Wod3wIXjOPBwph/Y/UkjRUgias+prqB48v++RiL7z\nQ6+slyav+DaRIhYNkZYuGhXjjy68Wlhp3Nn1ETLaTe8r3pVivUaPATZVV0Li\n5hq8EQAmJ7CD87hA3k4QZZM728q0ZVReb7EASsz5M4YkBCWsXEyg94XokVhL\nAJ9SJBmWTSnYAZK6svSGFi5PkAN1Illey1lOJVBMOx/bsgivcW+m7N7LUf8P\nMW/+YUdnzC7oypzfUZD/M2+pet/MIDmgdWLHhxe7XrQsuprtj4Jri1upKoPV\nwF+y9bHW4CIKvkUq0hJNGw4OPVpHl7zo9Zp1NXSUeloXCna9Tfkf9j1AzS78\nBfBe\r\n=msyy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEDhWCZ+yUv8C0v71Uuq/tvpGp2IN33oIiAMpz0wfU2kAiEA1DJmU977L/1sR3TmPxawbdURZFaS+2uIvt3dt/X0Fh8="}]},"_npmUser":{"name":"bunchtogether","email":"johnwehr@bunchtogether.com"},"directories":{},"maintainers":[{"name":"bunchtogether","email":"johnwehr@bunchtogether.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-flow_1.0.0_1623950777492_0.9245499089371589"},"_hasShrinkwrap":false},"1.0.1":{"name":"@bunchtogether/vite-plugin-flow","version":"1.0.1","main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/bunchtogether/vite-plugin-flow.git"},"author":{"name":"johnwehr@bunchtogether.com"},"scripts":{"build":"rm -rf ./dist && flow-remove-types --pretty ./src --out-dir ./dist && flow-copy-source ./src ./dist","flow-typed":"flow-typed install --overwrite","lint":"npm run lint:js && npm run lint:flow","lint:js":"eslint -c ./.eslintrc --no-eslintrc --fix --cache .","lint:flow":"flow --show-all-errors","documentation":"documentation readme src/index.js --section='API'","prepare":"husky install"},"devDependencies":{"babel-eslint":"^10.1.0","cross-env":"^7.0.3","documentation":"^13.2.5","eslint":"^7.28.0","eslint-config-bunchtogether":"^1.1.6","eslint-plugin-flowtype":"^5.7.2","eslint-plugin-flowtype-errors":"^4.4.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-jsx-a11y":"^6.4.1","eslint-plugin-react":"^7.24.0","flow-bin":"^0.153.0","flow-copy-source":"^2.0.9","flow-typed":"^3.3.1","husky":"^6.0.0"},"dependencies":{"flow-remove-types":"^2.158.0","rollup-pluginutils":"^2.8.2"},"gitHead":"e0b11cce7a3c8e7a27975b677269ab64a039b37b","description":"Support [Flow static type checking](https://flow.org/) in [Vite](https://vitejs.dev/)","bugs":{"url":"https://github.com/bunchtogether/vite-plugin-flow/issues"},"homepage":"https://github.com/bunchtogether/vite-plugin-flow#readme","_id":"@bunchtogether/vite-plugin-flow@1.0.1","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-ijG1gEZkw+zXxLMWjliFgv51MEFNghhIDylCSNdnvyM8xHzjUs0YjkuZMEo9LUclbxgUwASPvOnYZgNFUAJ0tw==","shasum":"5c768c6602bbb3db5609574d1aa86520f590cf08","tarball":"https://registry.npmjs.org/@bunchtogether/vite-plugin-flow/-/vite-plugin-flow-1.0.1.tgz","fileCount":10,"unpackedSize":32187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOO1oCRA9TVsSAnZWagAA1cQP/RLv0pZ+p1YssAZzdlxn\n5l3EnLPzpCtWOlQTZeKyjrWXFzb11j+q14TB0VGNur98cwpzXpvtZmlk2gIL\nfmpjmiP5PTvSLL1j6i6K1tM0STjxCxu1DgxdZd0WYJ2SphOq6iboop4gs5Bf\nmwqE3g/sQy7v8Oyf1Ww1mxn8trYxhxLVHAbyMUJbVUCn3C7J9t8EQef2B/N/\nQ54Pvn/89GFkSIM6Nr5q1uO7mNQ3nB1dPgxV7NfssiY6iNOODfMPPSBQysZc\n9OUpDFWQxfgQEM4CPKdEUlkseow4TNzP8zTekBAxE/B+Pf5sokEUzLdmUPHv\nqQOGGsz/HXdObJuT5vDqJDeB9VHDMcSQvVCjhfZsVUU6osL+QW1gq+tZ72qv\nqP0EPhYJskbH45C9UIw0ozqmbUEue9xsG475pHtSL7dO6G/vrrg7pO4LxcTT\nKBQHadUAunjtojfVMIZP8fBouHhUhLlt2f9Ym8xbBKbJtL0LpC8AmNg2423x\nBNHAZ25uc7t1Ivp7exZ8yIx02q5u1B9ZE4Q/xA4R6/0Hiv55RcMV1Aw3sW2t\nulFkEjTRwgt94vICoyFhiuaD5XN4G4FYxQ4YZsrGtNb2/tQeeB6G93mAMaAQ\nXqII4uWIQVajJyDIJW8A1uad1ZfFtjyfRh1t69UkcojUIlU7iVN41725qmWo\nvpwn\r\n=+RUq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8fthki+Gyhj89dxAS3pKursUf3CP0kSR9y/FncigrogIgZ7kUmFSI7qqMn0XsUJ2pdcrnTT79vM47uAhRBgEMs00="}]},"_npmUser":{"name":"bunchtogether","email":"johnwehr@bunchtogether.com"},"directories":{},"maintainers":[{"name":"bunchtogether","email":"johnwehr@bunchtogether.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-flow_1.0.1_1631120744139_0.7228544383372504"},"_hasShrinkwrap":false},"1.0.2":{"name":"@bunchtogether/vite-plugin-flow","version":"1.0.2","main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/bunchtogether/vite-plugin-flow.git"},"author":{"name":"johnwehr@bunchtogether.com"},"scripts":{"build":"rm -rf ./dist && flow-remove-types --pretty ./src --out-dir ./dist && flow-copy-source ./src ./dist","flow-typed":"flow-typed install --overwrite","lint":"npm run lint:js && npm run lint:flow","lint:js":"eslint -c ./.eslintrc --no-eslintrc --fix --cache .","lint:flow":"flow --show-all-errors","documentation":"documentation readme src/index.js --section='API'","prepare":"husky install"},"devDependencies":{"babel-eslint":"^10.1.0","cross-env":"^7.0.3","documentation":"^13.2.5","eslint":"^7.28.0","eslint-config-bunchtogether":"^1.1.6","eslint-plugin-flowtype":"^5.7.2","eslint-plugin-flowtype-errors":"^4.4.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.3.6","eslint-plugin-jsx-a11y":"^6.4.1","eslint-plugin-react":"^7.24.0","flow-bin":"^0.153.0","flow-copy-source":"^2.0.9","flow-typed":"^3.3.1","husky":"^6.0.0"},"dependencies":{"flow-remove-types":"^2.158.0","rollup-pluginutils":"^2.8.2"},"gitHead":"89f818648e4ced8afa77bd8619719cba88fc0b16","description":"Support [Flow static type checking](https://flow.org/) in [Vite](https://vitejs.dev/)","bugs":{"url":"https://github.com/bunchtogether/vite-plugin-flow/issues"},"homepage":"https://github.com/bunchtogether/vite-plugin-flow#readme","_id":"@bunchtogether/vite-plugin-flow@1.0.2","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-s6ixVp0GVTIYE5IWzSNi1GJ8Y0HZa0C0qYTneufkG5ppVD9slW/z0VUj7NGQ0EFHNTWKfKIUFr5xbwoH3WUXZg==","shasum":"6879dcf1eddd91dad9b32dfe23bdbf0410c88a55","tarball":"https://registry.npmjs.org/@bunchtogether/vite-plugin-flow/-/vite-plugin-flow-1.0.2.tgz","fileCount":10,"unpackedSize":32135,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDVn+CRA9TVsSAnZWagAAyTYP/0jQsmoyg3EpUSaiK7kO\n0Xqg5VFs1QiQCjTBCYxtJxKB60vcC3UYRPYiXkgDK0xzd9VRKJwRz4H2G8pC\n8r3f2xlf6BFMk4UboZScd+554vpaOLJ+ymHhV5QPvSW+Sm+4UVBC3ILrDlDS\nkMswD+ALGRJfkOulaMlPtYpNp9uwPpiITu2mwCHkbAo3+ff6YDj4i3UtvwiQ\niZzAU7xBPPWSOG/9u/UAIwbcGCFC+lN6/WtmzDvP75mh6ZKMJF//JCoR2Liq\nJn5BAWYaDefn8xNI3wgO1S9L2taPglwzRIFbZ434i6AWui95racOv+f1paE9\nzzNcwZ/01qG7Fk0QS1kVVAcxnvr3sBEXfo3NLTZ2TaB8fygAwoX4ku48uhNJ\nlKnx/J96zLA5kAuQIsQb6132B3hbuIXuJRJpOHLQazT1JkNAFmJ+6j6v2Fw1\nwgdFJaIzQXp5vw7iCwvgcpzlQwzN4CA/qCXHh0wA8AbNtsxPsZV2DVcdA5xZ\noYYV/ZWdb6d95bOnjw9jhUM2JDFDx0NrxuzWqCA1xiMpGUnrhdKgN3XOYgL5\n9a3ZHzxbt8jTrWcBf7N8A9Jrj8rYxsuSDe2r0bLEhWTnfNYXMktDKkwqld57\n+sUCO/PlTzThYfimvKhR8UqzuS2/+s9PgSHYqL6C6gFBI7AwP3ZtiNfuKt3e\nrzl/\r\n=YAww\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDs7ogf2RdVOBUnuYViEd400Jc0p5Cg8AX7OnM6BZMCXQIgFqIMWccgxuifk1kbKbEh9vOz0gwsVRly/N+xFnlv5Qk="}]},"_npmUser":{"name":"bunchtogether","email":"johnwehr@bunchtogether.com"},"directories":{},"maintainers":[{"name":"bunchtogether","email":"johnwehr@bunchtogether.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-flow_1.0.2_1645042174097_0.28145363497000364"},"_hasShrinkwrap":false}},"time":{"created":"2021-06-17T17:26:17.435Z","1.0.0":"2021-06-17T17:26:17.667Z","modified":"2022-04-04T21:05:42.718Z","1.0.1":"2021-09-08T17:05:44.321Z","1.0.2":"2022-02-16T20:09:34.268Z"},"maintainers":[{"name":"bunchtogether","email":"johnwehr@bunchtogether.com"}],"description":"Support [Flow static type checking](https://flow.org/) in [Vite](https://vitejs.dev/)","homepage":"https://github.com/bunchtogether/vite-plugin-flow#readme","repository":{"type":"git","url":"git+https://github.com/bunchtogether/vite-plugin-flow.git"},"author":{"name":"johnwehr@bunchtogether.com"},"bugs":{"url":"https://github.com/bunchtogether/vite-plugin-flow/issues"},"readme":"# vite-plugin-flow\n\nSupport [Flow static type checking](https://flow.org/) in [Vite](https://vitejs.dev/)\n\n## Install\n\n```shell\nnpm install @bunchtogether/vite-plugin-flow --save-dev\n```\n\nor\n\n```shell\nyarn add @bunchtogether/vite-plugin-flow --dev\n```\n\n## Usage\n\n```js\nimport { flowPlugin, esbuildFlowPlugin } from '@bunchtogether/vite-plugin-flow';\n\nexport default {\n  optimizeDeps: {\n    esbuildOptions: {\n      plugins: [esbuildFlowPlugin()]\n    }\n  },\n  plugins: [\n    flowPlugin()\n  ]\n}\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n#### Table of Contents\n\n*   [flowPlugin](#flowplugin)\n    *   [Parameters](#parameters)\n*   [esbuildFlowPlugin](#esbuildflowplugin)\n    *   [Parameters](#parameters-1)\n\n### flowPlugin\n\nCreate a Vite plugin object\n\n#### Parameters\n\n*   `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** Filter options (optional, default `{include:/\\.(flow|jsx?)$/,exclude:/node_modules/,flow:{all:false,pretty:false,ignoreUninitializedFields:false}}`)\n\n    *   `options.include` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [Regexp](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp) | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [Regexp](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp))>)** Strings and/or regular expressions matching file paths to include (optional, default `/\\.(flow|jsx?)$/`)\n    *   `options.exclude` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [Regexp](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp) | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [Regexp](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp))>)** Strings and/or regular expressions matching file paths to exclude (optional, default `/node_modules/`)\n\nReturns **VitePlugin** Returns esbuild plugin object\n\n### esbuildFlowPlugin\n\n*   **See**: [esbuild plugins documentation](https://esbuild.github.io/plugins/#resolve-callbacks)\n\nCreate an esbuild plugin object\n\n#### Parameters\n\n*   `filter` **[RegExp](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp)** Regular expression matching the path a files to be processed (optional, default `/\\.(flow|jsx?)$/`)\n*   `loaderFunction` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** Function that accepts the file path and returns the esbuild loader type (optional, default `(path)=>(/\\.jsx$/.test(path)?'jsx':'js')`)\n*   `flowOptions` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** Options to pass to flow-remove-types (optional, default `{all:false,pretty:false,ignoreUninitializedFields:false}`)\n\n    *   `flowOptions.all` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** If true, bypasses looking for an @flow pragma comment before parsing. (optional, default `false`)\n    *   `flowOptions.pretty` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** If true, removes types completely rather than replacing with spaces. (optional, default `false`)\n    *   `flowOptions.ignoreUninitializedFields` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** If true, removes uninitialized class fields (`foo;`, `foo: string;`)\n        completely rather than only removing the type. THIS IS NOT SPEC\n        COMPLIANT! Instead, use `declare foo: string;` for type-only fields. (optional, default `false`)\n\nReturns **EsbuildPlugin** Returns esbuild plugin object\n","readmeFilename":"README.md"}