{"name":"jest-changed-files","version":"26.0.1","license":"MIT","_id":"jest-changed-files@26.0.1","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":"1334630c6a1ad75784120f39c3aa9278e59f349f","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-26.0.1.tgz","fileCount":11,"integrity":"sha512-q8LP9Sint17HaE2LjxQXL+oYWW/WeeXMPE2+Op9X3mY8IEGFVc14xRxFjUuXUbcPAlDLhtWdIEt59GdQbn76Hw==","signatures":[{"sig":"MEYCIQDG5yOs3w28yz4U1Z5m/OVMsvnzKuy7tkTm4EgiqDBvWwIhAO4KjhdcIfR7rkt1RlhotChZUFWWnKk1ABIweFf7ELL5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14230,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesUKsCRA9TVsSAnZWagAAGSMP/16xkgUP4KGw75ybD1FC\n0cdNSrolLJsw9uyVzn4Z477hbw6FytrKJUiPwRaRgANwBvwYMoOL/b1Yn20S\nMyCZPQfb5IE5RczKUISmtGzoR1R27lCv43nGLXps5PQmgvdBu6sZ/wh6y6oO\n7uLKCPAao7PptiW8KQpw/oGgjXUmETYDEN8uf9yrPFMqeAYEsmLysluU0UPR\nalPHEeuF81J7OYuqZhWXG6Am4c1HcAlyOFIy8bdosI7pZ5QJFFMCayKa9dyq\nOPdYjrq+jSzvXAAcpzp2P+BDgZdvLgEQ+my25m9RA5u6j2nft2dbBa9sGGCE\nINChk2bNe/EMXT6Bg4VWI4WW1EaRrjZTzd9EtPaKfFdiFeb5JWQ6QZXdCBIb\njW0WKdt8QMT2jvX0+7RzSPxC7siEELOMO4CkIxgYHmG5hq+QDJU+KHhGLNCa\n/B3lEAbveqSprlqOf4rfO4PqJipVJefgpEhtg9J9hq9PqZcy6WfB6LASudFo\n85ZJcTzK82jwhS75qSUR1vcCqhXl0+w7RN9mINuzask12tXgZpWUlHykIIzd\n+ftVnPmdyR5fq5Te3lLhMHhj8wFdfRaci6cDXKG7ss1D/d5AuSchK27V8m1e\nAn6hgXXBsqj5U6A98jlI0x+GCgV/VMiJ17zmulK+O6vuHoK5s+lrEpqyPOmk\nnZY0\r\n=bbd/\r\n-----END PGP SIGNATURE-----\r\n","size":4134,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-26.0.1.tgz"},"main":"build/index.js","types":"build/index.d.ts","engines":{"node":">= 10.14.2"},"gitHead":"40b8e1e157c9981dda5a68d73fff647e80fc9f5c","_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.16.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":"12.16.3","dependencies":{"execa":"^4.0.0","throat":"^5.0.0","@jest/types":"^26.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_26.0.1_1588675244197_0.8600431565160334","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":1588675244303,"_cnpm_publish_time":1588675244303,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}