{"name":"jest-changed-files","version":"25.1.0","license":"MIT","_id":"jest-changed-files@25.1.0","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"}],"homepage":"https://github.com/facebook/jest#readme","bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"73dae9a7d9949fdfa5c278438ce8f2ff3ec78131","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-25.1.0.tgz","fileCount":15,"integrity":"sha512-bdL1aHjIVy3HaBO3eEQeemGttsq1BDlHgWcOjEOIAcga7OOEGWHD2WSu8HhL7I1F0mFFyci8VKU4tRNk+qtwDA==","signatures":[{"sig":"MEYCIQCvvcB5DVsYlG3Vi4KTNkdAX6wTno7gRUC65J1Xwm467AIhAIdZEGPYyxbhGoiSR+/Zc5rfsZq/Z/doAy10R8swgxQi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18162,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeJ56JCRA9TVsSAnZWagAAgVoQAJMJBZSSR94tJPEO8FD+\nDJt/YBGBnzwI7gmD08St1wKKY48cEKU1gTq2wxW/kcpsfhF6aR9V/cc1utMe\nYUbr312W8ZHQRIyeNb7+T2x3YOXGbGMoKeTqS+GQ/lrxkFEAkSMYhBCW7+M5\nw4sZlG6KkMKsrKI8I0yKkt9E2LvwsURgbe45kvkf4TDN8GRwSgW2yP1YV2WJ\nSIL/cMLB6CzSwRHKPkoW7lOWOa97i4tlg7WqHbuH1DCmcpEuY5+Ty6GNL0ho\nOvhICZ74867NKaae3pVf/A1K2wWCIoKRsfsKo1OZvblgrZ5CLNH+Kkrg79E7\npXjeJvu0xt63wq+P2rMlOOyOhxBF3Jkgwxwuwo1vc4xp30ffziQA+S+X1f5t\nparnDtE17puWSnIcLFcSw2d+Ttw6NCz4Kgl5kIDwsjAjcpBu42nqoBAS+hhG\ngLV8H1A4zTglIfUvfavHugM4uNDMIgOOY3IToP7kLHs8YTQuT3zlr5VLjaBP\nmnf2Ck06G2Pi5KE0pHFYYbwVbbtZCiDvcylwY6Or6wOEhX1POCfxLJ+Jx1WO\nHTVtEpIq9xbB69lpeMcjPT1iFBCnwX1pGbfjECblr0ij07qbdH9Q/PBupO/I\n84nZID3xYmb1wLYODhcMWUKEoushm+7RDBDLSBp9LF4yWJ+Yy/5W6NImUUPX\nkKco\r\n=J3q/\r\n-----END PGP SIGNATURE-----\r\n","size":5068,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-25.1.0.tgz"},"main":"build/index.js","types":"build/index.d.ts","engines":{"node":">= 8.3"},"gitHead":"170eee11d03b0ed5c60077982fdbc3bafd403638","_npmUser":{"name":"davidzilburg","email":"davidzilburg@gmail.com"},"repository":{"url":"git+https://github.com/facebook/jest.git","type":"git","directory":"packages/jest-changed-files"},"_npmVersion":"lerna/3.20.2/node@v10.16.0+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":"10.16.0","dependencies":{"execa":"^3.2.0","throat":"^5.0.0","@jest/types":"^25.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_25.1.0_1579654792910_0.8850920273043708","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":1579654793026,"_cnpm_publish_time":1579654793026,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}