{"name":"jest-changed-files","version":"24.6.0","license":"MIT","_id":"jest-changed-files@24.6.0","maintainers":[{"name":"aaronabramov","email":"aaron@abramov.io"},{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"fb","email":"opensource+npm@fb.com"},{"name":"jeanlauliac","email":"jean@lauliac.com"},{"name":"mjesun","email":"mjesun@hotmail.com"},{"name":"rubennorte","email":"rubennorte@gmail.com"},{"name":"scotthovestadt","email":"scott.hovestadt@gmail.com"}],"homepage":"https://github.com/facebook/jest#readme","bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"37ff2a60a6057dedc068f26e9ed9b77fb21df828","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-24.6.0.tgz","fileCount":17,"integrity":"sha512-Om7dJrGPcH6mMdEjMZ5XxRhCLk6qe1NVSJKOIn4twrtH7s8Nd++qULEH9bhRsdNduR2cMQOQwJ9GIVucWEKrsQ==","signatures":[{"sig":"MEQCIGsYT3BfGzL2774jLOq1rHvpP/KDv6PVaFCaX5bnezdqAiBsaimm/gYMpBQLjdLTEvBj4ox7+yreY7iX4MQMlJW2jA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":183739,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcopAPCRA9TVsSAnZWagAAxScQAItRN7HBz6jY7CUymleY\noUzLCtXNwkkCERPr43g30W0HeyMuhyY+/zpqiAoLnY9TIeiycYd514C0JG7r\n/OPb7UmurY4LyGpEMTHtRg7uYjiCCzV5iFYYfNN/qtzfjfREnwK0lWqLgA04\nRzJrQy9IUOL5aXF5GX5pQjLpIwdZVwAOtbo1F9fFsWucFu5a7Exe19fYxh4O\nnJ6BiwXubio1pLGnJe2sZrTnUzAIICRbXoaggJb7s8JGu6F7rK3CImV24qih\npThq7y1wTSv6maC6qw8Z2UvlufvAg0NPXA37QFgpg0fCNllJwQ87yWD8LTuR\nv9u77DhmRqgpAOLr6b/RfZhZrkUrIvwTbFtS6Bo1pL3H2Eq8ylkvS1L+rDIc\nEp64xya5vrGmHpP/1X0v11R3q6fUnnp0sPo7syxEXB2w6jBFee8p/4qJAVRe\n38bSSi+vWPXlujNugjbjH/n2hGh9cAWs8V5x5BQczRE/gAnl6a8rYuGFtiAi\nv7ldwwe2skK6Bkg1ST8ftyPK2RsJqk2tyRJA51UAMVVcyAdm1reL7e4h5aqA\n1T3B+ZsFxGcb56EVHTN2qNgNs+EQWpbYrxaSNYDHFf8FymxZaPb2iFRPiEcR\nR3O4mEHZvg0BPrdpkcleI7jAQYBwUhEFPU93FPSF+HuWggeGnt6wvqc5ftE4\nbYu4\r\n=lsfp\r\n-----END PGP SIGNATURE-----\r\n","size":19230,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-24.6.0.tgz"},"main":"build/index.js","types":"build/index.d.ts","engines":{"node":">= 6"},"gitHead":"04e6a66d2ba8b18bee080bb28547db74a255d2c7","_npmUser":{"name":"rubennorte","email":"rubennorte@gmail.com"},"repository":{"url":"git+https://github.com/facebook/jest.git","type":"git","directory":"packages/jest-changed-files"},"_npmVersion":"lerna/3.13.1/node@v8.11.3+x64 (darwin)","description":"A module used internally by Jest to check which files have changed since you last committed in git or hg.","directories":{},"_nodeVersion":"8.11.3","dependencies":{"execa":"^1.0.0","throat":"^4.0.0","@jest/types":"^24.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/execa":"^0.9.0"},"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_24.6.0_1554157582582_0.5193708630109946","host":"s3://npm-registry-packages"},"readme":"# jest-changed-files\n\nA module used internally by Jest to check which files have changed since you last committed in git or hg.\n\n## Install\n\n```sh\n$ npm install --save jest-changed-files\n```\n\n## API\n\n### `getChangedFilesForRoots(roots: Array<string>, options: Options): Promise<ChangedFiles>`\n\nGet the list of files and repos that have changed since the last commit.\n\n#### Parameters\n\nroots: Array of string paths gathered from [jest roots](https://jestjs.io/docs/configuration#roots-arraystring).\n\noptions: Object literal with keys\n\n- lastCommit: boolean\n- withAncestor: boolean\n- changedSince: string\n\n### Returns\n\nA Promise of Object literal with keys\n\n- changedFiles: Set\\<string>\n- repos:\n  - git: Set\\<string>\n  - hg: Set\\<string>\n\n### findRepos(roots: Array<string>): Promise<Repos>\n\nGet a set of git and hg repositories.\n\n#### Parameters\n\nroots: Array of string paths gathered from [jest roots](https://jestjs.io/docs/configuration#roots-arraystring).\n\n### Returns\n\nA Promise of Object literal with keys\n\n- git: Set\\<string>\n- hg: Set\\<string>\n\n## Usage\n\n```javascript\nimport {getChangedFilesForRoots} from 'jest-changed-files';\n\ngetChangedFilesForRoots(['/path/to/test'], {\n  lastCommit: true,\n  withAncestor: true,\n}).then(files => {\n  /*\n  {\n    repos: [],\n    changedFiles: []\n  }\n  */\n});\n```\n\n```javascript\nimport {getChangedFilesForRoots} from 'jest-changed-files';\n\ngetChangedFilesForRoots(['/path/to/test'], {\n  changedSince: 'main',\n}).then(files => {\n  /*\n  {\n    repos: [],\n    changedFiles: []\n  }\n  */\n});\n```\n\n```javascript\nimport {findRepos} from 'jest-changed-files';\n\nfindRepos(['/path/to/test']).then(repos => {\n  /*\n  {\n    git: Set<Path>,\n    hg: Set<Path>\n  }\n  */\n});\n```\n","publish_time":1554157582712,"_cnpm_publish_time":1554157582712,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}