{"name":"jest-changed-files","version":"25.2.6","license":"MIT","_id":"jest-changed-files@25.2.6","maintainers":[{"name":"aaronabramov","email":"aaron@abramov.io"},{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"davidzilburg","email":"davidzilburg@gmail.com"},{"name":"fb","email":"opensource+npm@fb.com"},{"name":"rubennorte","email":"rubennorte@gmail.com"},{"name":"scotthovestadt","email":"scott.hovestadt@gmail.com"},{"name":"simenb","email":"sbekkhus91@gmail.com"}],"homepage":"https://github.com/facebook/jest#readme","bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"7d569cd6b265b1a84db3914db345d9c452f26b71","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-25.2.6.tgz","fileCount":19,"integrity":"sha512-F7l2m5n55jFnJj4ItB9XbAlgO+6umgvz/mdK76BfTd2NGkvGf9x96hUXP/15a1K0k14QtVOoutwpRKl360msvg==","signatures":[{"sig":"MEYCIQCY0cycXWVwMdQHNJGR3ZEQmWq+tNB5AILiZErYUub75gIhAMLDwiY4WxsSnNQClGtuxMrQgkmZqwyyoxIIxH3zYKb4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20203,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehb56CRA9TVsSAnZWagAA6n0P/2F8BXD2kaEFARTAJnmb\n+3zh3wP7wpSsifaqZd3GGLu1H1t3MoL++6bAWEyHRaDsyDrPEF00Hi/3hYPA\nudwnt8v0KiKGJDNt98N+SSwmmFTzOka+ekR+wybc4NgcZo+WusyLN05gZ7YF\nqPIpSBVU/1DEY+X9Pj4IAUJPHwcdLLwOuWJFKGe/yEFxUFt5QGTgVmUrEkdQ\nVHqMqDqVDgCZ5VOwva5nzrQL6kH1M32m5H6NfU06QC1o81xmB8i2cLPegLYD\n+0faHD3Juz6q33/fGwZ9emZlQoFIowJZtjM2JrQdnRlCQ7KmAR34GHmUL+6/\n/klmlQ5VKdoPuJrv2qsxApOe5JO1OOcwWzE4ElMQoFnt4qVT4c5apayvOX/s\nrwBUbhtVP907IsJWGyfaDTcag4vVp1xOlPjlzrl6+R3Fbe7QAE6j0En74La/\nQU5u4ysPE7y0a4ccuOOiVGuZCEh3HL09+cEBpOm2uon7O0uRieocnx1otlul\ng5n3xwDtwGyfn9OM0045CWGxrGDHjjdfdQuI9kKQ+34p1UPqAiQqEFFEcyWt\nZ0qDngeVts2nneDZGMAy2jeauoz1ahS/ROp2pqX0A57vpVZpUdFGPzyCajgB\nAxxTJhV4KgZRpHMOzrAW+vy2sKwJiyjhQT6M4AwP5gjxxjohsNzP27rDFIZq\nce4y\r\n=KRd9\r\n-----END PGP SIGNATURE-----\r\n","size":5326,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-25.2.6.tgz"},"main":"build/index.js","types":"build/index.d.ts","engines":{"node":">= 8.3"},"gitHead":"43207b743df164e9e58bd483dd9167b9084da18b","_npmUser":{"name":"simenb","email":"sbekkhus91@gmail.com"},"repository":{"url":"git+https://github.com/facebook/jest.git","type":"git","directory":"packages/jest-changed-files"},"_npmVersion":"lerna/3.20.2/node@v12.14.1+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":"12.14.1","dependencies":{"execa":"^3.2.0","throat":"^5.0.0","@jest/types":"^25.2.6"},"publishConfig":{"access":"public"},"typesVersions":{"<3.8":{"build/*":["build/ts3.4/*"]}},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_25.2.6_1585823354179_0.059315573007996836","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":1585823354351,"_cnpm_publish_time":1585823354351,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}